[yocto] Good example of bbclass customization? maintainer

Alexander Kanavin alexander.kanavin at linux.intel.com
Thu Dec 7 12:17:53 PST 2017


On 12/07/2017 07:08 PM, Marcelo E. Magallon wrote:
> My concern right now is a *different* case, where your goal is to modify
> the class in order to affect all the recipes already inheriting from it.
> For example, where there's a modification to a function in the class.
> 
> Is there a good example out there as to how to implement such a thing?

I don't know but in the interests of long-term maintainability I would 
advise against it. If a recipe inherits a class that is in oe-core, it 
would be reasonable to expect that there would not be any additional 
hidden behaviour.

You have two choices:
1) copy the class into a new class and modify it as you please;
2) submit your modifications to the original class upstream in a timely 
manner

Alex



More information about the yocto mailing list