summaryrefslogtreecommitdiff
path: root/tools/buildman/control.py
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2023-07-19 17:48:52 -0600
committerSimon Glass <[email protected]>2023-07-24 09:34:11 -0600
commitffd06d3d8dfdff2aba57aafad8866805f9f542df (patch)
treebcc8295fa39644b9d7a25e00d89869dd7f0aeb19 /tools/buildman/control.py
parent573b30377dce76466b24ffd9edad3ac110878deb (diff)
buildman: Move remaining builder properties to constructor
Do these all in the constructor, so it is consistent. Move the stray builder comment into the correct place. Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/buildman/control.py')
-rw-r--r--tools/buildman/control.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/tools/buildman/control.py b/tools/buildman/control.py
index 44a96cfb7a0..ece54ccb09d 100644
--- a/tools/buildman/control.py
+++ b/tools/buildman/control.py
@@ -545,8 +545,6 @@ def do_buildman(options, args, toolchains=None, make_func=None, brds=None,
options.no_allow_missing, len(selected),
options.branch)
- # Create a new builder with the selected options.
-
adjust_cfg = cfgutil.convert_list_to_dict(options.adjust_cfg)
# Drop LOCALVERSION_AUTO since it changes the version string on every commit
@@ -557,6 +555,7 @@ def do_buildman(options, args, toolchains=None, make_func=None, brds=None,
else:
adjust_cfg['LOCALVERSION_AUTO'] = '~'
+ # Create a new builder with the selected options
builder = Builder(toolchains, output_dir, git_dir,
options.threads, options.jobs, gnu_make=gnu_make, checkout=True,
show_unknown=options.show_unknown, step=options.step,
@@ -571,16 +570,13 @@ def do_buildman(options, args, toolchains=None, make_func=None, brds=None,
test_thread_exceptions=test_thread_exceptions,
adjust_cfg=adjust_cfg,
allow_missing=allow_missing, no_lto=options.no_lto,
- reproducible_builds=options.reproducible_builds)
+ reproducible_builds=options.reproducible_builds,
+ force_build = options.force_build,
+ force_build_failures = options.force_build_failures,
+ force_reconfig = options.force_reconfig, in_tree = options.in_tree,
+ force_config_on_failure=not options.quick, make_func=make_func)
+
TEST_BUILDER = builder
- builder.force_config_on_failure = not options.quick
- if make_func:
- builder.do_make = make_func
-
- builder.force_build = options.force_build
- builder.force_build_failures = options.force_build_failures
- builder.force_reconfig = options.force_reconfig
- builder.in_tree = options.in_tree
# Work out which boards to build
board_selected = brds.get_selected_dict()