package/mongoose: fix activation of openssl/mbedtls
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 16 Feb 2021 08:07:54 +0000 (09:07 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 16 Feb 2021 19:32:51 +0000 (20:32 +0100)
MG_ENABLE_SSL and MG_SSL_IF have been dropped since version 7.0 and
https://github.com/cesanta/mongoose/commit/f2fba1d2004c5ddf2fc0a7ca8dc75b5f78feed85

So use the new MG_ENABLE_OPENSSL and MG_ENABLE_MBEDTLS variables

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/mongoose/mongoose.mk

index ae20965be455d137ab330f24c968df874da76ee3..996cbff7576941602fbb1ea14b7a473524fc36fd 100644 (file)
@@ -16,14 +16,10 @@ MONGOOSE_CFLAGS = $(TARGET_CFLAGS)
 
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 MONGOOSE_DEPENDENCIES += openssl
-MONGOOSE_CFLAGS += \
-       -DMG_ENABLE_SSL \
-       -DMG_SSL_IF=MG_SSL_IF_OPENSSL
+MONGOOSE_CFLAGS += -DMG_ENABLE_OPENSSL=1
 else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
 MONGOOSE_DEPENDENCIES += mbedtls
-MONGOOSE_CFLAGS += \
-       -DMG_ENABLE_SSL \
-       -DMG_SSL_IF=MG_SSL_IF_MBEDTLS
+MONGOOSE_CFLAGS += -DMG_ENABLE_MBEDTLS=1
 endif
 
 define MONGOOSE_BUILD_CMDS