Possible new entry for the FAQ section?
Q: Why isn't there a way to append bbclass files like bbappend for recipes?
A: The project has consciously chosen not to implement such functionality. Class code is designed to be shared and reused and expose some level of configuration to it's users. We want to encourage people to share these changes so we can build the best classes.
If append functionality was available our evidence/experience suggests people would sit on changes instead of sharing and discussing issues and we'd end up with bizarre class interactions when new layers were included. We therefore consciously choose to have a natural pressure to share changes to them.
There are also technical considerations like which recipes a class append would apply to and how that works within the layer model. These are complications we think we can live without!
Hi Richard,
Quoted 14 lines · Richard Purdie
Q: Why isn't there a way to append bbclass files like bbappend for recipes?
A: The project has consciously chosen not to implement such functionality. Class code is designed to be shared and reused and expose some level of configuration to it's users. We want to encourage people to share these changes so we can build the best classes.
If append functionality was available our evidence/experience suggests people would sit on changes instead of sharing and discussing issues and we'd end up with bizarre class interactions when new layers were included. We therefore consciously choose to have a natural pressure to share changes to them.
Quoted 3 lines
There are also technical considerations like which recipes a class append would apply to and how that works within the layer model. These are complications we think we can live without!
Thank you for the suggestion and write-up. I'll take a note to add it to the docs' FAQ. It will make a good pointer to give to people asking the question. :)
Cheers,
Antonin
--
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com