Signed-off-by: Stefano Babic <
stefan...@swupdate.org>
---
Makefile.flags | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Makefile.flags b/Makefile.flags
index e9b2acaa..dac73a36 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -168,6 +168,9 @@ LDLIBS += wolfssl
endif
ifeq ($(CONFIG_PKCS11),y)
+$(eval $(call pkg_check_modules, P11BUILD, "p11-kit-1"))
+KBUILD_CFLAGS += $(P11BUILD_CFLAGS)
+KBUILD_LIBS += $(P11BUILD_LIBS)
LDLIBS += p11-kit
endif
--
2.43.0