From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eddie.linux-mips.org ([148.251.95.138] helo=cvs.linux-mips.org) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1j1XOk-00078X-0d for ptxdist@pengutronix.de; Tue, 11 Feb 2020 16:24:26 +0100 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23991025AbgBKPYXr0L0Q (ORCPT ); Tue, 11 Feb 2020 16:24:23 +0100 Date: Tue, 11 Feb 2020 16:24:22 +0100 From: Ladislav Michl Message-ID: <20200211152422.GA40631@lenoch> MIME-Version: 1.0 Content-Disposition: inline Subject: [ptxdist] [PATCH] util-linux: optionally install getopt List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Signed-off-by: Ladislav Michl --- rules/util-linux-ng.in | 12 ++++++++++++ rules/util-linux-ng.make | 3 +++ 2 files changed, 15 insertions(+) diff --git a/rules/util-linux-ng.in b/rules/util-linux-ng.in index 9c139be6b..e0ddf7550 100644 --- a/rules/util-linux-ng.in +++ b/rules/util-linux-ng.in @@ -63,6 +63,18 @@ config UTIL_LINUX_NG_LINE help The line utility. +config UTIL_LINUX_NG_GETOPT + bool + prompt "getopt" + depends on !BUSYBOX_GETOPT || ALLYES + help + The getopt is used to break up (parse) options in command + lines for easy parsing by shell procedures, and to check + for valid options. + +comment "BusyBox' getopt is selected!" + depends on BUSYBOX_GETOPT + config UTIL_LINUX_NG_ADDPART bool select UTIL_LINUX_NG_PARTX_TOOLS diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make index cc09e13d3..e3d6fd15f 100644 --- a/rules/util-linux-ng.make +++ b/rules/util-linux-ng.make @@ -200,6 +200,9 @@ endif ifdef PTXCONF_UTIL_LINUX_NG_LINE @$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/line) endif +ifdef PTXCONF_UTIL_LINUX_NG_GETOPT + @$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/getopt) +endif ifdef PTXCONF_UTIL_LINUX_NG_DMESG @$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/dmesg) endif -- 2.25.0 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de