From 00220491896ba9c8e0c9a38a519938bc1ff98d52 Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Fri, 9 Nov 2012 19:08:36 +0100 Subject: [PATCH] compat: run ckmake with num cpu threads Signed-off-by: Luis R. Rodriguez --- bin/ckmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/ckmake b/bin/ckmake index f1746962921e..5fd3e7f3fe69 100755 --- a/bin/ckmake +++ b/bin/ckmake @@ -31,6 +31,7 @@ LAST="" RANGE="" RET="" +NUM_CPUS=$(echo $(($(cat /proc/cpuinfo | grep processor | tail -1 | awk '{print $3}')+1))) # If $HOME/compat-ksrc is found use that, otherwise use system-wide # sources in /usr/src. @@ -161,8 +162,8 @@ function run_ckmake() NOCOLOR="1" log_try_kernel $KERNEL >> $LOG log_try_kernel $KERNEL - #ionice -c 3 nice -n 20 make $QUIET KLIB=$DIR KLIB_BUILD=$DIR -j6 -Wunused-but-set-variable $ARGS &>> $LOG - ionice -c 3 nice -n 20 make $QUIET KLIB=$DIR KLIB_BUILD=$DIR -j6 $ARGS &>> $LOG + #ionice -c 3 nice -n 20 make $QUIET KLIB=$DIR KLIB_BUILD=$DIR -j${NUM_CPUS} -Wunused-but-set-variable $ARGS &>> $LOG + ionice -c 3 nice -n 20 make $QUIET KLIB=$DIR KLIB_BUILD=$DIR -j${NUM_CPUS} $ARGS &>> $LOG CUR_RET=$? if [[ $RET = "" ]]; then -- 2.30.2