Enable smack, ramdisk and nbd in linux-staging-ti kernel 05/6905/2
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Thu, 27 Oct 2016 09:16:01 +0000 (11:16 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 27 Oct 2016 11:26:04 +0000 (11:26 +0000)
This changeset enables the necessary features for AGL in the linux-ti-staging kernel
by using configuration fragments. These are additive to the configuration matrix
done by linux-ti-staging itself (per board).
Apply likewise for other needed options.

Change-Id: Iebd212ca81f1c6a7f65f1f413f2021aa11f8190e
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
meta-agl-bsp/meta-ti/recipes-kernel/linux/files/ramblock_nbd.cfg [new file with mode: 0644]
meta-agl-bsp/meta-ti/recipes-kernel/linux/files/smack-default-lsm.cfg [new file with mode: 0644]
meta-agl-bsp/meta-ti/recipes-kernel/linux/files/smack.cfg [new file with mode: 0644]
meta-agl-bsp/meta-ti/recipes-kernel/linux/linux-ti-staging%.bbappend [new file with mode: 0644]

diff --git a/meta-agl-bsp/meta-ti/recipes-kernel/linux/files/ramblock_nbd.cfg b/meta-agl-bsp/meta-ti/recipes-kernel/linux/files/ramblock_nbd.cfg
new file mode 100644 (file)
index 0000000..ef49866
--- /dev/null
@@ -0,0 +1,2 @@
+CONFIG_BLK_DEV_RAM=y
+CONFIG_BLK_DEV_NBD=y
diff --git a/meta-agl-bsp/meta-ti/recipes-kernel/linux/files/smack-default-lsm.cfg b/meta-agl-bsp/meta-ti/recipes-kernel/linux/files/smack-default-lsm.cfg
new file mode 100644 (file)
index 0000000..b5c4845
--- /dev/null
@@ -0,0 +1,2 @@
+CONFIG_DEFAULT_SECURITY="smack"
+CONFIG_DEFAULT_SECURITY_SMACK=y
diff --git a/meta-agl-bsp/meta-ti/recipes-kernel/linux/files/smack.cfg b/meta-agl-bsp/meta-ti/recipes-kernel/linux/files/smack.cfg
new file mode 100644 (file)
index 0000000..62f465a
--- /dev/null
@@ -0,0 +1,8 @@
+CONFIG_IP_NF_SECURITY=m
+CONFIG_IP6_NF_SECURITY=m
+CONFIG_EXT2_FS_SECURITY=y
+CONFIG_EXT3_FS_SECURITY=y
+CONFIG_EXT4_FS_SECURITY=y
+CONFIG_SECURITY=y
+CONFIG_SECURITY_SMACK=y
+CONFIG_TMPFS_XATTR=y
diff --git a/meta-agl-bsp/meta-ti/recipes-kernel/linux/linux-ti-staging%.bbappend b/meta-agl-bsp/meta-ti/recipes-kernel/linux/linux-ti-staging%.bbappend
new file mode 100644 (file)
index 0000000..a1b8ca4
--- /dev/null
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI_append = " file://ramblock_nbd.cfg"
+SRC_URI_append = " file://smack.cfg"
+SRC_URI_append = " file://smack-default-lsm.cfg"
+
+KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/ramblock_nbd.cfg ${WORKDIR}/smack.cfg ${WORKDIR}/smack-default-lsm.cfg"