summaryrefslogtreecommitdiff
path: root/scripts/build-all.py
diff options
context:
space:
mode:
authorDavid Brown <davidb@codeaurora.org>2015-05-27 10:48:33 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:51:56 -0700
commitccd9bd0de7a5a4d31bf55da83adf62acd67f06a9 (patch)
treec72e998b678a73eccc321e3496f0f164f03ec85e /scripts/build-all.py
parentf47e8c37436c82494c3604fa36326da2d444299e (diff)
scripts: Restore some of the parallism in "all" builds
The use of min/max should not have been switched, and instead of forcing at least "-j2" for builds, it is enforcing no more than two jobs in parallel. This has drastically reduced the parallelism of the builds. Change this to use "max" as intended so that we do make use of available CPUs, using at least two. Change-Id: Ifad0c98ef0ce56fc6c2368321a6cfd763e81b370 Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'scripts/build-all.py')
-rwxr-xr-xscripts/build-all.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build-all.py b/scripts/build-all.py
index 92f266ff8b03..fb42c8699126 100755
--- a/scripts/build-all.py
+++ b/scripts/build-all.py
@@ -327,7 +327,7 @@ def build_many(targets):
# parallel builds tends to use up available memory rather quickly.
parallel = 2
if all_options.jobs and all_options.jobs > 1:
- j = min(all_options.jobs / parallel, 2)
+ j = max(all_options.jobs / parallel, 2)
make_command.append("-j" + str(j))
tracker = BuildTracker(parallel)