diff options
| author | Mikko Rapeli <mikko.rapeli@linaro.org> | 2023-05-23 15:14:43 +0300 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2023-06-03 10:04:23 -0400 |
| commit | d30d8989a0e9d11d878b03d0eeaf341025f60e1a (patch) | |
| tree | 96c9809a140e1d6b7169919f27ffe0c6ec784031 /meta-tpm/recipes-kernel | |
| parent | 5c2379f4bc5f0e3972f8798fbe45e9266c867433 (diff) | |
| download | meta-security-d30d8989a0e9d11d878b03d0eeaf341025f60e1a.tar.gz | |
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>
Diffstat (limited to 'meta-tpm/recipes-kernel')
| -rw-r--r-- | meta-tpm/recipes-kernel/linux/linux-yocto_tpm.inc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/meta-tpm/recipes-kernel/linux/linux-yocto_tpm.inc b/meta-tpm/recipes-kernel/linux/linux-yocto_tpm.inc index 909c42d..7a27683 100644 --- a/meta-tpm/recipes-kernel/linux/linux-yocto_tpm.inc +++ b/meta-tpm/recipes-kernel/linux/linux-yocto_tpm.inc | |||
| @@ -1,17 +1,8 @@ | |||
| 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/linux-yocto:" | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/linux-yocto:" |
| 2 | 2 | ||
| 3 | # Enable tpm in kernel | 3 | SRC_URI += " \ |
| 4 | SRC_URI:append:x86 = " \ | ||
| 5 | ${@bb.utils.contains('MACHINE_FEATURES', 'tpm', 'file://tpm.scc', '', d)} \ | ||
| 6 | ${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'file://tpm2.scc', '', d)} \ | ||
| 7 | " | ||
| 8 | |||
| 9 | SRC_URI:append:x86-64 = " \ | ||
| 10 | ${@bb.utils.contains('MACHINE_FEATURES', 'tpm', 'file://tpm.scc', '', d)} \ | 4 | ${@bb.utils.contains('MACHINE_FEATURES', 'tpm', 'file://tpm.scc', '', d)} \ |
| 11 | ${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'file://tpm2.scc', '', d)} \ | 5 | ${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'file://tpm2.scc', '', d)} \ |
| 12 | " | ||
| 13 | |||
| 14 | SRC_URI += " \ | ||
| 15 | ${@bb.utils.contains('MACHINE_FEATURES', 'tpm_i2c', 'file://tpm_i2c.scc', '', d)} \ | 6 | ${@bb.utils.contains('MACHINE_FEATURES', 'tpm_i2c', 'file://tpm_i2c.scc', '', d)} \ |
| 16 | ${@bb.utils.contains('MACHINE_FEATURES', 'vtpm', 'file://vtpm.scc', '', d)} \ | 7 | ${@bb.utils.contains('MACHINE_FEATURES', 'vtpm', 'file://vtpm.scc', '', d)} \ |
| 17 | " | 8 | " |
