aboutsummaryrefslogtreecommitdiff
path: root/tcwg-binutils.yaml
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2015-11-06 09:40:29 +0100
committerChristophe Lyon <christophe.lyon@linaro.org>2015-11-06 09:40:29 +0100
commit0ad0250a64910711f3f07c0b76dc42e468940eb1 (patch)
treec66791b37a25c8030958d065162927a0330ed253 /tcwg-binutils.yaml
parent1f05e518f8ee02b4cddf5d37097571e280c85cf1 (diff)
tcwg-binutils: use getconf _NPROCESSORS_ONLN.
And do not hardcode the number of make parallel jobs. Change-Id: I1b47382222b946a2f46f6141c87f615ed8b7cd1d
Diffstat (limited to 'tcwg-binutils.yaml')
-rw-r--r--tcwg-binutils.yaml5
1 files changed, 3 insertions, 2 deletions
diff --git a/tcwg-binutils.yaml b/tcwg-binutils.yaml
index eadde46b79..710327a9f3 100644
--- a/tcwg-binutils.yaml
+++ b/tcwg-binutils.yaml
@@ -104,12 +104,13 @@
mkdir -p build-$target
cd build-$target
result=0
+ jobs=$(getconf _NPROCESSORS_ONLN)
# If configure or build fails, the execution will stop
# because of 'set -e'. But for 'make check' we want to
# execute all the tests, and report if there were some
# errors.
${BUILD_SHELL} -c "../configure $lto --enable-plugins --prefix=`pwd`/install --target $target ${bfd}"
- ${BUILD_SHELL} -c "make all-gas all-ld all-binutils -j8"
- ${BUILD_SHELL} -c "make check-gas check-ld check-binutils -j8 -k" || result=1
+ ${BUILD_SHELL} -c "make all-gas all-ld all-binutils -j$jobs"
+ ${BUILD_SHELL} -c "make check-gas check-ld check-binutils -j$jobs -k" || result=1
tail `find . -name "*.sum"`
exit $result