xref: /OK3568_Linux_fs/buildroot/package/ofono/ofono.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# ofono
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunOFONO_VERSION = 1.31
8*4882a593SmuzhiyunOFONO_SOURCE = ofono-$(OFONO_VERSION).tar.xz
9*4882a593SmuzhiyunOFONO_SITE = $(BR2_KERNEL_MIRROR)/linux/network/ofono
10*4882a593SmuzhiyunOFONO_LICENSE = GPL-2.0
11*4882a593SmuzhiyunOFONO_LICENSE_FILES = COPYING
12*4882a593SmuzhiyunOFONO_DEPENDENCIES = \
13*4882a593Smuzhiyun	host-pkgconf \
14*4882a593Smuzhiyun	dbus \
15*4882a593Smuzhiyun	ell \
16*4882a593Smuzhiyun	libcap-ng \
17*4882a593Smuzhiyun	libglib2 \
18*4882a593Smuzhiyun	mobile-broadband-provider-info
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunOFONO_CONF_OPTS = \
21*4882a593Smuzhiyun	--enable-external-ell \
22*4882a593Smuzhiyun	--disable-test \
23*4882a593Smuzhiyun	--with-dbusconfdir=/etc \
24*4882a593Smuzhiyun	$(if $(BR2_INIT_SYSTEMD),--with-systemdunitdir=/usr/lib/systemd/system)
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun# N.B. Qualcomm QMI modem support requires O_CLOEXEC; so
27*4882a593Smuzhiyun# make sure that it is defined.
28*4882a593SmuzhiyunOFONO_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
29*4882a593Smuzhiyun
30*4882a593Smuzhiyundefine OFONO_INSTALL_INIT_SYSV
31*4882a593Smuzhiyun	$(INSTALL) -m 0755 -D package/ofono/S46ofono $(TARGET_DIR)/etc/init.d/S46ofono
32*4882a593Smuzhiyunendef
33*4882a593Smuzhiyun
34*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_HAS_UDEV),y)
35*4882a593SmuzhiyunOFONO_CONF_OPTS += --enable-udev
36*4882a593SmuzhiyunOFONO_DEPENDENCIES += udev
37*4882a593Smuzhiyunelse
38*4882a593SmuzhiyunOFONO_CONF_OPTS += --disable-udev
39*4882a593Smuzhiyunendif
40*4882a593Smuzhiyun
41*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y)
42*4882a593SmuzhiyunOFONO_CONF_OPTS += --enable-bluetooth
43*4882a593SmuzhiyunOFONO_DEPENDENCIES += bluez5_utils
44*4882a593Smuzhiyunelse
45*4882a593SmuzhiyunOFONO_CONF_OPTS += --disable-bluetooth
46*4882a593Smuzhiyunendif
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun$(eval $(autotools-package))
49