diff options
author | Potin Lai <potin.lai@quantatw.com> | 2021-12-13 18:13:02 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2021-12-22 16:18:27 +0300 |
commit | 8c3075a3a50ec16c8c9fb93a1785a5abb13386c5 (patch) | |
tree | 5ee9ef27e57d02aaf47e48735f9d008b9d253238 /meta-aspeed | |
parent | 775dfa41360e48d926489c18553fb4997d4f7d37 (diff) | |
download | openbmc-8c3075a3a50ec16c8c9fb93a1785a5abb13386c5.tar.xz |
meta-aspeed: Enable tpm2 kernel config
Append tpm2 in MACHINE_FEATURES to enable related kernel configs
MACHINE_FEATURES:append = " tpm2"
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ie6b50d81040de2863487cffc449193ec9462bf89
Diffstat (limited to 'meta-aspeed')
3 files changed, 10 insertions, 0 deletions
diff --git a/meta-aspeed/recipes-kernel/linux/linux-aspeed.inc b/meta-aspeed/recipes-kernel/linux/linux-aspeed.inc index aa060295f..6098885d5 100644 --- a/meta-aspeed/recipes-kernel/linux/linux-aspeed.inc +++ b/meta-aspeed/recipes-kernel/linux/linux-aspeed.inc @@ -12,6 +12,7 @@ SRC_URI += " \ file://defconfig \ file://rsa_oem_fitimage_key.key;sha256sum=eeb4ff2ebbfbd97b6254fe6dbaeea41067e54c65176c233ec7b2ab2decf1ddcd \ file://rsa_oem_fitimage_key.crt;sha256sum=45f5a55497cce8040999bf9f3214d471ac7b83ab7acef41c4425a34662e8372e \ + ${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'file://tpm/tpm2.scc', '', d)} \ " LINUX_VERSION_EXTENSION ?= "-${SRCREV}" diff --git a/meta-aspeed/recipes-kernel/linux/linux-aspeed/tpm/tpm2.cfg b/meta-aspeed/recipes-kernel/linux/linux-aspeed/tpm/tpm2.cfg new file mode 100644 index 000000000..9479a7b41 --- /dev/null +++ b/meta-aspeed/recipes-kernel/linux/linux-aspeed/tpm/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_TIS_SPI=y +CONFIG_SECURITYFS=y diff --git a/meta-aspeed/recipes-kernel/linux/linux-aspeed/tpm/tpm2.scc b/meta-aspeed/recipes-kernel/linux/linux-aspeed/tpm/tpm2.scc new file mode 100644 index 000000000..088148fec --- /dev/null +++ b/meta-aspeed/recipes-kernel/linux/linux-aspeed/tpm/tpm2.scc @@ -0,0 +1,3 @@ +define KFEATURE_DESCRIPTION "Enable TPM 2.0" + +kconf hardware tpm2.cfg |