1
0
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:
Rafa Couto 2016-12-22 16:37:38 +01:00
parent 1a1bfb6a54
commit b143b0c074

View File

@ -30,7 +30,7 @@ cp "$OPENWRT_CONFIGS/$OPENWRT_TARGET.diff" "$OPENWRT_SRC/.config"
# available processors # available processors
if [ -z "$JOBS" ] ; then if [ -z "$JOBS" ] ; then
PROCESSORS=$(cat /proc/cpuinfo | grep '^processor' | wc -l) PROCESSORS=$(cat /proc/cpuinfo | grep '^processor' | wc -l)
JOBS=$(($PROCESSORS - 1)) JOBS=$(($PROCESSORS + 1))
fi fi
# compile # compile