summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Darander <anders@chargestorm.se>2011-08-17 14:13:30 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2011-08-17 09:21:40 +0200
commit9e4fdee5789b36ffd4b6ad5452edb1ca8eeb4c5f (patch)
tree2cf32903a17d055ab1cf338efa9632cbf8a5f210
parent7b1ed1f94a4dd44053b2f73990a729cd5aaf8ab2 (diff)
downloadmeta-openembedded-9e4fdee5789b36ffd4b6ad5452edb1ca8eeb4c5f.tar.gz
connman: conditionally enable wifi and bluetooth
Use DISTRO_FEATURES to conditionally depend and enable wifi and bluetooth. Signed-off-by: Anders Darander <anders@chargestorm.se> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
-rw-r--r--meta-oe/recipes-connectivity/connman/connman.inc5
-rw-r--r--meta-oe/recipes-connectivity/connman/connman_0.76.bb4
2 files changed, 6 insertions, 3 deletions
diff --git a/meta-oe/recipes-connectivity/connman/connman.inc b/meta-oe/recipes-connectivity/connman/connman.inc
index 2652125526..eeccf50861 100644
--- a/meta-oe/recipes-connectivity/connman/connman.inc
+++ b/meta-oe/recipes-connectivity/connman/connman.inc
@@ -14,7 +14,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
14 file://src/main.c;beginline=1;endline=20;md5=4b55b550fa6b33cc2055ef30dd262b3e" 14 file://src/main.c;beginline=1;endline=20;md5=4b55b550fa6b33cc2055ef30dd262b3e"
15 15
16# we need to define the depends here, the dynamic stuff is too late 16# we need to define the depends here, the dynamic stuff is too late
17DEPENDS = "wpa-supplicant dbus glib-2.0 ppp busybox dhcp resolvconf bluez4 iptables gnutls ntp" 17DEPENDS = "dbus glib-2.0 ppp busybox dhcp resolvconf iptables gnutls ntp \
18 ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez4', '', d)} \
19 ${@base_contains('DISTRO_FEATURES', 'wifi','wpa-supplicant', '', d)} \
20 "
18 21
19EXTRA_OECONF += "\ 22EXTRA_OECONF += "\
20 ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \ 23 ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \
diff --git a/meta-oe/recipes-connectivity/connman/connman_0.76.bb b/meta-oe/recipes-connectivity/connman/connman_0.76.bb
index cb84caaff4..abae73a322 100644
--- a/meta-oe/recipes-connectivity/connman/connman_0.76.bb
+++ b/meta-oe/recipes-connectivity/connman/connman_0.76.bb
@@ -6,8 +6,8 @@ EXTRA_OECONF += "\
6 --enable-threads \ 6 --enable-threads \
7 --enable-loopback \ 7 --enable-loopback \
8 --enable-ethernet \ 8 --enable-ethernet \
9 --enable-wifi \ 9 ${@base_contains('DISTRO_FEATURES', 'wifi','--enable-wifi', '--disable-wifi', d)} \
10 --enable-bluetooth \ 10 ${@base_contains('DISTRO_FEATURES', 'bluetooth','--enable-bluetooth', '--disable-bluetooth', d)} \
11 --enable-ofono \ 11 --enable-ofono \
12 --enable-tools \ 12 --enable-tools \
13 --disable-polkit \ 13 --disable-polkit \