mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
travis 9: bash -x debugging, make-host make nproc optional
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' -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,
|
# Trying to add `-i` to overcome incompatible modules will fail,
|
||||||
# because any build failure prevents the generation of all `.mod.c` files.
|
# 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" "$@"
|
j="$(($(nproc) - 2))"
|
||||||
make -C user/ -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