packagegroup-tools-bluetooth: Selects the tools appropriate for the version of bluez being used.

Signed-off-by: Ann Thornton <ann.thornton@nxp.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Ann Thornton
2016-05-04 17:03:41 -05:00
committed by Armin Kuster
parent e341fa03f0
commit 84f69f338c
@@ -5,36 +5,33 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SUMMARY = "Set of Bluetooh related tools for inclusion on images" SUMMARY = "Set of Bluetooth related tools for inclusion in images"
DESCRIPTION = "Add bluetooth tools based on the version of BlueZ in use.\ DESCRIPTION = "Includes bluetooth specific tools for this version of BlueZ.\
The tools that have been tested and work the best are pulled in \ These tools are used at runtime. \
automatically. The same packagegroup can be used in a recipe without \
the need to know which version of BlueZ is in use. \
Supports BlueZ4 and BlueZ5." Supports BlueZ4 and BlueZ5."
inherit packagegroup inherit packagegroup
inherit bluetooth
BLUEZ4_INSTALL = " \ RDEPENDS_bluez4 = " \
obexftp \ obexftp \
" "
BLUEZ5_INSTALL = " \ RDEPENDS_bluez5 = " \
bluez5-noinst-tools \ bluez5-noinst-tools \
bluez5-obex \ bluez5-obex \
bluez5-testtools \ bluez5-testtools \
libasound-module-bluez \ libasound-module-bluez \
${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', "pulseaudio-module-bluetooth-discover \ ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', \
pulseaudio-module-bluetooth-policy \ 'pulseaudio-module-bluetooth-discover \
pulseaudio-module-bluez5-discover \ pulseaudio-module-bluetooth-policy \
pulseaudio-module-bluez5-device \ pulseaudio-module-bluez5-discover \
pulseaudio-module-switch-on-connect \ pulseaudio-module-bluez5-device \
pulseaudio-module-loopback", \ pulseaudio-module-switch-on-connect \
'', d)} \ pulseaudio-module-loopback', \
'', d)} \
" "
# Install either bluez4 or bluez5 if they are in distro. # Install bluez4 tools or bluez5 tools depending on what is specified in the distro.
# Otherwise install nothing. # Otherwise install nothing.
RDEPENDS_${PN} = " \ RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
${@bb.utils.contains('DISTRO_FEATURES', 'bluez5', '${BLUEZ5_INSTALL}', "", d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'bluez4', '${BLUEZ4_INSTALL}', "", d)} \
"