[bitbake-devel] Override a "_remove" operator in bbappend file

Christopher Larson clarson at kergoth.com
Tue Sep 29 14:29:58 UTC 2015


On Tue, Sep 29, 2015 at 2:21 AM, Tim Jaacks <tim.jaacks at garz-fricke.com>
wrote:

> > Remember that _remove is usable in global configuration context as well.
> We
> > need the user to be able to remove something from local.conf which added
> in
> > a recipe, but if we blindly follow the order of append/prepend/remove
> > operations, it wouldn't work as expected, as the configuration metadata
> is
> > parsed long before the recipes.
>
> Why would that be a problem? Of course the global configuration in
> local.conf should have a higher priority than all the layers. What I would
> expect is a chain of _append and _remove operations, ordered by layer
> priority, and with the overrides in local.conf being applied at the very
> end.


That's not how the bitbake metadata works. Hardcoding an assumption that
local.conf is magic is not how we do things. local.conf is *not* special.
It's a config file that happens to be included by bitbake.conf, among many
other .confs it also includes.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20150929/40af7f93/attachment-0002.html>


More information about the bitbake-devel mailing list