Signed-off-by: Armin Kuster <akuster...@gmail.com> --- meta-tpm/recipes-kernel/linux/linux-yocto/tpm.cfg | 3 +++ meta-tpm/recipes-kernel/linux/linux-yocto/tpm2.cfg | 6 ++++++ meta-tpm/recipes-kernel/linux/linux-yocto/tpm2.scc | 3 +++ meta-tpm/recipes-kernel/linux/linux-yocto_4.%.bbappend | 6 ++++++ 4 files changed, 18 insertions(+) create mode 100644 meta-tpm/recipes-kernel/linux/linux-yocto/tpm2.cfg create mode 100644 meta-tpm/recipes-kernel/linux/linux-yocto/tpm2.scc
diff --git a/meta-tpm/recipes-kernel/linux/linux-yocto/tpm.cfg b/meta-tpm/recipes-kernel/linux/linux-yocto/tpm.cfg index e34b24e..8782823 100644 --- a/meta-tpm/recipes-kernel/linux/linux-yocto/tpm.cfg +++ b/meta-tpm/recipes-kernel/linux/linux-yocto/tpm.cfg @@ -3,3 +3,6 @@ CONFIG_TCG_TPM=y CONFIG_TCG_TIS_CORE=y CONFIG_TCG_TIS=y CONFIG_SECURITYFS=y +CONFIG_TCG_NSC=m +CONFIG_TCG_ATMEL=m +CONFIG_TCG_INFINEON=m diff --git a/meta-tpm/recipes-kernel/linux/linux-yocto/tpm2.cfg b/meta-tpm/recipes-kernel/linux/linux-yocto/tpm2.cfg new file mode 100644 index 0000000..a81b54d --- /dev/null +++ b/meta-tpm/recipes-kernel/linux/linux-yocto/tpm2.cfg @@ -0,0 +1,6 @@ +CONFIG_HW_RANDOM_TPM=y +CONFIG_TCG_TPM=y +CONFIG_TCG_TIS_CORE=y +CONFIG_TCG_TIS=y +CONFIG_TCG_CRB=y +CONFIG_SECURITYFS=y diff --git a/meta-tpm/recipes-kernel/linux/linux-yocto/tpm2.scc b/meta-tpm/recipes-kernel/linux/linux-yocto/tpm2.scc new file mode 100644 index 0000000..088148f --- /dev/null +++ b/meta-tpm/recipes-kernel/linux/linux-yocto/tpm2.scc @@ -0,0 +1,3 @@ +define KFEATURE_DESCRIPTION "Enable TPM 2.0" + +kconf hardware tpm2.cfg diff --git a/meta-tpm/recipes-kernel/linux/linux-yocto_4.%.bbappend b/meta-tpm/recipes-kernel/linux/linux-yocto_4.%.bbappend index 0eebf00..cea8b1b 100644 --- a/meta-tpm/recipes-kernel/linux/linux-yocto_4.%.bbappend +++ b/meta-tpm/recipes-kernel/linux/linux-yocto_4.%.bbappend @@ -3,6 +3,12 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" # Enable tpm in kernel SRC_URI_append_x86 = " \ ${@bb.utils.contains('MACHINE_FEATURES', 'tpm', 'file://tpm.scc', '', d)} \ + ${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'file://tpm2.scc', '', d)} \ + " + +SRC_URI_append_x86-64 = " \ + ${@bb.utils.contains('MACHINE_FEATURES', 'tpm', 'file://tpm.scc', '', d)} \ + ${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'file://tpm2.scc', '', d)} \ " SRC_URI += " \ -- 2.7.4 -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto