HI All,

We have a layer where we want to concurrently support two releases of Poky.
There is an issue when we have bbappnds against recipes that have
different versions in the two poky releases. for instance, imagine recipe
foo that is version 1.0 in Zeus and 1.2 in Dunfell. If we had a bbappend in
our layer `foo_1.0.bbappend` and tried to use our layer with Dunfell,
bitbake will error out saying that `foo_1.0.bbappend` has no base recipe.

The question is: how do we dynamically hide that bbappend only from
Dunfell? Or, why is what we are trying to do not really the right

I found BBFILES_DYNAMIC which is _alomst_ what we want, but only allows
filtering based on the presence of another layer, not the version of Poky.

Right now we've got a solution using Python inline variable substitution to
set BBMASK conditionally based on the poky version. (Side note: it looks
like you can't do anonymous Python in the layer.conf file which I couldn't
find any documentation about).

# Things to mask from zeus
BBMASK += "${@ ' '.join([ \

'meta-izo-modus/recipes-devtools/libedit/libedit_20180525-3.1.bbappend', \
        'meta-izo-modus/recipes-devtools/lua/lua_5.3.4.bbappend', \

'meta-izo-modus/recipes-extended/logrotate/logrotate_3.14.0.bbappend', \
        'meta-izo-modus/recipes-kernel/linux/linux-yocto_4.18.bbappend', \
    ]) if d.getVar('LAYERSERIES_CORENAMES') == 'zeus' else ''}"

This isn't the cleanest, but it does work.

I'm really curious if there Is there a more canonical and clean way of
achieving what we are going for here.

Thanks in advance,
~Matt
-- 
Matthew Campbell
Senior Embedded Systems Engineer
[email protected]

iZotope, Inc.
www.izotope.com
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#48933): https://lists.yoctoproject.org/g/yocto/message/48933
Mute This Topic: https://lists.yoctoproject.org/mt/72563780/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to