summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-core/toybox/toybox_0.8.3.bb7
1 files changed, 7 insertions, 0 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 4e72f295d3..5d453219f2 100644
--- a/meta-oe/recipes-core/toybox/toybox_0.8.3.bb
+++ b/meta-oe/recipes-core/toybox/toybox_0.8.3.bb
@@ -15,6 +15,8 @@ SRC_URI[sha256sum] = "eab28fd29d19d4e61ef09704e5871940e6f35fd35a3bb1285e41f20450
15 15
16SECTION = "base" 16SECTION = "base"
17 17
18RDEPENDS_${PN} = "${@["", "toybox-inittab"][(d.getVar('VIRTUAL-RUNTIME_init_manager') == 'toybox')]}"
19
18TOYBOX_BIN = "generated/unstripped/toybox" 20TOYBOX_BIN = "generated/unstripped/toybox"
19 21
20# Toybox is strict on what CC, CFLAGS and CROSS_COMPILE variables should contain. 22# Toybox is strict on what CC, CFLAGS and CROSS_COMPILE variables should contain.
@@ -52,6 +54,11 @@ do_configure() {
52 54
53 # Disable swapon as it doesn't handle the '-a' argument used during boot 55 # Disable swapon as it doesn't handle the '-a' argument used during boot
54 sed -e 's/CONFIG_SWAPON=y/# CONFIG_SWAPON is not set/' -i .config 56 sed -e 's/CONFIG_SWAPON=y/# CONFIG_SWAPON is not set/' -i .config
57
58 # Enable init if toybox was set as init manager
59 if [[ ${VIRTUAL-RUNTIME_init_manager} == *"toybox"* ]]; then
60 sed -e 's/# CONFIG_INIT is not set/CONFIG_INIT=y/' -i .config
61 fi
55} 62}
56 63
57do_compile() { 64do_compile() {