aboutsummaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2016-08-22 17:06:03 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-03 23:45:44 +0100
commitb7e045d0cb3d06b9e197ec985fc82c373f006d5c (patch)
tree367e9cc68aadffa979bd75b80a0fcb430c09c728 /meta
parentb72d04985a6e0dba8ab44b6eb55b62914266645c (diff)
downloadopenembedded-core-contrib-b7e045d0cb3d06b9e197ec985fc82c373f006d5c.tar.gz
openembedded-core-contrib-b7e045d0cb3d06b9e197ec985fc82c373f006d5c.tar.bz2
openembedded-core-contrib-b7e045d0cb3d06b9e197ec985fc82c373f006d5c.zip
nspr: 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-support/nspr/nspr_4.12.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-support/nspr/nspr_4.12.bb b/meta/recipes-support/nspr/nspr_4.12.bb
index 168341bc05c..fa6d52357d6 100644
--- a/meta/recipes-support/nspr/nspr_4.12.bb
+++ b/meta/recipes-support/nspr/nspr_4.12.bb
@@ -147,6 +147,9 @@ TESTS = " \
inherit autotools
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}"
+PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
+
do_compile_prepend() {
oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export
}