summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2016-01-06 15:53:37 -0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-03-08 21:24:53 +0100
commit0af16e3a9231e1df2b661b7bf0949e79ed28cb18 (patch)
tree84e125a6a2a158f10420546dc735b06259e5dd7f
parent64f2920765bd0771fb8a0956ac11c2d697c70649 (diff)
downloadbuildroot-0af16e3a9231e1df2b661b7bf0949e79ed28cb18.tar.gz
buildroot-0af16e3a9231e1df2b661b7bf0949e79ed28cb18.zip
libcurl: enable mbedtls support
Now that we've got an mbedtls package in the tree we can enable the optional support for it in libcurl. We also remove the comment about polarssl support needing version 1.3.x. Indeed, polarssl was renamed to mbedtls when bought by ARM, which was circa the 1.3.x polarssl release. Due to this referring to polarssl 1.3.x doesn't make a lot of sense, and we'll probably never package polarssl 1.3.x in Buildroot now that mbedtls replaces it. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Tested-by: Luca Ceresoli <luca@lucaceresoli.net> [Thomas: slightly improve commit log as suggested by Luca, using explanations from Gustavo.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/libcurl/libcurl.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
index 33a54106da..783c9b186a 100644
--- a/package/libcurl/libcurl.mk
+++ b/package/libcurl/libcurl.mk
@@ -40,10 +40,12 @@ else ifeq ($(BR2_PACKAGE_LIBNSS),y)
LIBCURL_CONF_OPTS += --with-nss=$(STAGING_DIR)/usr
LIBCURL_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) `$(PKG_CONFIG_HOST_BINARY) nspr nss --cflags`"
LIBCURL_DEPENDENCIES += libnss
+else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
+LIBCURL_CONF_OPTS += --with-mbedtls=$(STAGING_DIR)/usr
+LIBCURL_DEPENDENCIES += mbedtls
else
-# polarssl support needs 1.3.x
LIBCURL_CONF_OPTS += --without-ssl --without-gnutls \
- --without-polarssl --without-nss
+ --without-polarssl --without-nss --without-mbedtls
endif
ifeq ($(BR2_PACKAGE_C_ARES),y)
OpenPOWER on IntegriCloud