aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-benchmark/iperf
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2016-08-24 17:07:00 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2016-09-05 13:30:49 +0200
commit07539fb9cd7a83bdbb37f1c785eb4c4c1ce7908a (patch)
treedd8fced8da4ef374766ff01079b02712728c887c /meta-oe/recipes-benchmark/iperf
parentad30a261094c858b2f91a48165e56cd8c38bb1a6 (diff)
downloadmeta-openembedded-contrib-07539fb9cd7a83bdbb37f1c785eb4c4c1ce7908a.tar.gz
meta-openembedded-contrib-07539fb9cd7a83bdbb37f1c785eb4c4c1ce7908a.tar.bz2
meta-openembedded-contrib-07539fb9cd7a83bdbb37f1c785eb4c4c1ce7908a.zip
iperf: 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: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-benchmark/iperf')
-rw-r--r--meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb b/meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb
index a9e0d87299..9981d8275f 100644
--- a/meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb
+++ b/meta-oe/recipes-benchmark/iperf/iperf_2.0.5.bb
@@ -18,3 +18,6 @@ S = "${WORKDIR}/${BP}"
inherit autotools pkgconfig
EXTRA_OECONF = "--exec-prefix=${STAGING_DIR_HOST}${layout_exec_prefix}"
+
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}"
+PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"