summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2016-08-22 17:05:59 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-03 23:45:44 +0100
commit1a505037e9a6dc86b523b378d6446baae71f1a2c (patch)
treef9c51c6290ac34512ca79a6d10c6ceb4f160b9bc /meta
parent3ec45c648c5c5a690d6d4102f8d65c97c8ff84e9 (diff)
downloadopenembedded-core-1a505037e9a6dc86b523b378d6446baae71f1a2c.tar.gz
openembedded-core-1a505037e9a6dc86b523b378d6446baae71f1a2c.tar.bz2
openembedded-core-1a505037e9a6dc86b523b378d6446baae71f1a2c.zip
libxml2: control ipv6 support based on DISTRO_FEATURES
Add PACKAGECONFIG for ipv6 and control it based on DISTRO_FEATURES. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/libxml/libxml2_2.9.4.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-core/libxml/libxml2_2.9.4.bb b/meta/recipes-core/libxml/libxml2_2.9.4.bb
index e2febf0c60..265d2b73a9 100644
--- a/meta/recipes-core/libxml/libxml2_2.9.4.bb
+++ b/meta/recipes-core/libxml/libxml2_2.9.4.bb
@@ -38,8 +38,11 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = " glibc-gconv-ebcdic-us glibc-gconv-ibm
export PYTHON_SITE_PACKAGES="${PYTHON_SITEPACKAGES_DIR}"
-PACKAGECONFIG ??= "python"
+PACKAGECONFIG ??= "python \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)} \
+"
PACKAGECONFIG[python] = "--with-python=${PYTHON},--without-python,python"
+PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
# WARNING: zlib is require for RPM use
EXTRA_OECONF = "--without-debug --without-legacy --with-catalog --without-docbook --with-c14n --without-lzma --with-fexceptions"