aboutsummaryrefslogtreecommitdiff
path: root/scripts/build-all.py
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@quicinc.com>2010-03-01 12:21:24 -0800
committerStephen Boyd <sboyd@codeaurora.org>2013-09-04 14:17:48 -0700
commit8f42d49e50cbf8662c190ae99dee605c1d337452 (patch)
tree311cc96cbc7186af5b9dade3194472bc9754666f /scripts/build-all.py
parent5b9d7b28295da446887dfe1fcfa819b31c562104 (diff)
scripts: build-all: add jobs option
It's annoying that the number of make jobs is hardcoded at 6. Allow users to define the number of jobs they want with a new option in the spirit of '-j' from make. Change-Id: I27881eb604e27a995d5d70bdeabacd6f690aa5b0 Signed-off-by: Stephen Boyd <sboyd@quicinc.com> (cherry picked from commit 604baf789feb66fee36ea68487d21ea94d8fb374)
Diffstat (limited to 'scripts/build-all.py')
-rwxr-xr-xscripts/build-all.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build-all.py b/scripts/build-all.py
index 19ba616826f..39f12d16a0c 100755
--- a/scripts/build-all.py
+++ b/scripts/build-all.py
@@ -41,7 +41,7 @@ import sys
version = 'build-all.py, version 0.01'
build_dir = '../all-kernels'
-make_command = ["-j", "6", "vmlinux", "modules"]
+make_command = ["vmlinux", "modules"]
make_env = os.environ
make_env.update({
'ARCH': 'arm',
@@ -177,6 +177,8 @@ def main():
dest='updateconfigs',
help="Update defconfigs with provided option setting, "
"e.g. --updateconfigs=\'CONFIG_USE_THING=y\'")
+ parser.add_option('-j', '--jobs', type='int', dest="jobs", default=6,
+ help="Number of simultaneous jobs")
(options, args) = parser.parse_args()
global all_options
@@ -192,6 +194,8 @@ def main():
global make_command
make_command = ["oldconfig"]
+ make_command.append("-j%d" % options.jobs)
+
if args == ['all']:
build_many(configs, configs.keys())
elif len(args) > 0: