From 8f42d49e50cbf8662c190ae99dee605c1d337452 Mon Sep 17 00:00:00 2001 From: Stephen Boyd Date: Mon, 1 Mar 2010 12:21:24 -0800 Subject: [PATCH] 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 (cherry picked from commit 604baf789feb66fee36ea68487d21ea94d8fb374) --- scripts/build-all.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build-all.py b/scripts/build-all.py index 19ba616826f1..39f12d16a0ca 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: