package/mongoose: add mbedtls support

mbedtls is supported since version 6.7 and
65e01dbabc

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Fabrice Fontaine 2020-12-13 10:52:15 +01:00 committed by Yann E. MORIN
parent eda1040762
commit fe347897b8

View File

@ -16,7 +16,14 @@ MONGOOSE_CFLAGS = $(TARGET_CFLAGS)
ifeq ($(BR2_PACKAGE_OPENSSL),y)
MONGOOSE_DEPENDENCIES += openssl
MONGOOSE_CFLAGS += -DMG_ENABLE_SSL
MONGOOSE_CFLAGS += \
-DMG_ENABLE_SSL \
-DMG_SSL_IF=MG_SSL_IF_OPENSSL
else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
MONGOOSE_DEPENDENCIES += mbedtls
MONGOOSE_CFLAGS += \
-DMG_ENABLE_SSL \
-DMG_SSL_IF=MG_SSL_IF_MBEDTLS
endif
define MONGOOSE_BUILD_CMDS