buildman: Support building an extended board

Adjust the build logic to automatically deal with adding config
fragments to an existing board, to fully support the -X option.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-03 21:07:23 -06:00
parent 4f10b36306
commit d8faec6cbf

View File

@@ -420,7 +420,13 @@ class BuilderThread(threading.Thread):
args, cwd, src_dir = self._build_args(brd, out_dir, out_rel_dir,
work_dir, commit_upto)
config_args = [f'{brd.target}_defconfig']
if brd.extended:
config_args = [f'{brd.orig_target}_defconfig']
for frag in brd.extended.fragments:
fname = os.path.join(f'{frag}.config')
config_args.append(fname)
else:
config_args = [f'{brd.target}_defconfig']
if fragments != None:
config_args.extend(fragments.split(','))
config_out = io.StringIO()