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>
This commit is contained in:
Bruce Ashfield 2020-09-28 18:27:51 -04:00
parent 0ac91aa8f2
commit b17bd2c4b0
3 changed files with 2 additions and 2 deletions

View File

@ -10,5 +10,3 @@ CONFIG_INIT_TERMINAL_TYPE=""
# CONFIG_FEATURE_SHADOWPASSWDS is not set
CONFIG_USE_BB_PWD_GRP=y
CONFIG_STATIC=y

View File

@ -0,0 +1 @@
CONFIG_STATIC=y

View File

@ -5,6 +5,7 @@ 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}"