travis 7: nproc appears not present?

This commit is contained in:
Ciro Santilli
2017-11-02 15:47:34 +00:00
parent a9bf4c19dd
commit 0f52efe935
2 changed files with 7 additions and 3 deletions

View File

@@ -8,4 +8,4 @@ install: |
script: |
cd "$TRAVIS_BUILD_DIR"
./run -e 'init=/poweroff.out' -n
./run -e 'init=/poweroff.out' -j16 -n

8
run
View File

@@ -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 \