mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
travis 9: bash -x debugging, make-host make nproc optional
This commit is contained in:
@@ -8,4 +8,4 @@ install: |
|
||||
|
||||
script: |
|
||||
cd "$TRAVIS_BUILD_DIR"
|
||||
./run -e 'init=/poweroff.out' -j 16 -n -v
|
||||
bash -x ./run -e 'init=/poweroff.out' -j 16 -n -v
|
||||
|
||||
@@ -11,5 +11,14 @@
|
||||
# Trying to add `-i` to overcome incompatible modules will fail,
|
||||
# because any build failure prevents the generation of all `.mod.c` files.
|
||||
|
||||
make -j $(($(nproc) - 2)) BR2_EXTERNAL_KERNEL_MODULE_PATH="$(pwd)" LINUX_DIR="/lib/modules/$(uname -r)/build" "$@"
|
||||
make -C user/ -j $(($(nproc) - 2)) "$@"
|
||||
j="$(($(nproc) - 2))"
|
||||
while getopts j: OPT; do
|
||||
case "$OPT" in
|
||||
'j')
|
||||
j="$OPTARG"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
shift $(($OPTIND - 1))
|
||||
make -j "$j" KERNEL_MODULE_PATH="$(pwd)" LINUX_DIR="/lib/modules/$(uname -r)/build" "$@"
|
||||
make -C user/ -j "$j" "$@"
|
||||
|
||||
Reference in New Issue
Block a user