Bug 11881 - add infrastructure to allow BSPs to switch between *set* of configurations
Summary: add infrastructure to allow BSPs to switch between *set* of configurations
Status: RESOLVED WONTFIX
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-oe-core (show other bugs)
Version: 2.4
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 6.99
Assignee: Trevor Woerner
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-08-01 15:24 UTC by Trevor Woerner
Modified: 2026-08-06 15:30 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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