I need to patch a 3rd party layer#
I need to patch a 3rd party layer
I need to patch a 3rd party layer to fix an error, how do I do that?
Use kas
patch functionality
Before you proceed, please carefully check if it is possible to
use a bbappend
file to achieve the fix you are trying to code.
If not (e.g. for bbclass
, MACHINE
and layer configurations)
we can make use of the kas patches feature
Code your patch against the latest clean manifest checkout of the repo/layer
create a patch with
git format-patch
place the patch file in a SimpleCore™/SimpleSwitch™ layer and reference it in the corresponding configuration file under
snippets
.
For examples please see our SimpleCore™ repository
Patches are the last resort
Patches to 3rd party layers are the absolute last resort, if the same can be achieved by using other methods, the patch might get rejected in review.
Also creating a patch makes you directly responsible to upstream the patch, by contacting the 3rd party project