mbedtls is available (and enabled by default) since version 1.5.2 and
https://github.com/nih-at/libzip/commit/
8e01a4fe8fa830c973b6a00f0da1e8b01789529a
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
LIBZIP_CONF_OPTS += -DENABLE_GNUTLS=OFF
endif
+ifeq ($(BR2_PACKAGE_MBEDTLS),y)
+LIBZIP_DEPENDENCIES += mbedtls
+LIBZIP_CONF_OPTS += -DENABLE_MBEDTLS=ON
+else
+LIBZIP_CONF_OPTS += -DENABLE_MBEDTLS=OFF
+endif
+
ifeq ($(BR2_PACKAGE_OPENSSL),y)
LIBZIP_DEPENDENCIES += openssl
LIBZIP_CONF_OPTS += -DENABLE_OPENSSL=ON