mirror of
https://github.com/dynup/kpatch
synced 2025-02-02 10:11:36 +00:00
dynamically determine number of jobs for make
This commit is contained in:
parent
acd922c44d
commit
9c8bd04c8b
@ -17,7 +17,7 @@ KPATCH_LDS="$KMOD_DIR/kpatch.lds"
|
||||
|
||||
KPATCH_GEN="$SCRIPT_DIR/kpatch-diff-gen/kpatch-diff-gen"
|
||||
KPATCHGCC="$SCRIPT_DIR/kpatch-gcc"
|
||||
JOBS=4
|
||||
JOBS=`grep -c processor /proc/cpuinfo`
|
||||
MAKE_CMD="make -j$JOBS vmlinux"
|
||||
export CROSS_COMPILE="$KPATCHGCC "
|
||||
# TODO make in function
|
||||
|
Loading…
Reference in New Issue
Block a user