2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-04-01 05:58:49 +02:00
|
|
|
#
|
|
|
|
# ofono
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-04-14 22:29:10 +02:00
|
|
|
|
2017-11-02 21:06:47 +01:00
|
|
|
OFONO_VERSION = 1.21
|
2013-09-06 08:14:15 +02:00
|
|
|
OFONO_SOURCE = ofono-$(OFONO_VERSION).tar.xz
|
2012-04-01 05:58:49 +02:00
|
|
|
OFONO_SITE = $(BR2_KERNEL_MIRROR)/linux/network/ofono
|
2017-03-30 15:43:32 +02:00
|
|
|
OFONO_LICENSE = GPL-2.0
|
2013-04-14 22:29:10 +02:00
|
|
|
OFONO_LICENSE_FILES = COPYING
|
2012-04-01 05:58:49 +02:00
|
|
|
OFONO_DEPENDENCIES = \
|
2012-10-22 17:47:52 +02:00
|
|
|
host-pkgconf \
|
2012-04-01 05:58:49 +02:00
|
|
|
dbus \
|
|
|
|
libglib2 \
|
|
|
|
libcap-ng \
|
|
|
|
mobile-broadband-provider-info
|
|
|
|
|
2015-10-15 16:35:07 +02:00
|
|
|
OFONO_CONF_OPTS = \
|
|
|
|
--disable-test \
|
|
|
|
--with-dbusconfdir=/etc \
|
|
|
|
$(if $(BR2_INIT_SYSTEMD),--with-systemdunitdir=/usr/lib/systemd/system)
|
2012-04-01 05:58:49 +02:00
|
|
|
|
2013-04-13 09:53:55 +02:00
|
|
|
# N.B. Qualcomm QMI modem support requires O_CLOEXEC; so
|
|
|
|
# make sure that it is defined.
|
|
|
|
OFONO_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
|
|
|
|
|
2014-04-28 17:34:52 +02:00
|
|
|
define OFONO_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -m 0755 -D package/ofono/S46ofono $(TARGET_DIR)/etc/init.d/S46ofono
|
|
|
|
endef
|
|
|
|
|
2015-04-21 19:50:37 +02:00
|
|
|
define OFONO_INSTALL_INIT_SYSTEMD
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/systemd/multi-user.target.wants
|
|
|
|
ln -fs ../../../../usr/lib/systemd/system/ofono.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
endef
|
|
|
|
|
2014-02-07 14:21:33 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
OFONO_CONF_OPTS += --enable-udev
|
|
|
|
OFONO_DEPENDENCIES += udev
|
2012-04-01 05:58:49 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
OFONO_CONF_OPTS += --disable-udev
|
2012-04-01 05:58:49 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
OFONO_CONF_OPTS += --enable-bluetooth
|
|
|
|
OFONO_DEPENDENCIES += bluez_utils
|
2012-04-01 05:58:49 +02:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
OFONO_CONF_OPTS += --disable-bluetooth
|
2012-04-01 05:58:49 +02:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|