]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Use less parallelism on ARM builds.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 4 Sep 2011 19:25:59 +0000 (19:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 4 Sep 2011 19:25:59 +0000 (19:25 +0000)
We are occasionally hitting an out of memory error.

make.sh

diff --git a/make.sh b/make.sh
index c9ef62a4105d70caea93f00394ffcc420f30cd30..88fc995a4472076f1f2f85099c54ee11d73ff8ba 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -189,7 +189,11 @@ prepareenv() {
     set +h
     LC_ALL=POSIX
     if [ -z $MAKETUNING ]; then
-       MAKETUNING="-j6"
+        if [ "${MACHINE:0:3}" = "arm" ]; then
+            MAKETUNING="-j2"
+        else
+            MAKETUNING="-j6"
+        fi
     fi
     export LFS LC_ALL CFLAGS CXXFLAGS MAKETUNING
     unset CC CXX CPP LD_LIBRARY_PATH LD_PRELOAD