Understanding common use cases
Nowadays, projects usually have a set of layers to provide the required features. We certainly need to make changes on top of them to adapt them to our specific needs. They may be cosmetic or substantive changes, but the way to make them is the same.
We must create a .bbappend
file to change a preexisting recipe in our project layer. For example, suppose the original recipe was named <original-layer>/recipes-core/app/app_1.2.3.bb
. When you create a .bbappend
file, you can use the %
wildcard character to allow for matching recipe names. So, the .bbappend
file could have the following different forms:
App_1.2.3.bbappend
: This applies the change only for the1.2.3
versionapp_1.2.%.bbappend
: This applies the change only for the1.2.y
versionapp_1.%.bbappend
: This applies the change only for the1.x
and1.x.y
versionsapp_%.bbappend
: This applies the change for any version
We can have multiple .bbappend
files, depending...