diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2016-08-22 17:05:56 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-03 23:45:53 +0100 |
commit | 33664673f56b91433d5367a3c746ec42cec457ce (patch) | |
tree | 12bc02e3b5b9f536f19f63d4984289e7d5d2e10b /meta/recipes-connectivity/libpcap/libpcap.inc | |
parent | 92ce5feca844f41b696b30f41216eef14debc271 (diff) | |
download | poky-33664673f56b91433d5367a3c746ec42cec457ce.tar.gz |
libpcap: control ipv6 support based on DISTRO_FEATURES
Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.
(From OE-Core rev: cfa74a2d4f158601a35b96e235484dac14cbf4d5)
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/libpcap/libpcap.inc')
-rw-r--r-- | meta/recipes-connectivity/libpcap/libpcap.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/libpcap/libpcap.inc b/meta/recipes-connectivity/libpcap/libpcap.inc index b7601b05c7..7b29a52dcd 100644 --- a/meta/recipes-connectivity/libpcap/libpcap.inc +++ b/meta/recipes-connectivity/libpcap/libpcap.inc | |||
@@ -20,12 +20,15 @@ inherit autotools binconfig-disabled pkgconfig bluetooth | |||
20 | 20 | ||
21 | EXTRA_OECONF = "--with-pcap=linux" | 21 | EXTRA_OECONF = "--with-pcap=linux" |
22 | 22 | ||
23 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', '${BLUEZ}', '', d)}" | 23 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', '${BLUEZ}', '', d)} \ |
24 | ${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)} \ | ||
25 | " | ||
24 | PACKAGECONFIG[bluez4] = "--enable-bluetooth,--disable-bluetooth,bluez4" | 26 | PACKAGECONFIG[bluez4] = "--enable-bluetooth,--disable-bluetooth,bluez4" |
25 | # Add a dummy PACKAGECONFIG for bluez5 since it is not supported by libpcap. | 27 | # Add a dummy PACKAGECONFIG for bluez5 since it is not supported by libpcap. |
26 | PACKAGECONFIG[bluez5] = ",," | 28 | PACKAGECONFIG[bluez5] = ",," |
27 | PACKAGECONFIG[canusb] = "--enable-canusb,--enable-canusb=no,libusb" | 29 | PACKAGECONFIG[canusb] = "--enable-canusb,--enable-canusb=no,libusb" |
28 | PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus" | 30 | PACKAGECONFIG[dbus] = "--enable-dbus,--disable-dbus,dbus" |
31 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," | ||
29 | PACKAGECONFIG[libnl] = "--with-libnl,--without-libnl,libnl" | 32 | PACKAGECONFIG[libnl] = "--with-libnl,--without-libnl,libnl" |
30 | 33 | ||
31 | CPPFLAGS_prepend = "-I${S} " | 34 | CPPFLAGS_prepend = "-I${S} " |