[PATCH 07/58] buildman: Move logic for -A up a little
Simon Glass
sjg at chromium.org
Sun Jul 2 16:25:32 CEST 2023
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 at 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.
--
2.41.0.255.g8b1d071c50-goog
More information about the U-Boot
mailing list