jjb: Add env and os details printing to build jobs
[lttng-ci.git] / scripts / kernel / build.sh
old mode 100644 (file)
new mode 100755 (executable)
index 11f1af1..0134eda
@@ -1,4 +1,4 @@
-#!/bin/sh -exu
+#!/bin/sh
 #
 # Copyright (C) 2015 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
 #                      Michael Jeanson <mjeanson@efficios.com>
@@ -16,6 +16,8 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+set -exu
+
 #Check if ccache is present
 #if [ -d /usr/lib/ccache ]; then
 #      echo "Using CCACHE"
@@ -45,8 +47,7 @@ sed -i "s/# CONFIG_KALLSYMS_ALL is not set/CONFIG_KALLSYMS_ALL=y/g" "${BUILDDIR}
 
 # Build to out of tree dir
 #make -j$nbrProc O="${BUILDDIR}"
-make O="${BUILDDIR}" prepare
-make -j${NPROC} O="${BUILDDIR}" modules
+make O="${BUILDDIR}" modules_prepare
 
 # Clean up artifact directory to keep only relevant stuff for lttng-modules
 cd "${BUILDDIR}"
This page took 0.030162 seconds and 4 git commands to generate.