summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2016-10-16 00:55:44 -0700
committerArmin Kuster <akuster808@gmail.com>2016-11-01 09:03:15 -0700
commit2431acfc957b98f74bc164a7c7e313dbdd38a267 (patch)
treea1a5b61351dfa2ae93592aaebe7a35bf4b9d98da
parent67cfe62b20486b1598fd33d07e2d467fcba2b309 (diff)
downloadmeta-security-2431acfc957b98f74bc164a7c7e313dbdd38a267.tar.gz
linux-yocto-4.8: add tpm fragments
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--recipes-kernel/linux/linux-yocto-4.8/tpm.cfg9
-rw-r--r--recipes-kernel/linux/linux-yocto-4.8/tpm.scc4
-rw-r--r--recipes-kernel/linux/linux-yocto_4.8.bbappend7
3 files changed, 20 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-yocto-4.8/tpm.cfg b/recipes-kernel/linux/linux-yocto-4.8/tpm.cfg
new file mode 100644
index 0000000..fe1bb3f
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto-4.8/tpm.cfg
@@ -0,0 +1,9 @@
1CONFIG_HW_RANDOM_TPM=y
2CONFIG_TCG_TPM=y
3CONFIG_TCG_TIS_CORE=y
4CONFIG_TCG_TIS=y
5CONFIG_TCG_CRB=y
6CONFIG_TCG_VTPM_PROXY=y
7CONFIG_DEVPORT=y
8CONFIG_FUSE_FS=y
9CONFIG_CUSE=y
diff --git a/recipes-kernel/linux/linux-yocto-4.8/tpm.scc b/recipes-kernel/linux/linux-yocto-4.8/tpm.scc
new file mode 100644
index 0000000..7c7ec2d
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto-4.8/tpm.scc
@@ -0,0 +1,4 @@
1define KFEATURE_DESCRIPTION "TPM Kernel Support"
2define KFEATURE_COMPATIBILITY arch
3
4kconf non-hardware tpm.cfg
diff --git a/recipes-kernel/linux/linux-yocto_4.8.bbappend b/recipes-kernel/linux/linux-yocto_4.8.bbappend
new file mode 100644
index 0000000..0e6960e
--- /dev/null
+++ b/recipes-kernel/linux/linux-yocto_4.8.bbappend
@@ -0,0 +1,7 @@
1FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.8:"
2
3# TPM kernel support
4SRC_URI += "\
5 ${@bb.utils.contains('DISTRO_FEATURES', 'tpm', ' file://tpm.cfg', '', d)} \
6 ${@bb.utils.contains('DISTRO_FEATURES', 'tpm', ' file://tpm.scc', '', d)} \
7"