From 0f52efe935a22d9ac6bded4602f5cfa308f924ff Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Thu, 2 Nov 2017 15:47:34 +0000 Subject: [PATCH] travis 7: nproc appears not present? --- .travis.yml | 2 +- run | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 74f026c..3f1fce1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ install: | script: | cd "$TRAVIS_BUILD_DIR" - ./run -e 'init=/poweroff.out' -n + ./run -e 'init=/poweroff.out' -j16 -n diff --git a/run b/run index 521da2f..e284ae0 100755 --- a/run +++ b/run @@ -2,12 +2,16 @@ set -e arch='x86_64' extra_targets='' +j="$(($(nproc) - 2))" x11=false -while getopts a:t: OPT > /dev/null 2>&1; do +while getopts a:j:t: OPT > /dev/null 2>&1; do case "$OPT" in 'a') arch="$OPTARG" ;; + 'j') + j="$OPTARG" + ;; 't') extra_targets="$extra_args $OPTARG" ;; @@ -58,7 +62,7 @@ time \ -u LD_LIBRARY_PATH \ make \ O="$outdir" \ - BR2_JLEVEL="$(($(nproc) - 2))" \ + BR2_JLEVEL="$j" \ HOST_QEMU_OPTS="--enable-debug --enable-sdl --extra-cflags='-DDEBUG_PL061=1' --with-sdlabi=2.0 --enable-trace-backends=simple" \ kernel_module-rebuild \ $extra_targets \