If a fragment has not been configured correctly, make list-fragments fail with an error before it has output information about any built-in fragments.
Signed-off-by: Peter Kjellerstedt <[email protected]> --- meta/lib/bbconfigbuild/configfragments.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/lib/bbconfigbuild/configfragments.py b/meta/lib/bbconfigbuild/configfragments.py index f79e238297..15142ec9f9 100644 --- a/meta/lib/bbconfigbuild/configfragments.py +++ b/meta/lib/bbconfigbuild/configfragments.py @@ -75,11 +75,13 @@ class ConfigFragmentsPlugin(LayerPlugin): print('{}\tSets {} = "{}"'.format(f, builtin_dict[prefix], value)) print('') + allfragments = self.discover_fragments() + all_enabled_fragments = (self.tinfoil.config_data.getVar('OE_FRAGMENTS') or "").split() all_builtin_fragments = (self.tinfoil.config_data.getVar('OE_FRAGMENTS_BUILTIN') or "").split() print_builtin_fragments(all_builtin_fragments, all_enabled_fragments) - for layername, layerdata in self.discover_fragments().items(): + for layername, layerdata in allfragments.items(): layerdir = layerdata['layerdir'] fragments = layerdata['fragments'] enabled_fragments = [f for f in fragments if f['name'] in all_enabled_fragments]
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#226643): https://lists.openembedded.org/g/openembedded-core/message/226643 Mute This Topic: https://lists.openembedded.org/mt/116400969/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
