summaryrefslogtreecommitdiff
path: root/templates/turris.run
diff options
context:
space:
mode:
Diffstat (limited to 'templates/turris.run')
-rwxr-xr-xtemplates/turris.run7
1 files changed, 2 insertions, 5 deletions
diff --git a/templates/turris.run b/templates/turris.run
index 274e5bc..b0ea26e 100755
--- a/templates/turris.run
+++ b/templates/turris.run
@@ -3,11 +3,8 @@
. "$(dirname "$(readlink -f "$0")")/../job.common"
###################################################
compile_params="-j$(nproc) -f"
-make="make -j$(($(nproc) * 2)) -l$(nproc) BUILD_LOG=1"
-if [ "$V" -ge 1 ]; then
- compile_params="-j1 -f"
- make="make -j1 BUILD_LOG=1 V=99"
-fi
+num_jobs="$(($(nproc) * 2))"
+make="force-make -j$num_jobs -d$num_jobs -f 'V=99' -- -l$(nproc) BUILD_LOG=1"
###################################################
export IS_TTY=1
# TODO take lock so we won't run multiple instances of new builds