mirror of
https://github.com/rafacouto/docker-openwrt-builder.git
synced 2026-08-11 16:33:04 +00:00
Increasing compiler jobs to processors + 1.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user