use -j NPROC on module build
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 10 Jul 2015 13:54:19 +0000 (09:54 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 10 Jul 2015 13:54:19 +0000 (09:54 -0400)
lttng-modules/lttng-modules-dsl-master.sh

index 81e37f5da9d83ead742e373fb768251ea593339a..4e9416b05a3e05fe1d270737709b044d6bc59df4 100644 (file)
@@ -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
This page took 0.024915 seconds and 4 git commands to generate.