From 469a8356d9fc83d3f1147e25abd31ea61b7c383b Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Fri, 10 Jul 2015 09:54:19 -0400 Subject: [PATCH] use -j NPROC on module build --- lttng-modules/lttng-modules-dsl-master.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lttng-modules/lttng-modules-dsl-master.sh b/lttng-modules/lttng-modules-dsl-master.sh index 81e37f5..4e9416b 100644 --- a/lttng-modules/lttng-modules-dsl-master.sh +++ b/lttng-modules/lttng-modules-dsl-master.sh @@ -1,5 +1,7 @@ # Recreate link to kernel source +NPROC=`nproc` + rm -rf /tmp/linux-source rm -rf /tmp/linux-artifact @@ -8,7 +10,7 @@ ln -s $WORKSPACE/linux-artifact /tmp/linux-artifact ln -s /tmp/linux-source /tmp/linux-artifact/source cd lttng-modules -make KERNELDIR=/tmp/linux-artifact +make -j $NPROC KERNELDIR=/tmp/linux-artifact #make INSTALL_MOD_PATH="$PREFIX" modules_install rm -rf /tmp/linux-source rm -rf /tmp/linux-artifact -- 2.34.1