I'm building an image with Yocto, and need to patch a BitBake class in the upstream tree. I do not want to modify the upstream sources and would prefer to add the modification to a local layer.
For a BitBake recipe, I'd use a .bbappend
file. What should be used for a class?
Create classes
folder in your meta layer and create a new class, e.g. myclass.bbclass
. Inherit original class with inherit original-bitbake-CLASS
and add whatever functionality you need.
Then use the new bbclass instead of the original.