mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Ladislav Michl <ladis@linux-mips.org>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] util-linux: optionally install getopt
Date: Tue, 11 Feb 2020 16:24:22 +0100	[thread overview]
Message-ID: <20200211152422.GA40631@lenoch> (raw)

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
 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

                 reply	other threads:[~2020-02-11 15:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200211152422.GA40631@lenoch \
    --to=ladis@linux-mips.org \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox