summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-core/toybox/toybox_0.8.3.bb13
1 files changed, 12 insertions, 1 deletions
diff --git a/meta-oe/recipes-core/toybox/toybox_0.8.3.bb b/meta-oe/recipes-core/toybox/toybox_0.8.3.bb
index 5d453219f2..1513255c46 100644
--- a/meta-oe/recipes-core/toybox/toybox_0.8.3.bb
+++ b/meta-oe/recipes-core/toybox/toybox_0.8.3.bb
@@ -29,6 +29,11 @@ CFLAGS += "${TOOLCHAIN_OPTIONS} ${TUNE_CCARGS}"
29COMPILER_toolchain-clang = "clang" 29COMPILER_toolchain-clang = "clang"
30COMPILER ?= "gcc" 30COMPILER ?= "gcc"
31 31
32PACKAGECONFIG ??= "no-iconv no-getconf"
33
34PACKAGECONFIG[no-iconv] = ",,"
35PACKAGECONFIG[no-getconf] = ",,"
36
32EXTRA_OEMAKE = 'CROSS_COMPILE="${HOST_PREFIX}" \ 37EXTRA_OEMAKE = 'CROSS_COMPILE="${HOST_PREFIX}" \
33 CC="${COMPILER}" \ 38 CC="${COMPILER}" \
34 STRIP="strip" \ 39 STRIP="strip" \
@@ -56,7 +61,7 @@ do_configure() {
56 sed -e 's/CONFIG_SWAPON=y/# CONFIG_SWAPON is not set/' -i .config 61 sed -e 's/CONFIG_SWAPON=y/# CONFIG_SWAPON is not set/' -i .config
57 62
58 # Enable init if toybox was set as init manager 63 # Enable init if toybox was set as init manager
59 if [[ ${VIRTUAL-RUNTIME_init_manager} == *"toybox"* ]]; then 64 if ${@bb.utils.contains('VIRTUAL-RUNTIME_init_manager','toybox','true','false',d)}; then
60 sed -e 's/# CONFIG_INIT is not set/CONFIG_INIT=y/' -i .config 65 sed -e 's/# CONFIG_INIT is not set/CONFIG_INIT=y/' -i .config
61 fi 66 fi
62} 67}
@@ -67,6 +72,12 @@ do_compile() {
67 # Create a list of links needed 72 # Create a list of links needed
68 ${BUILD_CC} -I . scripts/install.c -o generated/instlist 73 ${BUILD_CC} -I . scripts/install.c -o generated/instlist
69 ./generated/instlist long | sed -e 's#^#/#' > toybox.links 74 ./generated/instlist long | sed -e 's#^#/#' > toybox.links
75 if ${@bb.utils.contains('PACKAGECONFIG','no-iconv','true','false',d)}; then
76 sed -i -e '/iconv$/d' toybox.links
77 fi
78 if ${@bb.utils.contains('PACKAGECONFIG','no-getconf','true','false',d)}; then
79 sed -i -e '/getconf$/d' toybox.links
80 fi
70} 81}
71 82
72do_install() { 83do_install() {