Not all users of tpm2-tss make use of the libraries, so introduce a
config symbol to make it possible to not install them.

Signed-off-by: Uwe Kleine-König <[email protected]>
---
 rules/tpm2-tss.in   | 10 ++++++++++
 rules/tpm2-tss.make |  4 ++++
 2 files changed, 14 insertions(+)

diff --git a/rules/tpm2-tss.in b/rules/tpm2-tss.in
index dbb31007276b..bf1506da67c4 100644
--- a/rules/tpm2-tss.in
+++ b/rules/tpm2-tss.in
@@ -20,3 +20,13 @@ config TPM2_TSS
          This package contains the TSS and TCTI libraries that client
          applications will link against when they require accessing
          the TPM.
+
+if TPM2_TSS
+
+config TPM2_TSS_LIBTSS2_TCTI_DEVICE
+       bool "install libtss2-tcti-device.so.0"
+
+config TPM2_TSS_LIBTSS2_TCTI_MSSIM
+       bool "install libtss2-tcti-mssim.so.0"
+
+endif
diff --git a/rules/tpm2-tss.make b/rules/tpm2-tss.make
index 768c64426cbb..ed49a7d56c3d 100644
--- a/rules/tpm2-tss.make
+++ b/rules/tpm2-tss.make
@@ -83,8 +83,12 @@ $(STATEDIR)/tpm2-tss.targetinstall:
        @$(call install_lib, tpm2-tss, 0, 0, 0644, libtss2-esys)
        @$(call install_lib, tpm2-tss, 0, 0, 0644, libtss2-mu)
        @$(call install_lib, tpm2-tss, 0, 0, 0644, libtss2-sys)
+ifdef PTXCONF_TPM2_TSS_LIBTSS2_TCTI_DEVICE
        @$(call install_lib, tpm2-tss, 0, 0, 0644, libtss2-tcti-device)
+endif
+ifdef PTXCONF_TPM2_TSS_LIBTSS2_TCTI_MSSIM
        @$(call install_lib, tpm2-tss, 0, 0, 0644, libtss2-tcti-mssim)
+endif
        @$(call install_lib, tpm2-tss, 0, 0, 0644, libtss2-tctildr)
        @$(call install_lib, tpm2-tss, 0, 0, 0644, libtss2-rc)
 
-- 
2.27.0


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to