diff options
author | Simon Glass <sjg@chromium.org> | 2022-07-11 19:04:08 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-08-05 11:47:56 -0400 |
commit | add76e7c44aff75bd72a2a22beb24579fbe3f723 (patch) | |
tree | 5126f8da682abca2c423dee08e59dd53f5909edd /tools/buildman/control.py | |
parent | 5579ce747d1401b7ff8ed90ed616654474d9382b (diff) |
buildman: Return an error if there are maintainer warnings
Detect warnings about missing maintain info and return result code 2 in
that case.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/control.py')
-rw-r--r-- | tools/buildman/control.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/buildman/control.py b/tools/buildman/control.py index 79ce2f6978..0c75466fbd 100644 --- a/tools/buildman/control.py +++ b/tools/buildman/control.py @@ -188,12 +188,12 @@ def DoBuildman(options, args, toolchains=None, make_func=None, brds=None, board_file = os.path.join(options.output_dir, 'boards.cfg') brds = boards.Boards() - brds.ensure_board_list(board_file, - options.threads or multiprocessing.cpu_count(), - force=options.regen_board_list, - quiet=not options.verbose) + ok = brds.ensure_board_list(board_file, + options.threads or multiprocessing.cpu_count(), + force=options.regen_board_list, + quiet=not options.verbose) if options.regen_board_list: - return 0 + return 0 if ok else 2 brds.read_boards(board_file) exclude = [] |