[PATCH] bitbake-setup: Allow overrides to add sources

Richard Purdie <[email protected]> Mon, 3 Aug 2026 22:20:29 +0100
Newsgroups org.openembedded.lists.bitbake-devel
Message-ID <[email protected]>
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.

Signed-off-by: Richard Purdie <[email protected]>
---
 bin/bitbake-setup | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bin/bitbake-setup b/bin/bitbake-setup
index 34260139c2d..92ed563c277 100755
--- a/bin/bitbake-setup
+++ b/bin/bitbake-setup
@@ -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'):