diff options
author | Simon Glass <sjg@chromium.org> | 2021-01-30 22:17:46 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-04 17:51:43 -0500 |
commit | b82492bbccb0ecdee17108ed43c4220f00f3f4f3 (patch) | |
tree | ca38bcb5b59f05f837a2350588574e9eaa8f6fd5 /tools/buildman/control.py | |
parent | d6bf36c775213689763ad05913a1b5e76a61daaf (diff) | |
download | u-boot-b82492bbccb0ecdee17108ed43c4220f00f3f4f3.zip u-boot-b82492bbccb0ecdee17108ed43c4220f00f3f4f3.tar.gz u-boot-b82492bbccb0ecdee17108ed43c4220f00f3f4f3.tar.bz2 |
buildman: Support single-threaded operation
At present even if only a single thread is in use, buildman still uses
threading.
For some debugging it is helpful to do everything in the main process.
Allow -T0 to support this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/buildman/control.py')
-rw-r--r-- | tools/buildman/control.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/buildman/control.py b/tools/buildman/control.py index fe874b8..a767570 100644 --- a/tools/buildman/control.py +++ b/tools/buildman/control.py @@ -294,7 +294,7 @@ def DoBuildman(options, args, toolchains=None, make_func=None, boards=None, # By default we have one thread per CPU. But if there are not enough jobs # we can have fewer threads and use a high '-j' value for make. - if not options.threads: + if options.threads is None: options.threads = min(multiprocessing.cpu_count(), len(selected)) if not options.jobs: options.jobs = max(1, (multiprocessing.cpu_count() + |