diff --git a/package/softhsm2/softhsm2.mk b/package/softhsm2/softhsm2.mk index c418e3648e..5e37e42dde 100644 --- a/package/softhsm2/softhsm2.mk +++ b/package/softhsm2/softhsm2.mk @@ -12,4 +12,13 @@ SOFTHSM2_LICENSE_FILES = LICENSE SOFTHSM2_DEPENDENCIES = openssl SOFTHSM2_INSTALL_STAGING = YES +ifeq ($(BR2_PACKAGE_P11_KIT),y) +SOFTHSM2_CONF_OPTS += \ + --enable-p11-kit \ + --with-p11-kit=/usr/share/p11-kit/modules +SOFTHSM2_DEPENDENCIES += p11-kit +else +SOFTHSM2_CONF_OPTS += --disable-p11-kit +endif + $(eval $(autotools-package))