Browse Source

Use nproc to determine available CPUs for perallel execution

Markus Lindenberg 9 years ago
parent
commit
eee686d2e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docker/build.sh

+ 1 - 1
docker/build.sh

@@ -14,7 +14,7 @@ cp /usr/src/site.conf gluon/site/
 # Build
 cd gluon
 make update
-time make -j 5 GLUON_TARGET=ar71xx-generic
+time make -j $(($(nproc)+1)) GLUON_TARGET=ar71xx-generic
 
 set +x
 echo -e "\nBUILD FINISHED\n"