diff options
author | yardenac | 2013-04-28 12:30:43 -0700 |
---|---|---|
committer | yar | 2015-07-03 16:58:25 -0700 |
commit | b32d7e9f5da08c41034ae1d487532c1c56b5995b (patch) | |
tree | 53fd6b84a61f94a8752f0aebcc71d5b5b7e5b074 | |
parent | a1e7ec68a13fb68b34a8fda77511b00dca71144d (diff) | |
download | aur-b32d7e9f5da08c41034ae1d487532c1c56b5995b.tar.gz |
build on all CPUs, unless overriden in MAKEFLAGS
-rw-r--r-- | PKGBUILD | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -50,6 +50,8 @@ build() { cd "${srcdir}/${_srcname}" CFLAGS=${CFLAGS}" -march=corei7 -mtune=corei7 -mcpu=corei7 " CXXFLAGS=${CXXFLAGS}" -march=corei7 -mtune=corei7 -mcpu=corei7 " + cpus=$(awk '/^processor/ {cpus++} END {print cpus}' /proc/cpuinfo) + [[ "$MAKEFLAGS" =~ -j[0-9]* ]] || MAKEFLAGS+=" -j${cpus:-1}" ionice -c 3 nice -n 19 make ${MAKEFLAGS} LOCALVERSION= bzImage modules } |