qtconnectivity, qtsystems: fix bluetooth support

Generalize bluetooth support so it can be used not only with bluez4 but
with bluez5 as well. Use EXTRA_QMAKEVARS_PRE to pass the packageconfig
options to the do_configure task.

https://jira.digi.com/browse/DEL-2147

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2016-01-25 16:17:21 +01:00
parent 0b07af3bef
commit 6a66656161
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,8 @@
# Copyright (C) 2016 Digi International
inherit bluetooth
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)}"
PACKAGECONFIG[bluez] = "CONFIG+=OE_BLUEZ_ENABLED,,${BLUEZ}"
EXTRA_QMAKEVARS_PRE += "${EXTRA_OECONF}"

View File

@ -0,0 +1,8 @@
# Copyright (C) 2016 Digi International
inherit bluetooth
PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)}"
PACKAGECONFIG[bluez] = "CONFIG+=OE_BLUEZ_ENABLED,,${BLUEZ}"
EXTRA_QMAKEVARS_PRE += "${EXTRA_OECONF}"