aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHe Zhe <zhe.he@windriver.com>2019-06-26 19:12:31 +0800
committerArmin Kuster <akuster808@gmail.com>2019-06-26 15:47:47 -0700
commit586f40897a5e01a19e912052833a987f0e0c7bf3 (patch)
tree4739304e8da6346b649bb75a27f0518010449540
parent3f253ddab833bfb9ed1803927b2a31fc75beb1c8 (diff)
downloadmeta-security-586f40897a5e01a19e912052833a987f0e0c7bf3.tar.gz
meta-security-586f40897a5e01a19e912052833a987f0e0c7bf3.tar.bz2
meta-security-586f40897a5e01a19e912052833a987f0e0c7bf3.zip
kernel: Add conditional inclusion of fragments for linux-yocto-dev
Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--recipes-kernel/linux/linux-yocto-dev.bbappend11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-yocto-dev.bbappend b/recipes-kernel/linux/linux-yocto-dev.bbappend
new file mode 100644
index 0000000..68b2b8b
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto-dev.bbappend
@@ -0,0 +1,11 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto-5.0:"
+
+SRC_URI += "\
+ ${@bb.utils.contains('DISTRO_FEATURES', 'apparmor', ' file://apparmor.cfg', '', d)} \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'apparmor', ' file://apparmor_on_boot.cfg', '', d)} \
+"
+
+SRC_URI += "\
+ ${@bb.utils.contains('DISTRO_FEATURES', 'smack', ' file://smack.cfg', '', d)} \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'smack', ' file://smack-default-lsm.cfg', '', d)} \
+"