@@ -26,10 +26,12 @@ LAYERDEPENDS_meta-arago-distro = " \
LAYERRECOMMENDS_meta-arago-distro = " \
chromium-browser-layer \
+ selinux \
"
BBFILES_DYNAMIC += " \
chromium-browser-layer:${LAYERDIR}/dynamic-layers/chromium-browser-layer/recipes*/*/*.bbappend \
+ selinux:${LAYERDIR}/dynamic-layers/selinux/recipes*/*/*.bbappend \
"
BB_DANGLINGAPPENDS_WARNONLY = "true"
new file mode 100644
@@ -0,0 +1,3 @@
+PR:append = ".selinux0"
+
+IMAGE_INSTALL:append = " packagegroup-core-selinux"
new file mode 100644
@@ -0,0 +1,13 @@
+# The meta-selinux layer includes an selinux.cfg file containing
+# configs necessary for the Linux kernel to enable SELinux
+
+# In order to reduce maintainability issues, the file will
+# be retained in meta-selinux layer
+
+require ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'recipes-kernel/linux/linux-yocto_selinux.inc', '', d)}
+
+do_configure:append() {
+ if echo "${DISTRO_FEATURES}" | grep -q "selinux"; then
+ cat ${WORKDIR}/selinux.cfg >> ${B}/.config
+ fi
+}
\ No newline at end of file
- This patch allows the building of selinux packages conditional on the layer being present via dynamic layers. Only if the meta-selinux layer is present, tisdk-default-image recipe will build the packagegroup. - meta-selinux maintains a list of kernel configs that are needed for the kernel to include SELinux. Append these configs from the meta-selinux layer into our meta-ti Linux build Signed-off-by: Aashvij Shenai <a-shenai@ti.com> --- meta-arago-distro/conf/layer.conf | 2 ++ .../images/tisdk-default-image.bbappend | 3 +++ .../linux/linux-ti-staging_%.bbappend | 13 +++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 meta-arago-distro/dynamic-layers/selinux/recipes-core/images/tisdk-default-image.bbappend create mode 100644 meta-arago-distro/dynamic-layers/selinux/recipes-kernel/linux/linux-ti-staging_%.bbappend