From: Fabrice Fontaine Date: Sun, 15 Mar 2020 14:41:05 +0000 (+0100) Subject: package/libcurl: add bearssl support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=984b91447a466b83d400fc3d1c443bc5ae2e2666;p=buildroot.git 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 --- 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