mirror of
https://github.com/dynup/kpatch
synced 2024-12-27 07:42:04 +00:00
Merge pull request #290 from goldyfruit/master
kpatch-build: use getconf to get the processors number
This commit is contained in:
commit
dda01a5a1d
@ -40,7 +40,7 @@ BASE="$PWD"
|
|||||||
LOGFILE="/tmp/kpatch-build-$(date +%s).log"
|
LOGFILE="/tmp/kpatch-build-$(date +%s).log"
|
||||||
SCRIPTDIR="$(readlink -f $(dirname $(type -p $0)))"
|
SCRIPTDIR="$(readlink -f $(dirname $(type -p $0)))"
|
||||||
ARCHVERSION="$(uname -r)"
|
ARCHVERSION="$(uname -r)"
|
||||||
CPUS="$(grep -c ^processor /proc/cpuinfo)"
|
CPUS="$(getconf _NPROCESSORS_ONLN)"
|
||||||
CACHEDIR="$HOME/.kpatch"
|
CACHEDIR="$HOME/.kpatch"
|
||||||
SRCDIR="$CACHEDIR/src"
|
SRCDIR="$CACHEDIR/src"
|
||||||
OBJDIR="$CACHEDIR/obj"
|
OBJDIR="$CACHEDIR/obj"
|
||||||
|
Loading…
Reference in New Issue
Block a user