[oe-commits] Anders Darander : connman: conditionally enable wifi and bluetooth
git version control
git at git.openembedded.org
Wed Aug 17 07:30:23 UTC 2011
Module: meta-openembedded.git
Branch: master
Commit: 9e4fdee5789b36ffd4b6ad5452edb1ca8eeb4c5f
URL: http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=9e4fdee5789b36ffd4b6ad5452edb1ca8eeb4c5f
Author: Anders Darander <anders at chargestorm.se>
Date: Wed Aug 17 14:13:30 2011 +0000
connman: conditionally enable wifi and bluetooth
Use DISTRO_FEATURES to conditionally depend and enable wifi and bluetooth.
Signed-off-by: Anders Darander <anders at chargestorm.se>
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
---
meta-oe/recipes-connectivity/connman/connman.inc | 5 ++++-
.../recipes-connectivity/connman/connman_0.76.bb | 4 ++--
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 2652125..eeccf50 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 \
file://src/main.c;beginline=1;endline=20;md5=4b55b550fa6b33cc2055ef30dd262b3e"
# we need to define the depends here, the dynamic stuff is too late
-DEPENDS = "wpa-supplicant dbus glib-2.0 ppp busybox dhcp resolvconf bluez4 iptables gnutls ntp"
+DEPENDS = "dbus glib-2.0 ppp busybox dhcp resolvconf iptables gnutls ntp \
+ ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez4', '', d)} \
+ ${@base_contains('DISTRO_FEATURES', 'wifi','wpa-supplicant', '', d)} \
+ "
EXTRA_OECONF += "\
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 cb84caa..abae73a 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 += "\
--enable-threads \
--enable-loopback \
--enable-ethernet \
- --enable-wifi \
- --enable-bluetooth \
+ ${@base_contains('DISTRO_FEATURES', 'wifi','--enable-wifi', '--disable-wifi', d)} \
+ ${@base_contains('DISTRO_FEATURES', 'bluetooth','--enable-bluetooth', '--disable-bluetooth', d)} \
--enable-ofono \
--enable-tools \
--disable-polkit \
More information about the Openembedded-commits
mailing list