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
|
|
|
|
2019-11-06 16:20:11 +01:00
|
|
|
OFONO_VERSION = 1.31
|
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 \
|
2019-10-23 10:43:24 +02:00
|
|
|
ell \
|
2012-04-01 05:58:49 +02:00
|
|
|
libcap-ng \
|
2019-10-23 10:43:24 +02:00
|
|
|
libglib2 \
|
2012-04-01 05:58:49 +02:00
|
|
|
mobile-broadband-provider-info
|
|
|
|
|
2015-10-15 16:35:07 +02:00
|
|
|
OFONO_CONF_OPTS = \
|
2019-10-23 10:43:24 +02:00
|
|
|
--enable-external-ell \
|
2015-10-15 16:35:07 +02:00
|
|
|
--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
|
|
|
|
|
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
|
|
|
|
|
2020-01-12 23:08:39 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y)
|
2020-01-11 10:19:14 +01:00
|
|
|
OFONO_CONF_OPTS += --enable-bluetooth
|
|
|
|
OFONO_DEPENDENCIES += bluez5_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))
|