xref: /OK3568_Linux_fs/buildroot/package/connman/connman.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# connman
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunCONNMAN_VERSION = 1.40
8*4882a593SmuzhiyunCONNMAN_SOURCE = connman-$(CONNMAN_VERSION).tar.xz
9*4882a593SmuzhiyunCONNMAN_SITE = $(BR2_KERNEL_MIRROR)/linux/network/connman
10*4882a593SmuzhiyunCONNMAN_DEPENDENCIES = libglib2 dbus iptables
11*4882a593SmuzhiyunCONNMAN_INSTALL_STAGING = YES
12*4882a593SmuzhiyunCONNMAN_LICENSE = GPL-2.0
13*4882a593SmuzhiyunCONNMAN_LICENSE_FILES = COPYING
14*4882a593SmuzhiyunCONNMAN_CPE_ID_VENDOR = intel
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunCONNMAN_CONF_OPTS = --with-dbusconfdir=/etc
17*4882a593Smuzhiyun
18*4882a593Smuzhiyunifeq ($(BR2_INIT_SYSTEMD),y)
19*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --with-systemdunitdir=/usr/lib/systemd/system
20*4882a593Smuzhiyunendif
21*4882a593Smuzhiyun
22*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_CONNMAN_BLUETOOTH),y)
23*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --enable-bluetooth
24*4882a593Smuzhiyunelse
25*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --disable-bluetooth
26*4882a593Smuzhiyunendif
27*4882a593Smuzhiyun
28*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_CONNMAN_DEBUG),y)
29*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --enable-debug
30*4882a593Smuzhiyunelse
31*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --disable-debug
32*4882a593Smuzhiyunendif
33*4882a593Smuzhiyun
34*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_CONNMAN_ETHERNET),y)
35*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --enable-ethernet
36*4882a593Smuzhiyunelse
37*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --disable-ethernet
38*4882a593Smuzhiyunendif
39*4882a593Smuzhiyun
40*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_CONNMAN_IPTABLES),y)
41*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --with-firewall=iptables
42*4882a593SmuzhiyunCONNMAN_DEPENDENCIES += iptables
43*4882a593Smuzhiyunelse ifeq ($(BR2_PACKAGE_CONNMAN_NFTABLES),y)
44*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --with-firewall=nftables
45*4882a593SmuzhiyunCONNMAN_DEPENDENCIES += libmnl nftables
46*4882a593Smuzhiyunendif
47*4882a593Smuzhiyun
48*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_CONNMAN_LOOPBACK),y)
49*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --enable-loopback
50*4882a593Smuzhiyunelse
51*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --disable-loopback
52*4882a593Smuzhiyunendif
53*4882a593Smuzhiyun
54*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_CONNMAN_NEARD),y)
55*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --enable-neard
56*4882a593SmuzhiyunCONNMAN_DEPENDENCIES += neard
57*4882a593Smuzhiyunelse
58*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --disable-neard
59*4882a593Smuzhiyunendif
60*4882a593Smuzhiyun
61*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_CONNMAN_OFONO),y)
62*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --enable-ofono
63*4882a593SmuzhiyunCONNMAN_DEPENDENCIES += ofono
64*4882a593Smuzhiyunelse
65*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --disable-ofono
66*4882a593Smuzhiyunendif
67*4882a593Smuzhiyun
68*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_CONNMAN_WIFI),y)
69*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --enable-wifi
70*4882a593Smuzhiyunelse
71*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --disable-wifi
72*4882a593Smuzhiyunendif
73*4882a593Smuzhiyun
74*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_CONNMAN_WIREGUARD),y)
75*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --enable-wireguard
76*4882a593SmuzhiyunCONNMAN_DEPENDENCIES += libmnl
77*4882a593Smuzhiyunelse
78*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --disable-wireguard
79*4882a593Smuzhiyunendif
80*4882a593Smuzhiyun
81*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_CONNMAN_WISPR),y)
82*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --enable-wispr
83*4882a593SmuzhiyunCONNMAN_DEPENDENCIES += gnutls
84*4882a593Smuzhiyunelse
85*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --disable-wispr
86*4882a593Smuzhiyunendif
87*4882a593Smuzhiyun
88*4882a593Smuzhiyundefine CONNMAN_INSTALL_INIT_SYSV
89*4882a593Smuzhiyun	$(INSTALL) -m 0755 -D package/connman/S45connman $(TARGET_DIR)/etc/init.d/S45connman
90*4882a593Smuzhiyunendef
91*4882a593Smuzhiyun
92*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_CONNMAN_CLIENT),y)
93*4882a593SmuzhiyunCONNMAN_LICENSE += , GPL-2.0+ (client)
94*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --enable-client
95*4882a593SmuzhiyunCONNMAN_DEPENDENCIES += readline
96*4882a593Smuzhiyun
97*4882a593Smuzhiyundefine CONNMAN_INSTALL_CM
98*4882a593Smuzhiyun	$(INSTALL) -m 0755 -D $(@D)/client/connmanctl $(TARGET_DIR)/usr/bin/connmanctl
99*4882a593Smuzhiyunendef
100*4882a593Smuzhiyun
101*4882a593SmuzhiyunCONNMAN_POST_INSTALL_TARGET_HOOKS += CONNMAN_INSTALL_CM
102*4882a593Smuzhiyunelse
103*4882a593SmuzhiyunCONNMAN_CONF_OPTS += --disable-client
104*4882a593Smuzhiyunendif
105*4882a593Smuzhiyun
106*4882a593Smuzhiyun$(eval $(autotools-package))
107