Signed-off-by: Ladislav Michl <[email protected]>
---
 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
[email protected]

Reply via email to