mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 12:04:27 +01:00
travis 7: nproc appears not present?
This commit is contained in:
@@ -8,4 +8,4 @@ install: |
|
|||||||
|
|
||||||
script: |
|
script: |
|
||||||
cd "$TRAVIS_BUILD_DIR"
|
cd "$TRAVIS_BUILD_DIR"
|
||||||
./run -e 'init=/poweroff.out' -n
|
./run -e 'init=/poweroff.out' -j16 -n
|
||||||
|
|||||||
8
run
8
run
@@ -2,12 +2,16 @@
|
|||||||
set -e
|
set -e
|
||||||
arch='x86_64'
|
arch='x86_64'
|
||||||
extra_targets=''
|
extra_targets=''
|
||||||
|
j="$(($(nproc) - 2))"
|
||||||
x11=false
|
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
|
case "$OPT" in
|
||||||
'a')
|
'a')
|
||||||
arch="$OPTARG"
|
arch="$OPTARG"
|
||||||
;;
|
;;
|
||||||
|
'j')
|
||||||
|
j="$OPTARG"
|
||||||
|
;;
|
||||||
't')
|
't')
|
||||||
extra_targets="$extra_args $OPTARG"
|
extra_targets="$extra_args $OPTARG"
|
||||||
;;
|
;;
|
||||||
@@ -58,7 +62,7 @@ time \
|
|||||||
-u LD_LIBRARY_PATH \
|
-u LD_LIBRARY_PATH \
|
||||||
make \
|
make \
|
||||||
O="$outdir" \
|
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" \
|
HOST_QEMU_OPTS="--enable-debug --enable-sdl --extra-cflags='-DDEBUG_PL061=1' --with-sdlabi=2.0 --enable-trace-backends=simple" \
|
||||||
kernel_module-rebuild \
|
kernel_module-rebuild \
|
||||||
$extra_targets \
|
$extra_targets \
|
||||||
|
|||||||
Reference in New Issue
Block a user