Skip to content

Commit

Permalink
connman: conditionally enable wifi and bluetooth
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
darander authored and koenkooi committed Aug 17, 2011
1 parent 829c4d6 commit 3d013c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion meta-oe/recipes-connectivity/connman/connman.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
4 changes: 2 additions & 2 deletions meta-oe/recipes-connectivity/connman/connman_0.76.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 3d013c9

Please sign in to comment.