From ccd9bd0de7a5a4d31bf55da83adf62acd67f06a9 Mon Sep 17 00:00:00 2001 From: David Brown Date: Wed, 27 May 2015 10:48:33 -0700 Subject: 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 --- scripts/build-all.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/build-all.py') 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) -- cgit v1.2.3