Will the following method work? yocto-layer create openembedded*2*
and add the path in conf/bblayers.conf By doing this, I will have openembedded where net-snmp version 5.7.3 resides openembedded*2* where net-snmp version 5.8 resides Then issuing bitbake net-snmp it will take the 5.8? On Tue, Aug 28, 2018 at 2:32 PM, Simon Chamlian <simon.chaml...@mpbc.ca> wrote: > How can I avoid mixing branches. > > I already have a meta-openembedded layer, which supports net-snmp_5.7.3 > (which compiles but I want to update). > > Now I cloned a new meta-openembedded layer, which as net-snmp_5.8. > > How can I merge the layers (meta-openembedded that I have and the new > cloned one)? > > > > > > > On Tue, Aug 28, 2018 at 11:43 AM, Martin Jansa <martin.ja...@gmail.com> > wrote: > >> Follow the READMEs and don't mix layers from different branches. >> >> You need to checkout all repositories with layers from the same branch to >> be compatible. Now you're mixing newer meta-oe branch with older oe-core >> branch which doesn't have bb.utils.filter function yet. >> >> On Tue, Aug 28, 2018 at 5:17 PM Simon Chamlian <simon.chaml...@mpbc.ca> >> wrote: >> >>> >>> Hi, >>> >>> Just download net-snmp_5.8.bb but it failed to compile: >>> >>> >>> $ bitbake net-snmp >>> Loading cache: 100% |############################# >>> ############################################################ >>> #######################################################################################| >>> Time: 0:00:01 >>> Loaded 3093 entries from dependency cache. >>> *ERROR:* ExpansionError during parsing /opt/PHYTEC_BSPs/yocto_imx7/so >>> urces/meta-openembedded/meta-networking/recipes-protocols/net-snmp/ >>> net-snmp_5.8.bb | ETA: >>> --:--:-- >>> Traceback (most recent call last): >>> File "/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/meta/classes/base.bbclass", >>> line 375, in __anon_656__opt_PHYTEC_BSPs_yo >>> cto_imx7_sources_poky_meta_classes_base_bbclass(d=<bb.data_smart.DataSmart >>> object at 0x7fe0ee311be0>): >>> pkgconfig = (d.getVar('PACKAGECONFIG', True) or "").split() >>> > pn = d.getVar("PN", True) >>> >>> File >>> "/opt/PHYTEC_BSPs/yocto_imx7/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 >>> "/opt/PHYTEC_BSPs/yocto_imx7/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 >>> "/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/bitbake/lib/bb/data_smart.py", >>> line 410, in DataSmart.expand(s="${@bb.utils.filter('DISTRO_FEATURES', >>> 'ipv6', d)}", varname='PACKAGECONFIG'): >>> def expand(self, s, varname = None): >>> > return self.expandWithRefs(s, varname).value >>> >>> File >>> "/opt/PHYTEC_BSPs/yocto_imx7/sources/poky/bitbake/lib/bb/data_smart.py", >>> line 400, in DataSmart.expandWithRefs(s="${ >>> @bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}", >>> varname='PACKAGECONFIG'): >>> except Exception as exc: >>> > raise ExpansionError(varname, s, exc) from exc >>> >>> bb.data_smart.ExpansionError: Failure expanding variable PACKAGECONFIG, >>> expression was ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} which >>> triggered exception AttributeError: module 'bb.utils' has no attribute >>> 'filter' >>> >>> >>> Summary: There was 1 ERROR message shown, returning a non-zero exit code. >>> $ >>> >>> Any hints would be greatly appreciated. >>> >>> S >>> >>> >>> >>> -- >>> _______________________________________________ >>> yocto mailing list >>> yocto@yoctoproject.org >>> https://lists.yoctoproject.org/listinfo/yocto >>> >> >
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto