murata-wireless / meta-murata-wireless

Murata's customized Linux Yocto layer for our Wi-Fi/Bluetooth modules. For support, post questions to: https://community.murata.com
GNU General Public License v2.0
25 stars 35 forks source link

Not able to integrate Bluez5-5.50 stack to the imx-morty-battra_r1.1 release #4

Open dhruvkakadiya opened 5 years ago

dhruvkakadiya commented 5 years ago

I used below options to build a Yocto image.

i.MX Yocto Release              : 4.9.11_1.0.0 GA
Yocto branch                    : morty
fmac version                    : "battra" (v4.14)
Target                          : imx6ull14x14evk
meta-murata-wireless Release Tag: imx-morty-battra_r1.1
VIO Signaling                   : 1.8V VIO signaling without UHS support - HW mods needed
DISTRO                          : fsl-imx-x11
Image                           : core-image-base 
Build Directory                 : build-imx6ull14x14evk

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.

So does anyone know how to fix this issue?