summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikko Rapeli <mikko.rapeli@linaro.org>2024-12-20 16:04:36 +0200
committerArmin Kuster <akuster808@gmail.com>2024-12-27 11:28:23 -0500
commita4f343b686d53d8a0db28a557263e4ef98fc1568 (patch)
treef639999b7f3cb4528a88b95226d99bb003b8f2c1
parent6eb3098e57881895e62fc811f714c2aa4ecfcf8f (diff)
downloadmeta-security-a4f343b686d53d8a0db28a557263e4ef98fc1568.tar.gz
systemd-boot: enable TPM support via "tpm2" in DISTRO_FEATURES
systemd-boot will then measure boot components to TPM device. Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-tpm/recipes-core/systemd/systemd-boot_%.bbappend7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-tpm/recipes-core/systemd/systemd-boot_%.bbappend b/meta-tpm/recipes-core/systemd/systemd-boot_%.bbappend
new file mode 100644
index 0000000..712a764
--- /dev/null
+++ b/meta-tpm/recipes-core/systemd/systemd-boot_%.bbappend
@@ -0,0 +1,7 @@
1DEPENDS += "\
2 ${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', 'tpm2-tss libtss2 libtss2-tcti-device', '', d)} \
3"
4
5EXTRA_OEMESON:append= "\
6 ${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', '-Dtpm2=true', '', d)} \
7"