Bug 11881

Summary: add infrastructure to allow BSPs to switch between *set* of configurations
Product: [Build System, Metadata & Runtime] BSPs Reporter: Trevor Woerner <twoerner>
Component: bsps-oe-coreAssignee: Trevor Woerner <twoerner>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: Medium CC: bruce.ashfield, denis, dl9pf, randy.macleod, richard.purdie, sgw
Version: 2.4   
Target Milestone: 6.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Trevor Woerner 2017-08-01 15:24:53 UTC
meta-freescale includes a class (machine-overrides-extender) to make it easy for a BSP maintainer to create, and a BSP user to switch between, multiple *sets* of configurations for a given MACHINE.

Why would a BSP want to do that? Because in some cases there are multiple choices for the user. For example: for the kernel, the user could choose either the vendor kernel or the upstream kernel. However, sometimes these decisions are "locked" together: i.e. if you want to use the vendor's binary blob for (say) graphics, then you have to use their vendor kernel as well. It's not possible for a user to choose, say, the graphics binary blob but want to use the upstream kernel too. Therefore the BSP ends up with "sets" of configurations which need to
be taken collectively instead of piecemeal.

I would like to see this functionality added to oe-core so all BSPs could take advantage of this feature without having to duplicate this class per BSP.

The class can be found here:
https://github.com/Freescale/meta-freescale/blob/master/classes/machine-overrides-extender.bbclass

An example of its use can be found here:
https://github.com/Freescale/meta-freescale/blob/master/conf/machine/include/imx-base.inc
Comment 1 Jan-Simon Moeller 2017-09-29 21:18:11 UTC
+1 !
Comment 2 Trevor Woerner 2017-10-19 13:14:51 UTC
Couldn't we just add what we have now, and if it's deemed "not perfect" in the future, provide patches then for improvements?
Comment 3 Richard Purdie 2022-02-03 16:15:15 UTC
This idea would need discussion. I can see the idea behind it but I'm also not sure this is something we want to encourage in the core. As such I'm rather torn on it but it would need wider discussion.
Comment 4 Randy MacLeod 2023-10-24 14:24:33 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 5 Randy MacLeod 2026-08-06 15:30:19 UTC
See: https://bugzilla.yoctoproject.org/show_bug.cgi?id=11881#c3