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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user