
Move this up to just after the boards are calculated, so we can refactor the code now below this function.
Signed-off-by: Simon Glass sjg@chromium.org ---
tools/buildman/control.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tools/buildman/control.py b/tools/buildman/control.py index fd136e54baf9..cde705c1c956 100644 --- a/tools/buildman/control.py +++ b/tools/buildman/control.py @@ -289,6 +289,12 @@ def do_buildman(options, args, toolchains=None, make_func=None, brds=None, return 0 if okay else 2 brds.read_boards(board_file)
+ if options.print_prefix: + err = show_toolchain_prefix(brds, toolchains) + if err: + sys.exit(col.build(col.RED, err)) + return 0 + exclude = [] if options.exclude: for arg in options.exclude: @@ -306,12 +312,6 @@ def do_buildman(options, args, toolchains=None, make_func=None, brds=None, if not selected: sys.exit(col.build(col.RED, 'No matching boards found'))
- if options.print_prefix: - err = show_toolchain_prefix(brds, toolchains) - if err: - sys.exit(col.build(col.RED, err)) - return 0 - # Work out how many commits to build. We want to build everything on the # branch. We also build the upstream commit as a control so we can see # problems introduced by the first commit on the branch.