summaryrefslogtreecommitdiffstats
path: root/classes/machine-overrides-extender.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* Ensure we fail if old SoC overrides are in usetopic/warn-old-overridesOtavio Salvador2022-03-031-0/+19
| | | | | | | | | To assist existing layers to convert to the new BSP-specific overrides. Besides failing the parsing of the recipes where it is in use, we provide a script to automate most of it. Fixes: #990. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* classes/machine-overrides-extender: Postpone filter outOtavio Salvador2022-02-211-3/+4
| | | | | | | The overrides ought to allow the filter out execution even for overrides included during the extension, for this to work we need to postpone it. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* classes/machine-overrides-extender: Allow filter out without an overrideOtavio Salvador2022-02-211-2/+2
| | | | | | | We should be able to use a single MACHINEOVERRIDES_EXTENDER_FILTER_OUT definition, without an override, to reduce code duplication. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* machine-overrides-extender.bbclass: Adjust for new override characterTom Hochstein2021-08-121-4/+4
| | | | | Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* remove True option to getVar callsAndré Draszik2019-01-171-3/+3
| | | | | | | | | | | | | | getVar() has been defaulting to expanding by default for a long time (2016), thus remove the True option from getVar() calls with a regex search and replace. Search & replace made using the following command: sed -e 's|\(d\.getVar \?\)( \?\([^,()]*\), \?True)|\1(\2)|g' \ -i $(git grep -E 'getVar ?\( ?([^,()]*), ?True\)' \ | cut -d':' -f1 \ | sort -u) Signed-off-by: André Draszik <andre.draszik@jci.com>
* machine-overrides-extender.bbclass: Avoid an empty overrideOtavio Salvador2018-07-031-1/+1
| | | | | | | All uses of MACHINEOVERRIDES already include an ':' suffix so we cannot add it again or we end with a match-all override. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* machine-overrides-extender.bbclass: Postpone overrides processingOtavio Salvador2018-07-031-9/+12
| | | | | | | | | | | | We need to keep a reference to the original MACHINEOVERRIDES value so it can be reprocessed as need. This allow the compatibility with existing BSP's while fixing the complex multilib interactions. I'd like to record that Richard Purdie was key to solve this issue. Its implications were beyond my understanding until he guided me and provided a prototype fix. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* machine-overrides-extender.bbclass: Fix multilib parsingOtavio Salvador2018-06-011-1/+6
| | | | | | | | | | | The 'ConfigParsed' event was too early and when we mangled the MACHINEOVERRIDES using the extender, we ended overriding some values when using together with multilib. This fixes the multilib use-case and keep current ones working. Reported-by: Cristinel Panfir <cristinel.panfir@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* Revert "machine-overrides-extender.bbclass: Postpone until 'RecipeParsed' event"Otavio Salvador2018-05-221-1/+1
| | | | | | | | | | This reverts commit 65144beb63673d215221d800e1905eedb9f2f8ed. The commit has side effects and must be better investigated. For now, we are reverting it so we don't cause problems for other use cases. Change-Id: I63333c974746bd7f95fa7a56153099256e206912 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* machine-overrides-extender.bbclass: Postpone until 'RecipeParsed' eventOtavio Salvador2018-05-221-1/+1
| | | | | | | | | | | | The 'ConfigParsed' event was too early and when we mangled the MACHINEOVERRIDES using the extender, we ended overriding some values when using together with multilib. This fixes the multilib use-case and keep current ones working. Change-Id: I6f1d952dfe2d04fa10229a86763af4ca6b1e601f Reported-by: Cristinel Panfir <cristinel.panfir@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* machine-overrides-extender.bbclass: Add filter out supportOtavio Salvador2017-03-271-5/+24
| | | | | | | | | | | | | The allow easier enablement of mainline BSP support, we need to allow for specific overrides to be filtered out, before and during the extending process. The new MACHINEOVERRIDES_EXTENDER_FILTER_OUT variable does exactly this and will be used in a subsequent commit to enable the 'use-mainline-bsp' override. Change-Id: Ieaec9d5eb27ccc73b7b0097cb365c519978bd080 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* machine-overrides-extender.bbclass: Automatically set extend the ↵Otavio Salvador2016-09-081-0/+29
MACHINEOVERRIDES This allow to grouping of different settings for similar platforms. To use the class, specify, for example: MACHINEOVERRIDES_EXTENDER_soc = "group1:group2" Change-Id: I4a7dcd353b8bedf9d8f213827d7de768783c3d5d Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>