[OE-core] [PATCH 1/4] busybox: Enable getopt applet

Khem Raj raj.khem at gmail.com
Sun Sep 6 15:25:38 UTC 2015


getopts is a common applet more so now needed by systemd for working
with sysv scripts

Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta/recipes-core/busybox/busybox/getopts.cfg | 3 +++
 meta/recipes-core/busybox/busybox_1.23.2.bb   | 1 +
 2 files changed, 4 insertions(+)
 create mode 100644 meta/recipes-core/busybox/busybox/getopts.cfg

diff --git a/meta/recipes-core/busybox/busybox/getopts.cfg b/meta/recipes-core/busybox/busybox/getopts.cfg
new file mode 100644
index 0000000..8db0a4a
--- /dev/null
+++ b/meta/recipes-core/busybox/busybox/getopts.cfg
@@ -0,0 +1,3 @@
+CONFIG_GETOPT=y
+CONFIG_LONG_OPTS=y
+CONFIG_FEATURE_GETOPT_LONG=y
diff --git a/meta/recipes-core/busybox/busybox_1.23.2.bb b/meta/recipes-core/busybox/busybox_1.23.2.bb
index 8a4bae6..e4d9f97 100644
--- a/meta/recipes-core/busybox/busybox_1.23.2.bb
+++ b/meta/recipes-core/busybox/busybox_1.23.2.bb
@@ -35,6 +35,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
            file://mount-via-label.cfg \
            file://sha1sum.cfg \
            file://sha256sum.cfg \
+           file://getopts.cfg \
 "
 
 SRC_URI[tarball.md5sum] = "7925683d7dd105aabe9b6b618d48cc73"
-- 
2.5.1




More information about the Openembedded-core mailing list