From 40f158dbf8d017a5d2c6c5ce13f476adb9b10589 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Tue, 17 Dec 2019 17:34:23 -0800 Subject: busybox: vmsep distro feature modifications If "vmsep" is in distro features, we need to configure busybox as a static build. This allows for it to be used as party of an initrd. We also ensure that the installer support is added to busybox, so it can be installed to the initrd via: busybox --install Signed-off-by: Bruce Ashfield --- recipes-core/busybox/busybox/static.cfg | 4 ++++ recipes-core/busybox/busybox_%.bbappend | 2 ++ recipes-core/busybox/busybox_vmsep.inc | 8 ++++++++ 3 files changed, 14 insertions(+) create mode 100644 recipes-core/busybox/busybox/static.cfg create mode 100644 recipes-core/busybox/busybox_vmsep.inc (limited to 'recipes-core/busybox') diff --git a/recipes-core/busybox/busybox/static.cfg b/recipes-core/busybox/busybox/static.cfg new file mode 100644 index 00000000..72079a1c --- /dev/null +++ b/recipes-core/busybox/busybox/static.cfg @@ -0,0 +1,4 @@ +CONFIG_STATIC=y +CONFIG_INSTALL=y +CONFIG_FEATURE_INSTALLER=y + diff --git a/recipes-core/busybox/busybox_%.bbappend b/recipes-core/busybox/busybox_%.bbappend index 617caccb..3d39bba3 100644 --- a/recipes-core/busybox/busybox_%.bbappend +++ b/recipes-core/busybox/busybox_%.bbappend @@ -1 +1,3 @@ require ${@bb.utils.contains('DISTRO_FEATURES', 'virtualization', '${BPN}_virtualization.inc', '', d)} +require ${@bb.utils.contains('DISTRO_FEATURES', 'vmsep', '${BPN}_vmsep.inc', '', d)} + diff --git a/recipes-core/busybox/busybox_vmsep.inc b/recipes-core/busybox/busybox_vmsep.inc new file mode 100644 index 00000000..b70a065c --- /dev/null +++ b/recipes-core/busybox/busybox_vmsep.inc @@ -0,0 +1,8 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/busybox:" +SRC_URI += " \ + file://static.cfg \ + " + +# we do this to get the target binary available to recipes that +# depend on busybox +SYSROOT_DIRS += "/bin" -- cgit v1.2.3-54-g00ecf