AMB (automotive-message-broker): fix GPSd dependency
[AGL/meta-agl.git] / meta-agl / recipes-navi-lbs / gpsd / gpsd_%.bbappend
diff --git a/meta-agl/recipes-navi-lbs/gpsd/gpsd_%.bbappend b/meta-agl/recipes-navi-lbs/gpsd/gpsd_%.bbappend
new file mode 100644 (file)
index 0000000..2e97174
--- /dev/null
@@ -0,0 +1,4 @@
+# If Bluetooth is asked in DISTRO_FEATURES, verify if Bluez 5 is also
+# explicitly specified. If it is not, fall back to BlueZ 4
+BLUEZ_CONFIG = "bluez='true',bluez='false',${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', bb.utils.contains('DISTRO_FEATURES', 'bluez5', 'bluez5', 'bluez4', d), '', d)}"
+PACKAGECONFIG[bluez] := "${BLUEZ_CONFIG}"