Skip to contentSkip to conversation

libpcap: handle bluetooth explicitly

PATCH New Gustavo Zacarias 2 participants 2 messages Aug 4, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libpcap: handle bluetooth explicitly

If bluez_utils is around then add it to dependencies so as to use it, but if it's not (for instance bluez5_utils is around) then disable it since the bluez5 API isn't compatible. Fixes:
http://autobuild.buildroot.net/results/6ca/6caeb7f41ac5e14dbee49f87511af3351f6013f1/

---
 package/libpcap/libpcap.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/libpcap/libpcap.mk +7 -0
index a8c056e..7cf731e 100644
@@ -20,6 +20,13 @@ LIBPCAP_CFLAGS = $(TARGET_CFLAGS)
 LIBPCAP_CONF_OPT = --disable-yydebug --with-pcap=linux
 LIBPCAP_CONFIG_SCRIPTS = pcap-config
 
+# On purpose, not compatible with bluez5
+ifeq ($(BR2_PACKAGE_BLUEZ_UTILS),y)
+LIBPCAP_DEPENDENCIES += bluez_utils
+else
+LIBPCAP_CONF_OPT += --disable-bluetooth
+endif
+
 ifeq ($(BR2_PACKAGE_DBUS),y)
 LIBPCAP_CONF_OPT += --enable-dbus
 LIBPCAP_DEPENDENCIES += dbus
Signature · 1 line
1.8.5.5
#1 lore raw

PATCH 1/1 libpcap: handle bluetooth explicitly

Dear Gustavo Zacarias,

Quoted 9 lines · Gustavo Zacarias

If bluez_utils is around then add it to dependencies so as to use it, but if it's not (for instance bluez5_utils is around) then disable it since the bluez5 API isn't compatible. Fixes:
http://autobuild.buildroot.net/results/6ca/6caeb7f41ac5e14dbee49f87511af3351f6013f1/

---
 package/libpcap/libpcap.mk | 7 +++++++
 1 file changed, 7 insertions(+)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com