]> code.ossystems Code Review - openembedded-core.git/commitdiff
curl: control ipv6 support based on DISTRO feature
authorAndre McCurdy <armccurdy@gmail.com>
Thu, 12 Jun 2014 17:29:02 +0000 (10:29 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 14 Jun 2014 07:42:12 +0000 (08:42 +0100)
By default ipv6 is auto detected for native builds but disabled when
cross compiling.

This commit adds a PACKAGECONFIG option, unconditionally enabled for
native and nativesdk builds and controlled by the ipv6 DISTRO feature
for target builds.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/curl/curl_7.36.0.bb

index 56eb1a25a0e1d425763f166b6e3895cdb7cc5083..54ea6d407f44504ae932dcc8f7e04cfbaa2c99c6 100644 (file)
@@ -40,6 +40,12 @@ CURLGNUTLS = " --with-gnutls=${STAGING_LIBDIR}/../ --without-ssl"
 CURLGNUTLS_class-native = "--without-gnutls --with-ssl"
 CURLGNUTLS_class-nativesdk = "--without-gnutls --without-ssl"
 
+PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "ipv6", "ipv6", "", d)}"
+PACKAGECONFIG_class-native = "ipv6"
+PACKAGECONFIG_class-nativesdk = "ipv6"
+
+PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
+
 do_configure_prepend() {
        sed -i s:OPT_GNUTLS/bin:OPT_GNUTLS:g ${S}/configure.ac
 }