images: include packagegroup-core-selinux if "selinux" is in DISTRO_FEATURES

This packagegroup includes all of the userspace packages needed to use SELinux.
For now, use the same variant of the packagegroup, which contains all available
packages.

Since the meta-selinux layer isn't available in all platforms, implement this
change via a dynamic layer.

https://onedigi.atlassian.net/browse/DEL-7641

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
Gabriel Valcazar 2021-08-26 14:43:33 +02:00
parent 3bccb2a6dd
commit a7b8288511
5 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,8 @@ BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
BBFILES_DYNAMIC += " \
webkit:${LAYERDIR}/dynamic-layers/webkit/*/*/*.bb \
webkit:${LAYERDIR}/dynamic-layers/webkit/*/*/*.bbappend \
selinux:${LAYERDIR}/dynamic-layers/selinux/*/*/*.bb \
selinux:${LAYERDIR}/dynamic-layers/selinux/*/*/*.bbappend \
"
BBFILE_COLLECTIONS += "digi-dey"

View File

@ -0,0 +1 @@
include selinux_dey.inc

View File

@ -0,0 +1 @@
include selinux_dey.inc

View File

@ -0,0 +1 @@
include selinux_dey.inc

View File

@ -0,0 +1 @@
IMAGE_INSTALL_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'packagegroup-core-selinux', '', d)}"