meta-facebook: add libtss2-tcti-device package when tpm2 enabled
Add libtss2-tcti-device package to support access tpm via device node
/dev/tpm0
Tested Results:
root@bletchley:~# /usr/bin/tpm2_getcap properties-fixed 2>/dev/null | grep -A1 TPM2_PT_FIRMWARE_VERSION_1
TPM2_PT_FIRMWARE_VERSION_1:
raw: 0x7003E
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I67784a34aeffc38c66f98a3c0dbe995bb098394b
diff --git a/meta-facebook/recipes-phosphor/images/fb-phosphor-image.inc b/meta-facebook/recipes-phosphor/images/fb-phosphor-image.inc
index fbc8080..0643f18 100644
--- a/meta-facebook/recipes-phosphor/images/fb-phosphor-image.inc
+++ b/meta-facebook/recipes-phosphor/images/fb-phosphor-image.inc
@@ -2,7 +2,7 @@
OBMC_IMAGE_EXTRA_INSTALL:append = "\
${@bb.utils.contains('DISTRO_FEATURES', 'tpm', \
- bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'packagegroup-security-tpm2', '', d), \
+ bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'packagegroup-security-tpm2 libtss2-tcti-device', '', d), \
'', d)} \
"