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