]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
buildman: Exit after reading toolchain
authorSimon Glass <sjg@chromium.org>
Thu, 3 Aug 2023 18:51:36 +0000 (12:51 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 5 Aug 2023 17:39:23 +0000 (11:39 -0600)
Recent refactoring changed buildman to continue operation after fetching
a toolchain. Fix this.

Fixes: b8680646521 ("bulidman: Move toolchain handling to a function")
Signed-off-by: Simon Glass <sjg@chromium.org>
tools/buildman/control.py

index 5c5720034b64dd719635e2581cb296662f3ecd6d..f2ffb7f5b4aa5fe4d7fcacb8390f1d55199b79de 100644 (file)
@@ -610,6 +610,9 @@ def do_buildman(args, toolchains=None, make_func=None, brds=None,
     toolchains = get_toolchains(toolchains, col, args.override_toolchain,
                                 args.fetch_arch, args.list_tool_chains,
                                 args.verbose)
+    if isinstance(toolchains, int):
+        return toolchains
+
     output_dir = setup_output_dir(
         args.output_dir, args.work_in_output, args.branch,
         args.no_subdirs, col, clean_dir)