mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-11 15:00:34 +00:00
linux-yocto: support tpm and tpm2 on all architectures
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 <mikko.rapeli@linaro.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
5c2379f4bc
commit
d30d8989a0
@@ -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 = " \
|
||||
${@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', 'file://tpm.scc', '', d)} \
|
||||
${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'file://tpm2.scc', '', d)} \
|
||||
${@bb.utils.contains('MACHINE_FEATURES', 'tpm_i2c', 'file://tpm_i2c.scc', '', d)} \
|
||||
${@bb.utils.contains('MACHINE_FEATURES', 'vtpm', 'file://vtpm.scc', '', d)} \
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user