aboutsummaryrefslogtreecommitdiff
path: root/build-mbedv2.sh
diff options
context:
space:
mode:
authorVijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>2020-08-11 22:43:50 +0530
committerVijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>2020-10-11 19:00:11 +0530
commit8ffc138d8317016f83897dcbe3277f5ce8dd27e2 (patch)
treec23197f93be2829220cf548ec8d546eb8e457c8e /build-mbedv2.sh
parent8c5db851606628e3ae0b26c5bc0720028a41c1c2 (diff)
build-*.sh: use parallelism to make build faster
Use $PARALLELISM for make builds to spawn multiple jobs. This results in better utilization of multi-core processor in the host machine used for build resulting in lesser build time. Change-Id: I2986a0ba3baf1db7409f55c018a4ebbcf6ccbc73 Signed-off-by: Vijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>
Diffstat (limited to 'build-mbedv2.sh')
-rwxr-xr-xbuild-mbedv2.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-mbedv2.sh b/build-mbedv2.sh
index 5341e80..aa862e9 100755
--- a/build-mbedv2.sh
+++ b/build-mbedv2.sh
@@ -49,8 +49,8 @@ do_build ()
for app in $MBEDV2_APPS; do
for plat in $MBEDV2_PLATS; do
- python build.py -m $plat -t GCC_ARM -j 16
- python make.py -m $plat -t GCC_ARM -n $app -j 16
+ python build.py -m $plat -t GCC_ARM -j $PARALLELISM
+ python make.py -m $plat -t GCC_ARM -n $app -j $PARALLELISM
python project.py -m $plat -i gcc_arm -n $app
done
done