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
|
|
|
|
2015-03-16 09:18:24 +01:00
|
|
|
OFONO_VERSION = 1.16
|
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
|
2013-04-14 22:29:10 +02:00
|
|
|
OFONO_LICENSE = GPLv2
|
|
|
|
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
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
OFONO_CONF_OPTS = --disable-test
|
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
|
|
|
|
|
|
|
|
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))
|