diff options
author | Karel Kočí <cynerd@email.cz> | 2020-10-14 11:33:57 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2020-10-14 11:33:57 +0200 |
commit | ceadb6f9503cbabb7a89c14be1dda4fef715d87a (patch) | |
tree | ac15e0890dcc34cad4ee6267d6d2691f7879a8b7 /templates | |
parent | c1cf66353d7e9ad014a10c4c69e5e279732c5d60 (diff) | |
download | laminar-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-x | templates/turris.run | 7 |
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 |