From 5a0315f7d48cef96618ce1add1fb8c0ddd60e487 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 7 Feb 2021 10:19:29 +0100 Subject: [PATCH] package/tpm2-pkcs11: add p11-kit optional dependency Fixes: - http://autobuild.buildroot.org/results/fee607da7226a92cceab2bbfd4c5d031016dfa3d Signed-off-by: Fabrice Fontaine Signed-off-by: Peter Korsgaard --- 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)) -- 2.30.2