summaryrefslogtreecommitdiffstats
path: root/classes/machine-overrides-extender.bbclass
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2022-02-17 18:36:55 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2022-02-21 19:22:02 -0300
commita3b102a9ed12ea03e72f713ed40968da1776c6d3 (patch)
tree39bdbe3837fe1fcaa72d0b4dffc54400eb74891b /classes/machine-overrides-extender.bbclass
parentdeea917d0aa76ce7e855dfa06cb4e0f6f9730ed3 (diff)
downloadmeta-freescale-a3b102a9ed12ea03e72f713ed40968da1776c6d3.tar.gz
classes/machine-overrides-extender: Postpone filter out
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>
Diffstat (limited to 'classes/machine-overrides-extender.bbclass')
-rw-r--r--classes/machine-overrides-extender.bbclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/classes/machine-overrides-extender.bbclass b/classes/machine-overrides-extender.bbclass
index 82bb4543..b9b00ebe 100644
--- a/classes/machine-overrides-extender.bbclass
+++ b/classes/machine-overrides-extender.bbclass
@@ -22,9 +22,7 @@ def machine_overrides_extender(d):
22 for override in machine_overrides: 22 for override in machine_overrides:
23 machine_overrides_filter_out += (d.getVar('MACHINEOVERRIDES_EXTENDER_FILTER_OUT:%s' % override) or '').split() 23 machine_overrides_filter_out += (d.getVar('MACHINEOVERRIDES_EXTENDER_FILTER_OUT:%s' % override) or '').split()
24 24
25 # Drop any overrides of filter_out prior extending 25 # Extend the overrides
26 machine_overrides = [o for o in machine_overrides if o not in machine_overrides_filter_out]
27
28 for override in machine_overrides: 26 for override in machine_overrides:
29 extender = d.getVar('MACHINEOVERRIDES_EXTENDER:%s' % override) 27 extender = d.getVar('MACHINEOVERRIDES_EXTENDER:%s' % override)
30 28
@@ -40,6 +38,9 @@ def machine_overrides_extender(d):
40 for e in extender: 38 for e in extender:
41 machine_overrides.insert(index, e) 39 machine_overrides.insert(index, e)
42 40
41 # Drop any overrides of filter_out after extending
42 machine_overrides = [o for o in machine_overrides if o not in machine_overrides_filter_out]
43
43 return ':'.join(machine_overrides) 44 return ':'.join(machine_overrides)
44 45
45python machine_overrides_extender_handler() { 46python machine_overrides_extender_handler() {