I am able to build it fine but Bluez5 stack version that I get with the image is 5.41 which is older and I want latest 5.50 stack in there so first I tried to include just PREFERRED_VERSION_bluez5 in there but that didn't help me to get that specific version automatically so then I tried adding custom dev layer along with correct Bluez5 bblayer recipes in there then getting below errors regarding parsing that recipe.
ERROR: ExpansionError during parsing xxx/murata-imx-bsp/sources/meta-dev/recipes-connectivity/bluez5/bluez5_5.50.bb
Traceback (most recent call last):
File "xxx/murata-imx-bsp/sources/poky/meta/classes/base.bbclass", line 375, in __anon_656__xxx_murata_imx_bsp_sources_poky_meta_classes_base_bbclass(d=<bb.data_smart.DataSmart object at 0x7fc110f56908>):
pkgconfig = (d.getVar('PACKAGECONFIG', True) or "").split()
> pn = d.getVar("PN", True)
File "xxx/murata-imx-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 569, in DataSmart.getVar(var='PACKAGECONFIG', expand=True, noweakdefault=False, parsing=False):
def getVar(self, var, expand, noweakdefault=False, parsing=False):
> return self.getVarFlag(var, "_content", expand, noweakdefault, parsing)
File "xxx/murata-imx-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 737, in DataSmart.getVarFlag(var='PACKAGECONFIG', flag='_content', expand=True, noweakdefault=False, parsing=False):
cachename = var + "[" + flag + "]"
> value = self.expand(value, cachename)
File "xxx/murata-imx-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 410, in DataSmart.expand(s="obex-profiles readline ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} a2dp-profiles avrcp-profiles network-profiles hid-profiles hog-profiles tools deprecated ", varname='PACKAGECONFIG'):
def expand(self, s, varname = None):
> return self.expandWithRefs(s, varname).value
File "xxx/murata-imx-bsp/sources/poky/bitbake/lib/bb/data_smart.py", line 400, in DataSmart.expandWithRefs(s="obex-profiles readline ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} a2dp-profiles avrcp-profiles network-profiles hid-profiles hog-profiles tools deprecated ", varname='PACKAGECONFIG'):
except Exception as exc:
> raise ExpansionError(varname, s, exc) from exc
bb.data_smart.ExpansionError: Failure expanding variable PACKAGECONFIG, expression was obex-profiles readline ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} a2dp-profiles avrcp-profiles network-profiles hid-profiles hog-profiles tools deprecated which triggered exception AttributeError: module 'bb.utils' has no attribute 'filter'
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
While if I use Sumo release branch for the Yocto then I am able to add the same custom dev layer fine without any issues in parsing that recipe.
I used below options to build a Yocto image.
I am able to build it fine but Bluez5 stack version that I get with the image is
5.41
which is older and I want latest5.50
stack in there so first I tried to include justPREFERRED_VERSION_bluez5
in there but that didn't help me to get that specific version automatically so then I tried adding custom dev layer along with correct Bluez5 bblayer recipes in there then getting below errors regarding parsing that recipe.While if I use Sumo release branch for the Yocto then I am able to add the same custom dev layer fine without any issues in parsing that recipe.
So does anyone know how to fix this issue?