Skip to contentSkip to conversation

linux-yocto: support tpm and tpm2 on all architectures

PATCH New [email protected] 1 participant 2 messages May 23, 2023

lore
Share & tools
lore
#0 lore raw

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.

---
 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
index 909c42d..7a27683 100644
@@ -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
#1 lore raw

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.

---
 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
deleted file mode 100644
index 8be331a..0000000
@@ -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