[oe] [PATCH v3] packagegroup-tools-bluetooth: work as advertized on distro without bluez* support
yann.dirson at blade-group.com
yann.dirson at blade-group.com
Wed Oct 17 20:56:47 UTC 2018
From: Yann Dirson <yann at blade-group.com>
Otherwise the build fails with:
NOTE: Runtime target '${RDEPENDS_}' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['${RDEPENDS_}']
This restores some truth in the "Otherwise install nothing" comment in the recipe.
Signed-off-by: Yann Dirson <yann at blade-group.com>
---
.../packagegroups/packagegroup-tools-bluetooth.bb | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb b/meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb
index 0ede5e57b..207c7c1ae 100644
--- a/meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb
+++ b/meta-oe/recipes-connectivity/packagegroups/packagegroup-tools-bluetooth.bb
@@ -34,4 +34,7 @@ RDEPENDS_bluez5 = " \
# Install bluez4 tools or bluez5 tools depending on what is specified in the distro.
# Otherwise install nothing.
-RDEPENDS_${PN} = "${RDEPENDS_${BLUEZ}}"
+RDEPENDS_${PN} = " \
+ ${@'${RDEPENDS_bluez5}' if d.getVar('BLUEZ', True) == 'bluez5' else ''} \
+ ${@'${RDEPENDS_bluez4}' if d.getVar('BLUEZ', True) == 'bluez4' else ''} \
+"
--
2.19.1
More information about the Openembedded-devel
mailing list