diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2022-02-17 18:36:55 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2022-02-21 19:22:02 -0300 |
commit | a3b102a9ed12ea03e72f713ed40968da1776c6d3 (patch) | |
tree | 39bdbe3837fe1fcaa72d0b4dffc54400eb74891b /classes/machine-overrides-extender.bbclass | |
parent | deea917d0aa76ce7e855dfa06cb4e0f6f9730ed3 (diff) | |
download | meta-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.bbclass | 7 |
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 | ||
45 | python machine_overrides_extender_handler() { | 46 | python machine_overrides_extender_handler() { |