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.
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to