run-build.sh: Pass $BUILD_JOBS as -j param to config.py
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: I5a0316966cd0dbcbb3694fc6f61ee6b7f6490834
diff --git a/run-build.sh b/run-build.sh
index ecc10ce..2b43371 100755
--- a/run-build.sh
+++ b/run-build.sh
@@ -30,7 +30,7 @@
make --version
set -ex
-build_commands=$(python3 tf-m-ci-scripts/configs.py -b -g all $CONFIG_NAME)
+build_commands=$(python3 tf-m-ci-scripts/configs.py -b -g all -j ${BUILD_JOBS:-2} $CONFIG_NAME)
if [ $CODE_COVERAGE_EN = "TRUE" ] && [[ $CONFIG_NAME =~ "GCC" ]] ; then
build_commands=${build_commands/toolchain_GNUARM.cmake/toolchain_GNUARM.cmake -DTFM_CODE_COVERAGE=True}