diff mbox series

[meta-security,13/18] systemd-boot: enable TPM support via "tpm2" in DISTRO_FEATURES

Message ID 20241220140441.271395-14-mikko.rapeli@linaro.org
State New
Headers show
Series various updates | expand

Commit Message

Mikko Rapeli Dec. 20, 2024, 2:04 p.m. UTC
systemd-boot will then measure boot components to TPM device.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
---
 meta-tpm/recipes-core/systemd/systemd-boot_%.bbappend | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 meta-tpm/recipes-core/systemd/systemd-boot_%.bbappend
diff mbox series

Patch

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 @@ 
+DEPENDS += "\
+    ${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', 'tpm2-tss libtss2 libtss2-tcti-device', '', d)} \
+"
+
+EXTRA_OEMESON:append= "\
+    ${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', '-Dtpm2=true', '', d)} \
+"