2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-12-06 00:27:01 +01:00
|
|
|
#
|
2013-06-06 01:53:29 +02:00
|
|
|
# connman
|
2011-12-06 00:27:01 +01:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-12-06 00:27:01 +01:00
|
|
|
|
2021-02-09 08:45:24 +01:00
|
|
|
CONNMAN_VERSION = 1.39
|
2013-09-06 08:14:15 +02:00
|
|
|
CONNMAN_SOURCE = connman-$(CONNMAN_VERSION).tar.xz
|
2014-07-31 10:46:58 +02:00
|
|
|
CONNMAN_SITE = $(BR2_KERNEL_MIRROR)/linux/network/connman
|
2014-05-30 17:26:21 +02:00
|
|
|
CONNMAN_DEPENDENCIES = libglib2 dbus iptables
|
2011-12-06 00:27:01 +01:00
|
|
|
CONNMAN_INSTALL_STAGING = YES
|
2017-03-30 15:43:32 +02:00
|
|
|
CONNMAN_LICENSE = GPL-2.0
|
2012-12-28 10:47:23 +01:00
|
|
|
CONNMAN_LICENSE_FILES = COPYING
|
2021-02-08 11:10:35 +01:00
|
|
|
CONNMAN_CPE_ID_VENDOR = intel
|
2020-02-28 00:29:52 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-02-28 00:29:54 +01:00
|
|
|
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
|
2020-03-08 21:53:01 +01:00
|
|
|
CONNMAN_DEPENDENCIES += libmnl nftables
|
2020-02-28 00:29:54 +01:00
|
|
|
endif
|
|
|
|
|
2020-02-28 00:29:52 +01:00
|
|
|
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
|
|
|
|
|
2020-03-08 08:07:41 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_WIREGUARD),y)
|
|
|
|
CONNMAN_CONF_OPTS += --enable-wireguard
|
|
|
|
CONNMAN_DEPENDENCIES += libmnl
|
|
|
|
else
|
|
|
|
CONNMAN_CONF_OPTS += --disable-wireguard
|
|
|
|
endif
|
|
|
|
|
2020-02-28 00:29:52 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_WISPR),y)
|
|
|
|
CONNMAN_CONF_OPTS += --enable-wispr
|
|
|
|
CONNMAN_DEPENDENCIES += gnutls
|
|
|
|
else
|
|
|
|
CONNMAN_CONF_OPTS += --disable-wispr
|
|
|
|
endif
|
2011-12-06 00:27:01 +01:00
|
|
|
|
2014-01-22 21:59:39 +01:00
|
|
|
define CONNMAN_INSTALL_INIT_SYSV
|
2011-12-06 00:27:01 +01:00
|
|
|
$(INSTALL) -m 0755 -D package/connman/S45connman $(TARGET_DIR)/etc/init.d/S45connman
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_CONNMAN_CLIENT),y)
|
2019-11-13 16:17:15 +01:00
|
|
|
CONNMAN_LICENSE += , GPL-2.0+ (client)
|
2014-09-27 21:32:44 +02:00
|
|
|
CONNMAN_CONF_OPTS += --enable-client
|
2012-09-21 04:54:19 +02:00
|
|
|
CONNMAN_DEPENDENCIES += readline
|
2011-12-06 00:27:01 +01:00
|
|
|
|
|
|
|
define CONNMAN_INSTALL_CM
|
2012-09-21 04:54:19 +02:00
|
|
|
$(INSTALL) -m 0755 -D $(@D)/client/connmanctl $(TARGET_DIR)/usr/bin/connmanctl
|
2011-12-06 00:27:01 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
CONNMAN_POST_INSTALL_TARGET_HOOKS += CONNMAN_INSTALL_CM
|
2012-10-04 08:49:38 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
CONNMAN_CONF_OPTS += --disable-client
|
2011-12-06 00:27:01 +01:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|