mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 20:04:01 +00:00
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)
This commit is contained in:
parent
5b9d7b2829
commit
8f42d49e50
1 changed files with 5 additions and 1 deletions
|
@ -41,7 +41,7 @@ import sys
|
||||||
version = 'build-all.py, version 0.01'
|
version = 'build-all.py, version 0.01'
|
||||||
|
|
||||||
build_dir = '../all-kernels'
|
build_dir = '../all-kernels'
|
||||||
make_command = ["-j", "6", "vmlinux", "modules"]
|
make_command = ["vmlinux", "modules"]
|
||||||
make_env = os.environ
|
make_env = os.environ
|
||||||
make_env.update({
|
make_env.update({
|
||||||
'ARCH': 'arm',
|
'ARCH': 'arm',
|
||||||
|
@ -177,6 +177,8 @@ def main():
|
||||||
dest='updateconfigs',
|
dest='updateconfigs',
|
||||||
help="Update defconfigs with provided option setting, "
|
help="Update defconfigs with provided option setting, "
|
||||||
"e.g. --updateconfigs=\'CONFIG_USE_THING=y\'")
|
"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()
|
(options, args) = parser.parse_args()
|
||||||
global all_options
|
global all_options
|
||||||
|
@ -192,6 +194,8 @@ def main():
|
||||||
global make_command
|
global make_command
|
||||||
make_command = ["oldconfig"]
|
make_command = ["oldconfig"]
|
||||||
|
|
||||||
|
make_command.append("-j%d" % options.jobs)
|
||||||
|
|
||||||
if args == ['all']:
|
if args == ['all']:
|
||||||
build_many(configs, configs.keys())
|
build_many(configs, configs.keys())
|
||||||
elif len(args) > 0:
|
elif len(args) > 0:
|
||||||
|
|
Loading…
Reference in a new issue