Yocto: base_contains

The base_contains function is used to return a value based on a search of a named variable for a given value. The following line of code for example would search the DISTRO_FEATURES variable for the text bluetooth and if found it would return the text bluez5 otherwise we would get a blank.

"${@base_contains('DISTRO_FEATURES', 'bluetooth', 'bluez5', '', d)}"