]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
continuous: Allow overriding make parallelism from command line
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 6 May 2016 07:31:52 +0000 (09:31 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 6 May 2016 07:31:52 +0000 (09:31 +0200)
To disable parallelism run it as:

    NPROC=1 ./30-compile

continuous/steps/30-compile

index 4008682021a8f51340bdaf626ea875791e2ba478..eb71b417f5c0061cdde50ec078e6eba40673f94c 100755 (executable)
@@ -8,5 +8,6 @@ export ARCH=powerpc
 export CROSS_COMPILE=/opt/OSELAS.Toolchain-2012.12.1/powerpc-603e-linux-gnu/gcc-4.7.2-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/powerpc-603e-linux-gnu-
 
 test -t 0 || CHRONIC=chronic
+NPROC=${NPROC:-$(nproc)}
 
-$CHRONIC make -w -j$(nproc) uImage
+$CHRONIC make -w -j${NPROC} uImage $@