From d6319d97a7864314088dcc6d1199f35029cfcecb Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 17 Jul 2022 09:50:34 +0200 Subject: [PATCH] package/libwebsockets: add wolfssl optional dependency wolfssl is an optional dependency since version 1.5.1 and https://github.com/warmcat/libwebsockets/commit/c3bcb89d01da0c3ce9915cd73451399ec005b535 Signed-off-by: Fabrice Fontaine Signed-off-by: Yann E. MORIN --- package/libwebsockets/libwebsockets.mk | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/package/libwebsockets/libwebsockets.mk b/package/libwebsockets/libwebsockets.mk index f5cde37109..79624948a5 100644 --- a/package/libwebsockets/libwebsockets.mk +++ b/package/libwebsockets/libwebsockets.mk @@ -34,16 +34,25 @@ ifeq ($(BR2_PACKAGE_OPENSSL),y) LIBWEBSOCKETS_DEPENDENCIES += openssl host-openssl LIBWEBSOCKETS_CONF_OPTS += \ -DLWS_WITH_SSL=ON \ - -DLWS_WITH_MBEDTLS=OFF + -DLWS_WITH_MBEDTLS=OFF \ + -DLWS_WITH_WOLFSSL=OFF else ifeq ($(BR2_PACKAGE_MBEDTLS),y) LIBWEBSOCKETS_DEPENDENCIES += mbedtls LIBWEBSOCKETS_CONF_OPTS += \ -DLWS_WITH_SSL=ON \ - -DLWS_WITH_MBEDTLS=ON + -DLWS_WITH_MBEDTLS=ON \ + -DLWS_WITH_WOLFSSL=OFF +else ifeq ($(BR2_PACKAGE_WOLFSSL),y) +LIBWEBSOCKETS_DEPENDENCIES += host-pkgconf wolfssl +LIBWEBSOCKETS_CONF_OPTS += \ + -DLWS_WITH_SSL=ON \ + -DLWS_WITH_MBEDTLS=OFF \ + -DLWS_WITH_WOLFSSL=ON else LIBWEBSOCKETS_CONF_OPTS += \ -DLWS_WITH_SSL=OFF \ - -DLWS_WITH_MBEDTLS=OFF + -DLWS_WITH_MBEDTLS=OFF \ + -DLWS_WITH_WOLFSSL=OFF endif ifeq ($(BR2_PACKAGE_LIBEV),y)