linux-yocto: support tpm and tpm2 on all architectures
PATCH 1/2 linux-yocto: support tpm and tpm2 on all architectures
From: Mikko Rapeli <[email protected]>
arm, arm64 and other machines can also have tpm and tpm2 devices and the config snippets tpm.scc and tpm2.scc work there too.
Signed-off-by Mikko Rapeli <[email protected]>
--- meta-tpm/recipes-kernel/linux/linux-yocto_tpm.inc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-)
meta-tpm/recipes-kernel/linux/linux-yocto_tpm.inc +1 -10
@@ -1,17 +1,8 @@ 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 = " \ +SRC_URI += " \ ${@bb.utils.contains('MACHINE_FEATURES', 'tpm', 'file://tpm.scc', '', d)} \ ${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'file://tpm2.scc', '', d)} \ - " - -SRC_URI += " \ ${@bb.utils.contains('MACHINE_FEATURES', 'tpm_i2c', 'file://tpm_i2c.scc', '', d)} \ ${@bb.utils.contains('MACHINE_FEATURES', 'vtpm', 'file://vtpm.scc', '', d)} \ "
Signature · 1 line
2.34.1
PATCH 2/2 linux-yocto: remove tpm_x86.cfg
From: Mikko Rapeli <[email protected]>
It's not used by linux-yocto bbappends in any configuration.
Signed-off-by Mikko Rapeli <[email protected]>
--- meta-tpm/recipes-kernel/linux/linux-yocto/tpm_x86.cfg | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 meta-tpm/recipes-kernel/linux/linux-yocto/tpm_x86.cfg
meta-tpm/recipes-kernel/linux/linux-yocto/tpm_x86.cfg deleted +0 -4
@@ -1,4 +0,0 @@ -CONFIG_TCG_NSC=m -CONFIG_TCG_ATMEL=m -CONFIG_TCG_INFINEON=m -CONFIG_TCG_TIS_ST33ZP24=m
Signature · 1 line
2.34.1