76defe49ac
Building with nftables support requires libmnl. Fixes: - http://autobuild.buildroot.org/results/4afdacc0357eb3b86594757dd89623b6e5a5e362/ - http://autobuild.buildroot.org/results/89e6f92dee4a93185891c48b5d7f7b5b0345b67e/ - http://autobuild.buildroot.org/results/dd8a68827ca70838c59d82780cb3eadf6b9764c2/ Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Reviewed-by: Petr Vorel <petr.vorel@gmail.com> [yann.morin.1998@free.fr: add autobuild referecnes] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
99 lines
2.4 KiB
Makefile
99 lines
2.4 KiB
Makefile
################################################################################
|
|
#
|
|
# connman
|
|
#
|
|
################################################################################
|
|
|
|
CONNMAN_VERSION = 1.38
|
|
CONNMAN_SOURCE = connman-$(CONNMAN_VERSION).tar.xz
|
|
CONNMAN_SITE = $(BR2_KERNEL_MIRROR)/linux/network/connman
|
|
CONNMAN_DEPENDENCIES = libglib2 dbus iptables
|
|
CONNMAN_INSTALL_STAGING = YES
|
|
CONNMAN_LICENSE = GPL-2.0
|
|
CONNMAN_LICENSE_FILES = COPYING
|
|
|
|
CONNMAN_CONF_OPTS = --with-dbusconfdir=/etc
|
|
|
|
ifeq ($(BR2_INIT_SYSTEMD),y)
|
|
CONNMAN_CONF_OPTS += --with-systemdunitdir=/usr/lib/systemd/system
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_BLUETOOTH),y)
|
|
CONNMAN_CONF_OPTS += --enable-bluetooth
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-bluetooth
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_DEBUG),y)
|
|
CONNMAN_CONF_OPTS += --enable-debug
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-debug
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_ETHERNET),y)
|
|
CONNMAN_CONF_OPTS += --enable-ethernet
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-ethernet
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_IPTABLES),y)
|
|
CONNMAN_CONF_OPTS += --with-firewall=iptables
|
|
CONNMAN_DEPENDENCIES += iptables
|
|
else ifeq ($(BR2_PACKAGE_CONNMAN_NFTABLES),y)
|
|
CONNMAN_CONF_OPTS += --with-firewall=nftables
|
|
CONNMAN_DEPENDENCIES += libmnl nftables
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_LOOPBACK),y)
|
|
CONNMAN_CONF_OPTS += --enable-loopback
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-loopback
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_NEARD),y)
|
|
CONNMAN_CONF_OPTS += --enable-neard
|
|
CONNMAN_DEPENDENCIES += neard
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-neard
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_OFONO),y)
|
|
CONNMAN_CONF_OPTS += --enable-ofono
|
|
CONNMAN_DEPENDENCIES += ofono
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-ofono
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_WIFI),y)
|
|
CONNMAN_CONF_OPTS += --enable-wifi
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-wifi
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_WISPR),y)
|
|
CONNMAN_CONF_OPTS += --enable-wispr
|
|
CONNMAN_DEPENDENCIES += gnutls
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-wispr
|
|
endif
|
|
|
|
define CONNMAN_INSTALL_INIT_SYSV
|
|
$(INSTALL) -m 0755 -D package/connman/S45connman $(TARGET_DIR)/etc/init.d/S45connman
|
|
endef
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_CLIENT),y)
|
|
CONNMAN_LICENSE += , GPL-2.0+ (client)
|
|
CONNMAN_CONF_OPTS += --enable-client
|
|
CONNMAN_DEPENDENCIES += readline
|
|
|
|
define CONNMAN_INSTALL_CM
|
|
$(INSTALL) -m 0755 -D $(@D)/client/connmanctl $(TARGET_DIR)/usr/bin/connmanctl
|
|
endef
|
|
|
|
CONNMAN_POST_INSTALL_TARGET_HOOKS += CONNMAN_INSTALL_CM
|
|
else
|
|
CONNMAN_CONF_OPTS += --disable-client
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|