From ceadb6f9503cbabb7a89c14be1dda4fef715d87a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 14 Oct 2020 11:33:57 +0200 Subject: turris: compile even turris-build with load limit --- templates/turris.run | 7 ++++--- 1 file 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 -- cgit v1.2.3