From 984b91447a466b83d400fc3d1c443bc5ae2e2666 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 15 Mar 2020 15:41:05 +0100 Subject: [PATCH] package/libcurl: add bearssl support bearssl support is available since version 7.68.0 and https://github.com/curl/curl/commit/9b879160df01e7ddbb4770904391d3b74114302b Signed-off-by: Fabrice Fontaine Signed-off-by: Yann E. MORIN --- package/libcurl/Config.in | 4 ++++ package/libcurl/libcurl.mk | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/package/libcurl/Config.in b/package/libcurl/Config.in index d05cbedf77..b89c46f5ef 100644 --- a/package/libcurl/Config.in +++ b/package/libcurl/Config.in @@ -52,6 +52,10 @@ config BR2_PACKAGE_LIBCURL_OPENSSL bool "OpenSSL" depends on BR2_PACKAGE_OPENSSL +config BR2_PACKAGE_LIBCURL_BEARSSL + bool "BearSSL" + depends on BR2_PACKAGE_BEARSSL + config BR2_PACKAGE_LIBCURL_GNUTLS bool "GnuTLS" depends on BR2_PACKAGE_GNUTLS diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk index 16b11ca944..5de2591178 100644 --- a/package/libcurl/libcurl.mk +++ b/package/libcurl/libcurl.mk @@ -51,6 +51,13 @@ else LIBCURL_CONF_OPTS += --without-ssl endif +ifeq ($(BR2_PACKAGE_LIBCURL_BEARSSL),y) +LIBCURL_CONF_OPTS += --with-bearssl=$(STAGING_DIR)/usr +LIBCURL_DEPENDENCIES += bearssl +else +LIBCURL_CONF_OPTS += --without-bearssl +endif + ifeq ($(BR2_PACKAGE_LIBCURL_GNUTLS),y) LIBCURL_CONF_OPTS += --with-gnutls=$(STAGING_DIR)/usr \ --with-ca-fallback -- 2.30.2