From: Peter Kjellerstedt Date: Fri, 21 Nov 2025 13:25:32 +0000 (-0800) Subject: configfragments.py: Make list-fragments fail early X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b36c8e3b7e219fee7619e633a086f2789ecde41;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git configfragments.py: Make list-fragments fail early 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 Signed-off-by: Richard Purdie --- diff --git a/meta/lib/bbconfigbuild/configfragments.py b/meta/lib/bbconfigbuild/configfragments.py index f5cbfc56ae0..de521f0c149 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]