1 ################################################################################
5 ################################################################################
8 OFONO_SOURCE
= ofono-
$(OFONO_VERSION
).
tar.xz
9 OFONO_SITE
= $(BR2_KERNEL_MIRROR
)/linux
/network
/ofono
11 OFONO_LICENSE_FILES
= COPYING
12 OFONO_DEPENDENCIES
= \
17 mobile-broadband-provider-info
21 --with-dbusconfdir
=/etc \
22 $(if
$(BR2_INIT_SYSTEMD
),--with-systemdunitdir
=/usr
/lib
/systemd
/system
)
24 # N.B. Qualcomm QMI modem support requires O_CLOEXEC; so
25 # make sure that it is defined.
26 OFONO_CONF_ENV
+= CFLAGS
="$(TARGET_CFLAGS) -D_GNU_SOURCE"
28 define OFONO_INSTALL_INIT_SYSV
29 $(INSTALL
) -m
0755 -D package
/ofono
/S46ofono
$(TARGET_DIR
)/etc
/init.d
/S46ofono
32 define OFONO_INSTALL_INIT_SYSTEMD
33 mkdir
-p
$(TARGET_DIR
)/etc
/systemd
/systemd
/multi-user.target.wants
34 ln
-fs ..
/..
/..
/..
/usr
/lib
/systemd
/system
/ofono.service \
35 $(TARGET_DIR
)/etc
/systemd
/system
/multi-user.target.wants
38 ifeq ($(BR2_PACKAGE_HAS_UDEV
),y
)
39 OFONO_CONF_OPTS
+= --enable-udev
40 OFONO_DEPENDENCIES
+= udev
42 OFONO_CONF_OPTS
+= --disable-udev
45 ifeq ($(BR2_PACKAGE_BLUEZ_UTILS
),y
)
46 OFONO_CONF_OPTS
+= --enable-bluetooth
47 OFONO_DEPENDENCIES
+= bluez_utils
49 OFONO_CONF_OPTS
+= --disable-bluetooth
52 $(eval
$(autotools-package
))