How Yocto handle multiple .bbappend with the same name?

Viewed 36

For example, I am having meta-A/test.bbappend and meta-A/test.bbappend files.

meta-A/test.bbappend priority 10

SAME_VAR = "a"

meta-B/test.bbappend priority 5

SAME_VAR = "b"
DIFF_VAR = "b"

I think SAME_VAR will be "a" but what about DIFF_VAR? Would meta-B/test.bbappend be completely ignored due to lower priority?

1 Answers

Every layer has its own priority defined in conf/layer.conf as BBFILE_PRIORITY variable. Priority of the layer defines in which order .bbappend files will append on original .bb.

You can check all layers in your project with

bitbake-layers show-layers

and you will also see the priorities.

Related