mirror of
https://github.com/rafacouto/docker-openwrt-builder
synced 2025-06-07 16:06:16 +00:00
Increasing compiler jobs to processors + 1.
This commit is contained in:
parent
1a1bfb6a54
commit
b143b0c074
@ -30,7 +30,7 @@ cp "$OPENWRT_CONFIGS/$OPENWRT_TARGET.diff" "$OPENWRT_SRC/.config"
|
||||
# available processors
|
||||
if [ -z "$JOBS" ] ; then
|
||||
PROCESSORS=$(cat /proc/cpuinfo | grep '^processor' | wc -l)
|
||||
JOBS=$(($PROCESSORS - 1))
|
||||
JOBS=$(($PROCESSORS + 1))
|
||||
fi
|
||||
|
||||
# compile
|
||||
|
Loading…
x
Reference in New Issue
Block a user