[OE-core] Question about bluetooth bbclass

Viguera, Javier Javier.Viguera at digi.com
Wed Nov 4 10:03:55 UTC 2015


Hi all,

One question about bluetooth class.

The Yocto reference manual and also the bluetooth.bbclass says that the way to use the class is:

# Use this with:
#  inherit bluetooth
#  PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', '${BLUEZ}', '', d)}
#  PACKAGECONFIG[bluez4] = "--enable-bluez4,--disable-bluez4,bluez4"

Is the ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', '${BLUEZ}', '', d)} needed at all?

The class code is:

BLUEZ ?= "${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', bb.utils.contains('DISTRO_FEATURES', 'bluez5', 'bluez5', 'bluez4', d), '', d)}"

So if I understand this correctly, the BLUEZ variable is already checking the DISTRO_FEATURES and will be empty if 'bluetooth' is not there, so wouldn't just a:

inherit bluetooth
PACKAGECONFIG ??= "${BLUEZ}"
...

be enough?

_____

JAVIER VIGUERA
SOFTWARE ENGINEERING

Digi International Spain S.A.U.



More information about the Openembedded-core mailing list