[yocto] [bitbake] .bbappend files in includes/require behaviour

Jan Jaap Kempenaar janjaapkempenaar at gmail.com
Thu Sep 4 04:41:05 PDT 2014


Hello,

I have a question regarding the behaviour of .bbappend files.

== Situation sketch

I have the following situation:
- I have a YOCTO setup with all my nessecary layers.
- I have a board support package layer for my embedded target.
- I have a meta-xenomai layer
-> The meta xenomai layer provides 2 .bbappend files. 1 which appends the linux kernel recipe and one which appends the default base image from the board support package.
- I have an additional layer with recipes which are specific for our project.

== Details

I am using the Gumstix bsp layers.
Now I have the following situation gumstix provides the following recipe:
gumstix-console-image.bb
in my meta-xenomai layer i have a:
gumstix-console-image.bbappend -> this adds the xenomai userspace libraries to the image installation.

Now for our project I created on our "meta-project" layer a project-image.bb with the following:

require recipes-images/gumstix/gumstix-console-image.bb
# Other installation requirements follow from here.

== Expectations and results
I am using .bbappend files, such that I can easily disable the xenomai layer without breaking the yocto build environment.
however with all layers enabled when i:
bitbake project-image
the gumstix-console-image.bbappend alterations do not take effect, so my question is:
When using require to include a recipe, is it correct that for that recipe all .bbappend files are ignored?

If so, is there a way such that still can have the described behaviour.

Any help or pointers to documentation are much appreciated.

Regards,
Jan Jaap Kempenaar


More information about the yocto mailing list