This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
config BR2_PACKAGE_LIBPCAP
|
||||
bool "libpcap"
|
||||
select BR2_PACKAGE_BLUEZ5_UTILS_HEADERS if BR2_PACKAGE_BLUEZ5_UTILS
|
||||
select BR2_PACKAGE_ZLIB
|
||||
help
|
||||
A system-independent library for user-level network packet
|
||||
|
||||
@@ -16,6 +16,8 @@ LIBPCAP_CONF_ENV = \
|
||||
CFLAGS="$(LIBPCAP_CFLAGS)"
|
||||
LIBPCAP_CFLAGS = $(TARGET_CFLAGS)
|
||||
LIBPCAP_CONF_OPTS = --disable-yydebug --with-pcap=linux --without-dag
|
||||
# Disable dbus to break recursive dependencies
|
||||
LIBPCAP_CONF_OPTS += --disable-dbus
|
||||
LIBPCAP_CONFIG_SCRIPTS = pcap-config
|
||||
|
||||
# Omit -rpath from pcap-config output
|
||||
@@ -24,21 +26,12 @@ define LIBPCAP_CONFIG_REMOVE_RPATH
|
||||
endef
|
||||
LIBPCAP_POST_BUILD_HOOKS = LIBPCAP_CONFIG_REMOVE_RPATH
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS),y)
|
||||
LIBPCAP_DEPENDENCIES += bluez_utils
|
||||
else ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y)
|
||||
LIBPCAP_DEPENDENCIES += bluez5_utils
|
||||
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_HEADERS),y)
|
||||
LIBPCAP_DEPENDENCIES += bluez5_utils-headers
|
||||
else
|
||||
LIBPCAP_CONF_OPTS += --disable-bluetooth
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DBUS),y)
|
||||
LIBPCAP_CONF_OPTS += --enable-dbus
|
||||
LIBPCAP_DEPENDENCIES += dbus
|
||||
else
|
||||
LIBPCAP_CONF_OPTS += --disable-dbus
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBNL),y)
|
||||
LIBPCAP_DEPENDENCIES += libnl
|
||||
LIBPCAP_CFLAGS += "-I$(STAGING_DIR)/usr/include/libnl3"
|
||||
|
||||
Reference in New Issue
Block a user