mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
travis 7: nproc appears not present?
This commit is contained in:
@@ -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
8
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 \
|
||||
|
||||
Reference in New Issue
Block a user