connman: add support for ofono and neard
authorSimon Dawson <spdawson@gmail.com>
Thu, 28 Nov 2013 09:36:40 +0000 (09:36 +0000)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 28 Nov 2013 14:10:33 +0000 (15:10 +0100)
Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/connman/Config.in
package/connman/connman.mk

index 5345c80161db8cf042223bc137b2d2be57891dae..1cf93e2e16e263ac57b5c72a06695d5b0607807d 100644 (file)
@@ -38,9 +38,17 @@ config BR2_PACKAGE_CONNMAN_BLUETOOTH
 config BR2_PACKAGE_CONNMAN_LOOPBACK
        bool "enable loopback support"
 
+config BR2_PACKAGE_CONNMAN_NEARD
+       bool "enable neard support"
+       select BR2_PACKAGE_NEARD
+
 config BR2_PACKAGE_CONNMAN_NTPD
        bool "enable ntpd support"
 
+config BR2_PACKAGE_CONNMAN_OFONO
+       bool "enable ofono support"
+       select BR2_PACKAGE_OFONO
+
 config BR2_PACKAGE_CONNMAN_DEBUG
        bool "enable compiling with debugging information"
 
index db74c0384fc289eadc5a4562a7687e24863dd859..cf54abc5479d04f33a3ad65287e6e5430493e694 100644 (file)
@@ -18,7 +18,13 @@ CONNMAN_CONF_OPT += --localstatedir=/var \
        $(if $(BR2_PACKAGE_CONNMAN_WIFI),--enable-wifi,--disable-wifi)                  \
        $(if $(BR2_PACKAGE_CONNMAN_BLUETOOTH),--enable-bluetooth,--disable-bluetooth)   \
        $(if $(BR2_PACKAGE_CONNMAN_LOOPBACK),--enable-loopback,--disable-loopback)      \
-       $(if $(BR2_PACKAGE_CONNMAN_NTPD),--enable-ntpd,--disable-ntpd)
+       $(if $(BR2_PACKAGE_CONNMAN_NEARD),--enable-neard,--disable-neard) \
+       $(if $(BR2_PACKAGE_CONNMAN_NTPD),--enable-ntpd,--disable-ntpd) \
+       $(if $(BR2_PACKAGE_CONNMAN_OFONO),--enable-ofono,--disable-ofono)
+
+CONNMAN_DEPENDENCIES += \
+       $(if $(BR2_PACKAGE_CONNMAN_NEARD),neard) \
+       $(if $(BR2_PACKAGE_CONNMAN_OFONO),ofono)
 
 define CONNMAN_INSTALL_INITSCRIPT
        $(INSTALL) -m 0755 -D package/connman/S45connman $(TARGET_DIR)/etc/init.d/S45connman