oFono provides a mobile telephony (GSM/UMTS) mobile
telephony stack.
When compiled with Bluetooth support, it also compiles
the HFP (Hands Free Profile) plugin, which is actively
required by AGL 1.0 specification (AGL:5.1.1.1).
The "hfp_bluez5" and "hfp_ag_bluez5" plugins are compiled
as we now ship BlueZ 5.
Change-Id: I815d3aeceb02abff624d0223cf0fef46c509014f
Signed-off-by: Manuel Bachmann <mbc@iot.bzh>
--- /dev/null
+# Prevent BlueZ 4 from being always pulled
+DEPENDS_remove = "bluez4"
+
+# If Bluetooth is asked in DISTRO_FEATURES, verify if Bluez 5 is also
+# explicitly specified. If it is not, fall back to BlueZ 4
+DEPENDS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', bb.utils.contains('DISTRO_FEATURES', 'bluez5', 'bluez5', 'bluez4', d), '', d)}"
ALLOW_EMPTY_${PN} = "1"
RDEPENDS_${PN} += "\
+ ofono \
rygel \
rygel-plugin-media-export \
"