diff options
author | Jonas Danielsson <jonas.danielsson@lundinova.se> | 2012-04-19 10:31:22 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-26 10:05:10 +0100 |
commit | 898e1bfbe8e9da391de97563129343619289427f (patch) | |
tree | 928a82ba043a879f76029ad7c77103a878b21033 | |
parent | b8909556e30407acb8946472a4829ab9ba984b00 (diff) | |
download | poky-898e1bfbe8e9da391de97563129343619289427f.tar.gz |
bluez4: make alsa support conditional upon DISTRO_FEATURES
Do not enable alsa in bluez4 unless it's included in DISTRO_FEATURES.
(From OE-Core rev: 36e434ecd05754d8c99d416f706da4a1b11b729e)
Signed-off-by: Jonas Danielsson <jonas.danielsson@lundinova.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-connectivity/bluez/bluez4.inc | 6 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez/bluez4_4.99.bb | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/meta/recipes-connectivity/bluez/bluez4.inc b/meta/recipes-connectivity/bluez/bluez4.inc index fbbe0bf742..6dc06f46b9 100644 --- a/meta/recipes-connectivity/bluez/bluez4.inc +++ b/meta/recipes-connectivity/bluez/bluez4.inc | |||
@@ -7,9 +7,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \ | |||
7 | file://COPYING.LIB;md5=fb504b67c50331fc78734fed90fb0e09 \ | 7 | file://COPYING.LIB;md5=fb504b67c50331fc78734fed90fb0e09 \ |
8 | file://src/main.c;beginline=1;endline=24;md5=9bc54b93cd7e17bf03f52513f39f926e \ | 8 | file://src/main.c;beginline=1;endline=24;md5=9bc54b93cd7e17bf03f52513f39f926e \ |
9 | file://sbc/sbc.c;beginline=1;endline=25;md5=1a40781ed30d50d8639323a184aeb191" | 9 | file://sbc/sbc.c;beginline=1;endline=25;md5=1a40781ed30d50d8639323a184aeb191" |
10 | DEPENDS = "udev alsa-lib libusb dbus-glib glib-2.0 libcheck" | 10 | DEPENDS = "udev libusb dbus-glib glib-2.0 libcheck" |
11 | RDEPENDS_${PN}-dev = "bluez-hcidump" | 11 | RDEPENDS_${PN}-dev = "bluez-hcidump" |
12 | 12 | ||
13 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)}" | ||
14 | PACKAGECONFIG[alsa] = "--enable-alsa,--disable-alsa,alsa-lib" | ||
15 | |||
13 | ASNEEDED = "" | 16 | ASNEEDED = "" |
14 | 17 | ||
15 | SRC_URI = "\ | 18 | SRC_URI = "\ |
@@ -21,7 +24,6 @@ inherit autotools | |||
21 | 24 | ||
22 | EXTRA_OECONF = "\ | 25 | EXTRA_OECONF = "\ |
23 | --disable-gstreamer \ | 26 | --disable-gstreamer \ |
24 | --enable-alsa \ | ||
25 | --enable-usb \ | 27 | --enable-usb \ |
26 | --enable-tools \ | 28 | --enable-tools \ |
27 | --enable-bccmd \ | 29 | --enable-bccmd \ |
diff --git a/meta/recipes-connectivity/bluez/bluez4_4.99.bb b/meta/recipes-connectivity/bluez/bluez4_4.99.bb index 5033d340b3..32831e7ff6 100644 --- a/meta/recipes-connectivity/bluez/bluez4_4.99.bb +++ b/meta/recipes-connectivity/bluez/bluez4_4.99.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | require bluez4.inc | 1 | require bluez4.inc |
2 | 2 | ||
3 | PR = "r1" | 3 | PR = "r2" |
4 | 4 | ||
5 | SRC_URI += "file://bluetooth.conf \ | 5 | SRC_URI += "file://bluetooth.conf \ |
6 | file://sbc_mmx.patch \ | 6 | file://sbc_mmx.patch \ |
@@ -19,6 +19,7 @@ do_install_append() { | |||
19 | 19 | ||
20 | RDEPENDS_${PN}-dev = "bluez-hcidump" | 20 | RDEPENDS_${PN}-dev = "bluez-hcidump" |
21 | 21 | ||
22 | ALLOW_EMPTY_libasound-module-bluez = "1" | ||
22 | PACKAGES =+ "libasound-module-bluez" | 23 | PACKAGES =+ "libasound-module-bluez" |
23 | 24 | ||
24 | FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa" | 25 | FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa" |