All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
To: buildroot@buildroot.org
Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Subject: [Buildroot] [PATCH 2/2] package/libwebsockets: add wolfssl optional dependency
Date: Sun, 17 Jul 2022 09:50:34 +0200	[thread overview]
Message-ID: <20220717075034.2246639-2-fontaine.fabrice@gmail.com> (raw)
In-Reply-To: <20220717075034.2246639-1-fontaine.fabrice@gmail.com>

wolfssl is an optional dependency since version 1.5.1 and
https://github.com/warmcat/libwebsockets/commit/c3bcb89d01da0c3ce9915cd73451399ec005b535

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 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)
-- 
2.35.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2022-07-17  7:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-17  7:50 [Buildroot] [PATCH 1/2] package/libwebsockets: bump to version 4.3.2 Fabrice Fontaine
2022-07-17  7:50 ` Fabrice Fontaine [this message]
2022-08-10 10:25   ` [Buildroot] [PATCH 2/2] package/libwebsockets: add wolfssl optional dependency Peter Korsgaard
2022-07-17 13:02 ` [Buildroot] [PATCH 1/2] package/libwebsockets: bump to version 4.3.2 Yann E. MORIN
2022-08-10 10:25 ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220717075034.2246639-2-fontaine.fabrice@gmail.com \
    --to=fontaine.fabrice@gmail.com \
    --cc=buildroot@buildroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.