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

Tim Jaacks tim.jaacks at garz-fricke.com
Tue Sep 22 13:40:49 UTC 2015


Hello everyone,

I have a problem with bitbake's "_remove" operator. Perhaps someone can help me out.

Suppose I have three layers:
 - meta-1
 - meta-2
 - meta-3

In meta-1, there is a recipe "foo.bb", containing a variable:
FOO = "bar baz"

In meta-2, there is an append file "foo.bbappend", which changes the variable using the "_remove" operator:
FOO_remove = "bar"

The resulting value of the FOO variable is " baz".

Now I want to re-add "bar" to the FOO variable in meta-3, without changing the other layers. How is that possible?

I tried everything I could think of, including several combinations of "_append", "_prepend", machine-specific overrides, "_forcevariable" or setting the variable to a hard-coded value. Nothing could bring back "bar". It seems as if the "_remove" operator is always executed at the very end of the variable calculation, come what may. The layer priority seems to not have any impact on this.

Is this a design fault? Or am I missing something?
Any hints on this would be helpful, thanks in advance.

 
Mit freundlichen Grüßen / Best regards
i.A. Tim Jaacks

Software Engineering
Garz & Fricke GmbH
Tempowerkring 2, 21079 Hamburg - Germany
Amtsgericht Hamburg HRB 60514
Geschäftsführer: Manfred Garz, Matthias Fricke
Phone: +49 40 791899 - 55
Fax:     +49 40 791899 - 39
tim.jaacks at garz-fricke.com
www.garz-fricke.com



More information about the bitbake-devel mailing list