Skip to contentSkip to conversation

Possible new entry for the FAQ section?

DISCUSSION Richard Purdie 2 participants 2 messages Oct 21, 2024 – Oct 22, 2024

lore
Share & tools
lore
#0 lore raw

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!

#1 lore raw

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