[meta-security][PATCH] tpm2-tools: libtss added to RDEPENDS


Michał Kotyla
 

To use tpm2-tools like tpm2_pcrread on the system image should be install=
ed
additional software. Without adding libtss packages to the RDEPENDS attem=
pt to
run with tss2-tcti fails like:

ERROR:tcti:../tpm2-tss-3.0.3/src/tss2-tcti/tcti-swtpm.c:592:
Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket
---
meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb | 2 ++
1 file changed, 2 insertions(+)

diff --git a/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb b/meta-tp=
m/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
index dbd324a..cb2e3d8 100644
--- a/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
+++ b/meta-tpm/recipes-tpm2/tpm2-tools/tpm2-tools_5.0.bb
@@ -6,6 +6,8 @@ SECTION =3D "tpm"
=20
DEPENDS =3D "tpm2-abrmd tpm2-tss openssl curl autoconf-archive"
=20
+RDEPENDS:${PN} =3D "libtss2 libtss2-mu libtss2-tcti-device libtss2-tcti-=
mssim"
+
SRC_URI =3D "https://github.com/tpm2-software/${BPN}/releases/download/$=
{PV}/${BPN}-${PV}.tar.gz"
=20
SRC_URI[sha256sum] =3D "e1b907fe29877628052e08ad84eebc6c3f7646d29505ed48=
62e96162a8c91ba1"
--=20
2.25.1



--
Michał Kotyla
Embedded Linux Developer
GPG: 14FC54DC259CF70A
https://3mdeb.com | @3mdeb_com

Join yocto@lists.yoctoproject.org to automatically receive all group messages.