[Buildroot] [git commit] package/tpm2-pkcs11: add p11-kit optional dependency

From: Peter Korsgaard <peter@korsgaard.com>
Date: 2021-02-07 09:55:09
Subsystem: the rest · Maintainer: Linus Torvalds

commit: https://git.buildroot.net/buildroot/commit/?id=5a0315f7d48cef96618ce1add1fb8c0ddd60e487
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Fixes:
 - http://autobuild.buildroot.org/results/fee607da7226a92cceab2bbfd4c5d031016dfa3d

Signed-off-by: Fabrice Fontaine <redacted>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 package/tpm2-pkcs11/tpm2-pkcs11.mk | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/package/tpm2-pkcs11/tpm2-pkcs11.mk b/package/tpm2-pkcs11/tpm2-pkcs11.mk
index fb3846f056..3acce07745 100644
--- a/package/tpm2-pkcs11/tpm2-pkcs11.mk
+++ b/package/tpm2-pkcs11/tpm2-pkcs11.mk
@@ -37,4 +37,10 @@ TPM2_PKCS11_CONF_ENV += \
 	ac_cv_prog_tpm2_import=yes \
 	ac_cv_prog_tpm2_changeauth=yes
 
+ifeq ($(BR2_PACKAGE_P11_KIT),y)
+TPM2_PKCS11_DEPENDENCIES += p11-kit
+TPM2_PKCS11_CONF_OPTS += \
+	--with-p11kitconfigdir=/usr/share/p11-kit/modules
+endif
+
 $(eval $(autotools-package))
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help