summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2020-10-14 11:33:57 +0200
committerKarel Kočí <cynerd@email.cz>2020-10-14 11:33:57 +0200
commitceadb6f9503cbabb7a89c14be1dda4fef715d87a (patch)
treeac15e0890dcc34cad4ee6267d6d2691f7879a8b7 /templates
parentc1cf66353d7e9ad014a10c4c69e5e279732c5d60 (diff)
downloadlaminar-cnf-ceadb6f9503cbabb7a89c14be1dda4fef715d87a.tar.gz
laminar-cnf-ceadb6f9503cbabb7a89c14be1dda4fef715d87a.tar.bz2
laminar-cnf-ceadb6f9503cbabb7a89c14be1dda4fef715d87a.zip
turris: compile even turris-build with load limit
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/turris.run7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/turris.run b/templates/turris.run
index 9135f01..0699418 100755
--- a/templates/turris.run
+++ b/templates/turris.run
@@ -2,9 +2,10 @@
# vim: ft=sh
. "$(dirname "$(readlink -f "$0")")/../job.common"
###################################################
-compile_params="-j$(nproc) -f"
-num_jobs="$(($(nproc) * 2))"
-make="force-make -j$num_jobs -d$num_jobs -f V=99 -- -l$(nproc) BUILD_LOG=1"
+num_load="$(nproc)"
+num_jobs="$((num_load * 2))"
+compile_params="-j$num_jobs -a -l$num_load -f"
+make="force-make -j$num_jobs -d$num_jobs -f V=99 -- -l$num_load BUILD_LOG=1"
###################################################
export IS_TTY=1