meta-virtualization/recipes-core/busybox/busybox-initrd_1.32.0.bb
Bruce Ashfield b17bd2c4b0 busybox-initrd: move static configuration to 'vmsep' distro feature
We already have a distro feature that controls the static/non-static
configuration of libgcrypt: 'vmsep'

To avoid build errors on distros that don't have static libgcrypt
available, we move the CONFIG_STATIC config to a fragment and only
enable it whent he distro feature is set.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-09-28 18:27:51 -04:00

22 lines
709 B
BlitzBasic

FILESEXTRAPATHS_prepend := "${THISDIR}/busybox-initrd:${COREBASE}/meta/recipes-core/busybox/busybox:${COREBASE}/meta/recipes-core/busybox/files:"
require recipes-core/busybox/busybox_${PV}.bb
SRC_URI += "file://init.cfg \
file://mdev.cfg \
file://runx.cfg \
${@bb.utils.contains('DISTRO_FEATURES', 'vmsep', 'file://static.cfg', '', d)} \
file://initrd.cfg"
S = "${WORKDIR}/busybox-${PV}"
# override security-flags settings, we have some warnings to ignore
SECURITY_STRINGFORMAT = ""
# we do this to get the target binary available to recipes that
# depend on busybox
SYSROOT_DIRS += "/bin"
BUSYBOX_SPLIT_SUID = "0"
FILES_${PN} += "${sysconfdir}/init.d/*"