Merge pull request #290 from goldyfruit/master

kpatch-build: use getconf to get the processors number
This commit is contained in:
Josh Poimboeuf 2014-07-02 06:21:12 -05:00
commit dda01a5a1d

View File

@ -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"