From patchwork Wed Oct 30 13:27:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1186698 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FqdPOjxW"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4738RM4VF8z9sPL for ; Thu, 31 Oct 2019 00:28:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 06FBD87DDB; Wed, 30 Oct 2019 13:28:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bN6m7P3mOQXq; Wed, 30 Oct 2019 13:28:29 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 4563887DB1; Wed, 30 Oct 2019 13:28:29 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id E1D4F1BF9BF for ; Wed, 30 Oct 2019 13:28:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6430387D6E for ; Wed, 30 Oct 2019 13:28:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J3Lrzw2e7Ekg for ; Wed, 30 Oct 2019 13:28:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qt1-f193.google.com (mail-qt1-f193.google.com [209.85.160.193]) by hemlock.osuosl.org (Postfix) with ESMTPS id 50FFB87DB1 for ; Wed, 30 Oct 2019 13:28:18 +0000 (UTC) Received: by mail-qt1-f193.google.com with SMTP id g50so3201678qtb.4 for ; Wed, 30 Oct 2019 06:28:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=uXYd8hV/ftH7UiCLO0ZVIJZRlD2GuK1CgDBuWgOrmeo=; b=FqdPOjxWYMmKzcxNIr01LsDEAVaZvoZG2pfevX1Dpi5T9w3Qy8Jm3BSEZN7BVNRNI6 13FXW9GVi+gE8ouw/2TB0cTdu3fxxe/axQOqPfkUVE2K+OrlIosijwpL+ULZH+adCyo3 7ucBzQbv9UWm3mJfSjOPUtuoUCCV9N00cMdvlhcQ42VAHd375TxoYrxma/2TvxeSLZ8u FyBsMm+wjnj7DcU8pYZk0dqx27YLYcQiFTUJ/MQjYsyyfXxsiWBGqeIvsjJRVNH4OfSD hvPL+WkSG4XPqiR1e5182J4t/SCCcuOyjmiE7OwzeTe8Mb6YqRsc4VliCWaGWHKT0DHf x1JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=uXYd8hV/ftH7UiCLO0ZVIJZRlD2GuK1CgDBuWgOrmeo=; b=PDvthWUonIrJRc8p5pNL278A8q14Dqt7wH553ibhs7j4isVQB9jmLmAgBW+usZsLNl Qs7FkMnqeRcL8KIoX1J+rpfacw2TaGEHtgW5332NpyKy9pcbc8eIGsnsU/GLhy7YjjX+ 0at2n4M3t9oILdV8RRoXB2PO0X2jFgKTCNp7RQ9X4sIDgt4hDW009oR8jbuyjzMklLDN fdZOK+/+q10eFhebO2O68Ky01gTNrGW56Th1gNt8tWLv3e4/uW46t3m5sBUQmOteT3OS Gy/+ArDA0YwQDuPuKb8ixLXy+yP2jtWALUrUUEYb5EDzBtc+ZU+lSECgQlN2j4CNFg4V 6uqg== X-Gm-Message-State: APjAAAWwqcPMQbd5jsjx1+fM7gs7NV4+rI3+wxC4ec0VnuNBVlhnku0B KOl7bNqmsu0Sd2oL0mH9eXns+vL0Iag= X-Google-Smtp-Source: APXvYqwG7XlXWGvX7I8XF4tJR6NykKPSbV4rRfznEwx4ebMkx+wLJfMXt4X4JZPdqfe1WRHq65MhPQ== X-Received: by 2002:a0c:887a:: with SMTP id 55mr29420390qvm.137.1572442096963; Wed, 30 Oct 2019 06:28:16 -0700 (PDT) Received: from casantos.remote.csb ([177.97.64.39]) by smtp.gmail.com with ESMTPSA id v54sm102773qtc.77.2019.10.30.06.28.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2019 06:28:16 -0700 (PDT) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Wed, 30 Oct 2019 10:27:57 -0300 Message-Id: <20191030132759.8643-2-unixmania@gmail.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20191030132759.8643-1-unixmania@gmail.com> References: <20191030132759.8643-1-unixmania@gmail.com> Subject: [Buildroot] [PATCH RFC 1/3] package/pkg-generic.mk: support hooks and tables in virtual packages X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eric Le Bihan , Bernd Kuhls , Carlos Santos , Thomas Petazzoni , "Yann E . MORIN" , Adam Duskett , Maxime Hadjinlian MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Carlos Santos Virtual packages are not built but it's useful to allow them to have permission/device/user tables and target-finalize/rootfs-pre-cmd hooks. With this change we don't need to replicate date as currently done in eudev and systemd user tables or test if the package is selected to add a target-finalize hook as in luainterpreter. Signed-off-by: Carlos Santos --- package/pkg-generic.mk | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 893faba22a..7b3f1646ae 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -930,6 +930,7 @@ $$($(2)_TARGET_DIRCLEAN): PKG=$(2) # Compute the name of the Kconfig option that correspond to the # package being enabled. We handle three cases: the special Linux # kernel case, the bootloaders case, and the normal packages case. +# Virtual packages are handled separately (see below). ifeq ($(1),linux) $(2)_KCONFIG_VAR = BR2_LINUX_KERNEL else ifneq ($$(filter boot/% $$(foreach dir,$$(BR2_EXTERNAL_DIRS),$$(dir)/boot/%),$(pkgdir)),) @@ -1118,6 +1119,22 @@ ifneq ($$($(2)_HELP_CMDS),) HELP_PACKAGES += $(2) endif +# Virtual packages are not built but it's useful to allow them to have +# permission/device/user tables and target-finalize/rootfs-pre-cmd hooks. +else ifeq ($$(BR2_PACKAGE_HAS_$(2)),y) # $(2)_KCONFIG_VAR + +ifneq ($$($(2)_PERMISSIONS),) +PACKAGES_PERMISSIONS_TABLE += $$($(2)_PERMISSIONS)$$(sep) +endif +ifneq ($$($(2)_DEVICES),) +PACKAGES_DEVICES_TABLE += $$($(2)_DEVICES)$$(sep) +endif +ifneq ($$($(2)_USERS),) +PACKAGES_USERS += $$($(2)_USERS)$$(sep) +endif +TARGET_FINALIZE_HOOKS += $$($(2)_TARGET_FINALIZE_HOOKS) +ROOTFS_PRE_CMD_HOOKS += $$($(2)_ROOTFS_PRE_CMD_HOOKS) + endif # $(2)_KCONFIG_VAR endef # inner-generic-package From patchwork Wed Oct 30 13:27:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1186697 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="atAuZuJJ"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4738RL20yCz9sCJ for ; Thu, 31 Oct 2019 00:28:29 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CDE2886D53; Wed, 30 Oct 2019 13:28:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IT3srdSsrr2u; Wed, 30 Oct 2019 13:28:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id EB01986C7E; Wed, 30 Oct 2019 13:28:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 63B451BF232 for ; Wed, 30 Oct 2019 13:28:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4B17486C7E for ; Wed, 30 Oct 2019 13:28:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qf4AZTKQDB7z for ; Wed, 30 Oct 2019 13:28:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) by whitealder.osuosl.org (Postfix) with ESMTPS id 94F5A86BE1 for ; Wed, 30 Oct 2019 13:28:22 +0000 (UTC) Received: by mail-qk1-f181.google.com with SMTP id d13so2708260qko.3 for ; Wed, 30 Oct 2019 06:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2l5EW20t6+RvatXcObpEekiNVQbYQ5ntOt1Naulh028=; b=atAuZuJJI0S0qq3YKJQ95Ja4JwA9bd+HJfooVIBpzeGJU0NPuGoJzXF1UBziW7xOJI FyTGFJvVsEPrF7yn+eEC2QAdOPjPKR/ER+A5Abi1jurrUFDrFhtr2m29aJqThGL0AP5s s3Fdv84ejAjBjnN6VpkFkcadnAa9qrw2sVOGVfCgw6WZGPHA0zyqHs9YzzkvNh2m17AH k+OeF4xfXiV6dB0jtzQVlK3KsK2fi/V0gFPOmKA5qSxCFs26nWE+O6aNuleuAi7oD5L2 Rt58YVpnqpLFwggw9SpmVzehlp1AVo9ZixuOcu6ToOMq8VlE/4SL19q8HCjQZp0cAiWW d0Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2l5EW20t6+RvatXcObpEekiNVQbYQ5ntOt1Naulh028=; b=jqNoAeKbeVuVvF6MngU0+WFxecjvJsdh6TgpIw9wJRmtZ8QaSSPJHOpKmBoS8vU2Tw Cj/jLxZpuAV3g6DgaZDYwWulUVInkuRM7DR5ZJRVqQRWipZevyzXZ677qxqIX+NS2SE1 0fHXqjdJsT9TJeY/d4O8ubRtvz+HG4xsIdYmIA9XSe7eFSH/q4MJhl9TqKx69V1Ob7ip A+ETy/CNdtvkZSoibaWYFkZI8FF6B2Oh93aNL+7sDbQC3XJBLK+0lIqPJuCJVW2NZlQF KDjadAmYUL0QarL1YdntLKIahvyElntLIEmVj1Pb4Vzg3G+UAUmUkD9E6yLk8lydffhN PnWA== X-Gm-Message-State: APjAAAVF62hGXG6/bcAeN7IWKi3WvVotTdkTpHW6Zqgsl+nTozfbZIXa ja8OOlqFDSM9CPU1HoLLJug8o6HMg14= X-Google-Smtp-Source: APXvYqyUuoa1czpekn4fKAZ+OF70xuPZ5FN6bE+o4XcrPf1Nz2jL0MfouQaBI619zAIPVI80+4UQEQ== X-Received: by 2002:ae9:edc6:: with SMTP id c189mr27348113qkg.351.1572442101234; Wed, 30 Oct 2019 06:28:21 -0700 (PDT) Received: from casantos.remote.csb ([177.97.64.39]) by smtp.gmail.com with ESMTPSA id v54sm102773qtc.77.2019.10.30.06.28.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2019 06:28:20 -0700 (PDT) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Wed, 30 Oct 2019 10:27:58 -0300 Message-Id: <20191030132759.8643-3-unixmania@gmail.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20191030132759.8643-1-unixmania@gmail.com> References: <20191030132759.8643-1-unixmania@gmail.com> Subject: [Buildroot] [PATCH RFC 2/3] packages/luainterpreter: remove target-finalize hack X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eric Le Bihan , Bernd Kuhls , Carlos Santos , Thomas Petazzoni , "Yann E . MORIN" , Adam Duskett , Maxime Hadjinlian MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Carlos Santos Use LUAINTERPRETER_TARGET_FINALIZE_HOOKS, now that it's suported by virtual packages. Signed-off-by: Carlos Santos --- package/luainterpreter/luainterpreter.mk | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/package/luainterpreter/luainterpreter.mk b/package/luainterpreter/luainterpreter.mk index 58d421b183..828b71e8d2 100644 --- a/package/luainterpreter/luainterpreter.mk +++ b/package/luainterpreter/luainterpreter.mk @@ -6,16 +6,11 @@ LUAINTERPRETER_ABIVER = $(call qstrip,$(BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION)) -# Lua packages often install documentation, clean that up globally -# Since luainterpreter is a virtual package, we can't use -# LUAINTERPRETER_TARGET_FINALIZE_HOOKS -ifeq ($(BR2_PACKAGE_HAS_LUAINTERPRETER),y) define LUAINTERPRETER_REMOVE_DOC rm -rf $(TARGET_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)/doc endef -TARGET_FINALIZE_HOOKS += LUAINTERPRETER_REMOVE_DOC -endif +LUAINTERPRETER_TARGET_FINALIZE_HOOKS += LUAINTERPRETER_REMOVE_DOC $(eval $(virtual-package)) $(eval $(host-virtual-package)) From patchwork Wed Oct 30 13:27:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1186699 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="J2esuswv"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4738RR75grz9sCJ for ; Thu, 31 Oct 2019 00:28:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id AFEE685D17; Wed, 30 Oct 2019 13:28:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4HaqotV_6h_o; Wed, 30 Oct 2019 13:28:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id E63EE85D55; Wed, 30 Oct 2019 13:28:32 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 8611A1BF232 for ; Wed, 30 Oct 2019 13:28:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 6B3A4204E8 for ; Wed, 30 Oct 2019 13:28:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1RoVDyUGPcZB for ; Wed, 30 Oct 2019 13:28:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) by silver.osuosl.org (Postfix) with ESMTPS id 97EF82043B for ; Wed, 30 Oct 2019 13:28:27 +0000 (UTC) Received: by mail-qt1-f179.google.com with SMTP id o3so3169712qtj.8 for ; Wed, 30 Oct 2019 06:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vT+t77/mD4VnNmngkJqNICUGgnM+t7rqhqUgwD2+ALs=; b=J2esuswvqOqhyUcfpKR7LVQKnI+9QJjWiYRVbOUkmq/w08OVHyBb4XKzgWwBuRGNc/ 9whXALhjFrjWCYJoGNRwz36/qmSlpVfLI9QtUCejKENo/fS4UQwr/drB1ZZ6C8FmRqES vaxXK0Xd+nLWCtrtW/l8higHPtnXwbMAm62OawVCbBAa6S+J1vlz/3FunBHUblOFQHt2 yzU5gwHz8OYh6yPB4upeAxEjXeI74qIE0ZTEsm4entmrvPkMzRLbvC1JYmpDmSfiDxEA gyVlpivf8zeX/pTbG7PCKg5mBH+KfGoCQ9U3kNsaWohTyIpstEhnIFG9CdQY/VTG82ZJ dSpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vT+t77/mD4VnNmngkJqNICUGgnM+t7rqhqUgwD2+ALs=; b=LUEiNOLB/2l81wO2H6cR+ToL4Zuf2c4Y7k9suQvK6cPYY3EjqJgHdC3ZGkwmKXjiKH c4AjNUISXVmgKp3BmcZdJATUynwqjXu8c/l5QxkHq86VCXtcvtqPFb7gLK8aOe/B9SCv 7LVQEUTQhRfJLm3Ep7bB4YUrVNrYvfe4/31UJw+u7g2QQYLmGIAxsCUwEua5ZKYv4PSp 96oUz0E+t39AZO5EVu/2MYN3eMPrbLKZsqQ+rvd642bnkneYMkl0GMhPgrujV9xU0EI/ e3GJDXan3pOv2Thpz2yps3w9B7W3VgSARL2SB6J3CW/3BaGamzBQUwe2cgQ85QIttkvw eEYQ== X-Gm-Message-State: APjAAAWJpNn3PSUZzewdyB4tWmzs9enK5d+xDT/iHAgR7XW8S8SxOKEu I4JgzQvKURu3m+sD+dzIptWTeASTAcw= X-Google-Smtp-Source: APXvYqzasYKmRTRdJ8G/9ltkJrbPbl5BEQ8sCxHYLOLgkkQfeEvPhPOB8849u8Q5AknFGZSXYLpidg== X-Received: by 2002:ad4:4e4a:: with SMTP id eb10mr20753350qvb.228.1572442106409; Wed, 30 Oct 2019 06:28:26 -0700 (PDT) Received: from casantos.remote.csb ([177.97.64.39]) by smtp.gmail.com with ESMTPSA id v54sm102773qtc.77.2019.10.30.06.28.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2019 06:28:25 -0700 (PDT) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Wed, 30 Oct 2019 10:27:59 -0300 Message-Id: <20191030132759.8643-4-unixmania@gmail.com> X-Mailer: git-send-email 2.18.1 In-Reply-To: <20191030132759.8643-1-unixmania@gmail.com> References: <20191030132759.8643-1-unixmania@gmail.com> Subject: [Buildroot] [PATCH RFC 3/3] packages/{eudev, systemd}: move commoun users to package/udev X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eric Le Bihan , Bernd Kuhls , Carlos Santos , Thomas Petazzoni , "Yann E . MORIN" , Adam Duskett , Maxime Hadjinlian MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Carlos Santos Use UDEV_USERS, now that it's suported by virtual packages. Signed-off-by: Carlos Santos --- package/eudev/eudev.mk | 7 ------- package/systemd/systemd.mk | 3 --- package/udev/udev.mk | 7 +++++++ 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/package/eudev/eudev.mk b/package/eudev/eudev.mk index 2a3adb849c..c7597738b0 100644 --- a/package/eudev/eudev.mk +++ b/package/eudev/eudev.mk @@ -48,11 +48,4 @@ define EUDEV_INSTALL_INIT_SYSV $(INSTALL) -D -m 0755 package/eudev/S10udev $(TARGET_DIR)/etc/init.d/S10udev endef -# Required by default rules for input devices -define EUDEV_USERS - - - input -1 * - - - Input device group - - - render -1 * - - - DRI rendering nodes - - - kvm -1 * - - - kvm nodes -endef - $(eval $(autotools-package)) diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index df40961fee..512e124149 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -477,10 +477,7 @@ define SYSTEMD_INSTALL_IMAGES_CMDS endef define SYSTEMD_USERS - - - input -1 * - - - Input device group - - systemd-journal -1 * - - - Journal - - - render -1 * - - - DRI rendering nodes - - - kvm -1 * - - - kvm nodes systemd-bus-proxy -1 systemd-bus-proxy -1 * - - - Proxy D-Bus messages to/from a bus systemd-journal-gateway -1 systemd-journal-gateway -1 * /var/log/journal - - Journal Gateway systemd-journal-remote -1 systemd-journal-remote -1 * /var/log/journal/remote - - Journal Remote diff --git a/package/udev/udev.mk b/package/udev/udev.mk index cc4a6e3a26..05b35b21f0 100644 --- a/package/udev/udev.mk +++ b/package/udev/udev.mk @@ -4,4 +4,11 @@ # ################################################################################ +# Required by default rules for input devices +define UDEV_USERS + - - input -1 * - - - Input device group + - - render -1 * - - - DRI rendering nodes + - - kvm -1 * - - - kvm nodes +endef + $(eval $(virtual-package))