diff options
author | Anders Darander <anders@chargestorm.se> | 2011-08-17 08:41:28 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-17 15:18:31 +0100 |
commit | 718e07647dc0529e28bbc031eadc612f05998774 (patch) | |
tree | d3a22b7da3e84fa324d28136e347d98b969f932a /meta/recipes-connectivity | |
parent | c8294d1e6da20f82d444a9d866bf5444a002dc5c (diff) | |
download | poky-718e07647dc0529e28bbc031eadc612f05998774.tar.gz |
ofono: conditionally enable bluetooth
Use DISTRO_FEATURE to conditionally depend on bluez4, as well as enabling bluetooth.
(From OE-Core rev: 4024bf2874e9da4fd0dd9a2b90a48e8a259781cc)
Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r-- | meta/recipes-connectivity/ofono/ofono.inc | 2 | ||||
-rw-r--r-- | meta/recipes-connectivity/ofono/ofono_0.50.bb | 1 | ||||
-rw-r--r-- | meta/recipes-connectivity/ofono/ofono_git.bb | 4 |
3 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/ofono/ofono.inc b/meta/recipes-connectivity/ofono/ofono.inc index a14b35a847..0b1a6e1234 100644 --- a/meta/recipes-connectivity/ofono/ofono.inc +++ b/meta/recipes-connectivity/ofono/ofono.inc | |||
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \ | |||
7 | 7 | ||
8 | inherit autotools pkgconfig update-rc.d | 8 | inherit autotools pkgconfig update-rc.d |
9 | 9 | ||
10 | DEPENDS = "dbus glib-2.0 udev bluez4" | 10 | DEPENDS = "dbus glib-2.0 udev ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez4', '', d)}" |
11 | 11 | ||
12 | INITSCRIPT_NAME = "ofono" | 12 | INITSCRIPT_NAME = "ofono" |
13 | INITSCRIPT_PARAMS = "defaults 22" | 13 | INITSCRIPT_PARAMS = "defaults 22" |
diff --git a/meta/recipes-connectivity/ofono/ofono_0.50.bb b/meta/recipes-connectivity/ofono/ofono_0.50.bb index ef4fbf0ba8..b679200fb0 100644 --- a/meta/recipes-connectivity/ofono/ofono_0.50.bb +++ b/meta/recipes-connectivity/ofono/ofono_0.50.bb | |||
@@ -7,6 +7,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/network/ofono/${BPN}-${PV}.tar.bz2 \ | |||
7 | 7 | ||
8 | EXTRA_OECONF += "\ | 8 | EXTRA_OECONF += "\ |
9 | --enable-test \ | 9 | --enable-test \ |
10 | ${@base_contains('DISTRO_FEATURES', 'bluetooth','--enable-bluetooth', '--disable-bluetooth', d)} \ | ||
10 | " | 11 | " |
11 | 12 | ||
12 | SRC_URI[md5sum] = "b2656fd0bbf33f926fc86c1e8915d697" | 13 | SRC_URI[md5sum] = "b2656fd0bbf33f926fc86c1e8915d697" |
diff --git a/meta/recipes-connectivity/ofono/ofono_git.bb b/meta/recipes-connectivity/ofono/ofono_git.bb index dbad5a1b68..f1770c2d12 100644 --- a/meta/recipes-connectivity/ofono/ofono_git.bb +++ b/meta/recipes-connectivity/ofono/ofono_git.bb | |||
@@ -10,6 +10,10 @@ PR = "r1" | |||
10 | SRC_URI = "git://git.kernel.org/pub/scm/network/ofono/ofono.git;protocol=git \ | 10 | SRC_URI = "git://git.kernel.org/pub/scm/network/ofono/ofono.git;protocol=git \ |
11 | file://ofono" | 11 | file://ofono" |
12 | 12 | ||
13 | EXTRA_OECONF += "\ | ||
14 | ${@base_contains('DISTRO_FEATURES', 'bluetooth','--enable-bluetooth', '--disable-bluetooth', d)} \ | ||
15 | " | ||
16 | |||
13 | do_configure_prepend () { | 17 | do_configure_prepend () { |
14 | ${S}/bootstrap | 18 | ${S}/bootstrap |
15 | } | 19 | } |