Skip to contentSkip to conversation

bitbake-setup: Allow overrides to add sources

PATCH New Richard Purdie 1 participant 1 message Aug 3

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake-setup: Allow overrides to add sources

It would be useful to be able to add extra sources to setup to an existing setup config. If we could do this on the autobuilder, it means we can move all the layer fetching into bitbake-setup's control and minimise the other fetching code in autobuilder-helper.

To to this, we need a small tweak to the way the overrides file is merged in.

---
 bin/bitbake-setup | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
bin/bitbake-setup +1 -2
index 34260139c2d..92ed563c277 100755
@@ -466,8 +466,7 @@ def get_registry_config(registry_path, id):
 def merge_overrides_into_sources(sources, overrides):
     layers = copy.deepcopy(sources)
     for k,v in overrides.items():
-        if k in layers:
-            layers[k] = v
+        layers[k] = v
     return layers
 
 def update_build(config, confdir, setupdir, layerdir, d, update_bb_conf="prompt", init_vscode=False, rebase_conflicts_strategy='abort'):