mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] util-linux: optionally install getopt
@ 2020-02-11 15:24 Ladislav Michl
  0 siblings, 0 replies; only message in thread
From: Ladislav Michl @ 2020-02-11 15:24 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-11 15:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-11 15:24 [ptxdist] [PATCH] util-linux: optionally install getopt Ladislav Michl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox