From patchwork Tue Dec 18 00:51:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Mayer X-Patchwork-Id: 1014904 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=quarantine dis=none) header.from=broadcom.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=broadcom.com header.i=@broadcom.com header.b="V7IecQB0"; 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 43Jfmv6hYDz9s3q for ; Tue, 18 Dec 2018 11:59:27 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 4492B85B84; Tue, 18 Dec 2018 00:59:25 +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 NUyNvHb-NLFF; Tue, 18 Dec 2018 00:59:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id EFD5885B6C; Tue, 18 Dec 2018 00:59:23 +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 0AA121BF311 for ; Tue, 18 Dec 2018 00:59:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 075118403D for ; Tue, 18 Dec 2018 00:59: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 gTwGl7qYB6fx for ; Tue, 18 Dec 2018 00:59:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com [209.85.219.174]) by whitealder.osuosl.org (Postfix) with ESMTPS id 6D57A81F0F for ; Tue, 18 Dec 2018 00:59:22 +0000 (UTC) Received: by mail-yb1-f174.google.com with SMTP id h10so5849359ybp.6 for ; Mon, 17 Dec 2018 16:59:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/8bZXC+HcvGIZQI0X5ZeVocOCR704IVjAFVmpKgvy6o=; b=V7IecQB0JRJPgcT340HjsB3rXblMEPJKTpch5MNYo8cUiBhPoRrICqIHkT5hATayYS PMDc+++UVGIsVNZZ26/6QyixapJL1Fw5ECvT8qww6zpm8nJvgkLATAU0H/m8V7s8DCZa bVqjPOWitIiMcWNCb52T6rJwo2tdoEFkEAEUc= 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=/8bZXC+HcvGIZQI0X5ZeVocOCR704IVjAFVmpKgvy6o=; b=R11iAF9KAFDuzZ+bFT9wQJcvGlBUwdCatlw9UePdd7vyvCn7dalLTM6i3IIG611+4v KpvSfTc69XsKxIxrIyCpSiySHxsTpWJonxQ3dVDY1MVuUeD05sJ7YBFNPdnTlNBhzxTl r5eemeveTXVa7K/fnHXwg4dvD3+rJitgFpOrlfK4K+lNZWwLAP1NCYnX9qnmoGclAiYb w1jk07aQbxhXkODGX46C+KjvCqkF5+1yHwrhFXRWWoTwho5iLFrFO3wBc5b7PEpoyWMj JY/cNOmXAebzN3iIkbmNq3/Fg8hlwQxA0re6FSsJk9u/wrqBLpMkBxAP1JpDFXuvQ3Tl bNNA== X-Gm-Message-State: AA+aEWYOiMqcgx3rRl3U6A70yaUecePnFY+W86JcFMQRLldEs87ReoXW mKJq/xSMH5KbT3CL1sHVNWyzXX83Q0weQQ== X-Google-Smtp-Source: AFSGD/XsLptad1SbAEdF1aP2gAhL81f6CtS5w0xIg+vNELzllNj09CnJE/y7rBMmRxs+dpBQhIt/5g== X-Received: by 2002:a25:5603:: with SMTP id k3mr15343397ybb.227.1545094294481; Mon, 17 Dec 2018 16:51:34 -0800 (PST) Received: from lbrmn-mmayer.ric.broadcom.com ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id h62sm4429911ywe.100.2018.12.17.16.51.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Dec 2018 16:51:33 -0800 (PST) From: Markus Mayer To: Buildroot Mailing List Date: Mon, 17 Dec 2018 16:51:13 -0800 Message-Id: <20181218005116.17435-2-mmayer@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181218005116.17435-1-mmayer@broadcom.com> References: <20181218005116.17435-1-mmayer@broadcom.com> Subject: [Buildroot] [PATCH 1/4] system cfg: introduce option BR2_SYSTEM_DEFAULT_PATH 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: "Yann E. MORIN" , Markus Mayer MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The configuration option BR2_SYSTEM_DEFAULT_PATH allows the user to override the default path, which can be used by /etc/profile and some system daemons. It defaults to the value previously hard-coded in /etc/profile. This default should be suitable for most users. Signed-off-by: Markus Mayer --- system/Config.in | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/system/Config.in b/system/Config.in index 0f77b9b6721a..93458c0011b7 100644 --- a/system/Config.in +++ b/system/Config.in @@ -386,6 +386,16 @@ comment "automatic network configuration via DHCP needs ifupdown or busybox or n endif # BR2_ROOTFS_SKELETON_DEFAULT +config BR2_SYSTEM_DEFAULT_PATH + string "Set the system's default PATH" + default "/bin:/sbin:/usr/bin:/usr/sbin" if !BR2_ROOTFS_MERGED_USR + default "/bin:/sbin" if BR2_ROOTFS_MERGED_USR + help + Sets the system's default PATH. It is being used in /etc/profile + in the skeleton-init-common package and by some daemons. + + The default should work in most cases. + config BR2_ENABLE_LOCALE_PURGE bool "Purge unwanted locales" default y