[meta-freescale] [meta-fsl-demos][PATCH 05/12] Add packagegroup-fsl-tools-bluetooth.bb

Ann Thornton ra43240 at freescale.com
Wed Aug 19 06:31:59 PDT 2015


The Bluetooth packagegroup will include BlueZ4 or BlueZ5 tools
based on the DISTRO feature set.  It will include pulseaudio
BlueZ5 tools only if pulseaudio is in the DISTRO features.

This packagegroup can make the image recipe clearer by hiding
the complexity of which version of BlueZ to use.

Signed-off-by: Ann Thornton <ra43240 at freescale.com>
---
 .../packagegroup-fsl-tools-bluetooth.bb            | 40 ++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 recipes-fsl/packagegroups/packagegroup-fsl-tools-bluetooth.bb

diff --git a/recipes-fsl/packagegroups/packagegroup-fsl-tools-bluetooth.bb b/recipes-fsl/packagegroups/packagegroup-fsl-tools-bluetooth.bb
new file mode 100644
index 0000000..98f5fef
--- /dev/null
+++ b/recipes-fsl/packagegroups/packagegroup-fsl-tools-bluetooth.bb
@@ -0,0 +1,40 @@
+# Copyright (C) 2014-2015 Freescale Semiconductor
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "Freescale package group - BlueZ Bluetooth tools"
+DESCRIPTION = "Add bluetooth tools based on the version of BlueZ in use.\
+   The tools that have been tested and work the best are pulled in \
+   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."
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
+                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+inherit packagegroup
+
+PULSEAUDIO_INSTALL = " \
+     pulseaudio-module-bluetooth-discover \
+     pulseaudio-module-bluetooth-policy \
+     pulseaudio-module-bluez5-discover \
+     pulseaudio-module-bluez5-device \
+     pulseaudio-module-switch-on-connect \
+     pulseaudio-module-loopback \
+"
+
+BLUEZ4_INSTALL = " \
+    obexftp \
+"
+
+BLUEZ5_INSTALL = " \
+     bluez5-noinst-tools \
+     bluez5-obex \
+     bluez5-testtools  \
+     libasound-module-bluez \
+     ${@base_contains('DISTRO_FEATURES', 'pulseaudio', '${PULSEAUDIO_INSTALL}', '', d)} \
+"
+
+# Install either bluez4 or bluez5 if they are in distro.  
+# Otherwise install nothing.
+RDEPENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'bluez5', '${BLUEZ5_INSTALL}', \
+    base_contains('DISTRO_FEATURES', 'bluez4', '${BLUEZ4_INSTALL}', '', d), d)}"
-- 
1.9.1



More information about the meta-freescale mailing list