X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fkernel%2Fbuild.sh;h=614f1d8f4446b39520183612410ba7dd5bbd6d48;hb=98331794f16709f0b7ecba41b14dc8572f2e4b98;hp=ad96d89a3011e5b52a8857d3a0aa2226cb9442a1;hpb=598af4633e637805c844f06513d36a1703f1dc78;p=lttng-ci.git diff --git a/scripts/kernel/build.sh b/scripts/kernel/build.sh index ad96d89..614f1d8 100644 --- a/scripts/kernel/build.sh +++ b/scripts/kernel/build.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh -exu # # Copyright (C) 2015 - Jonathan Rajotte-Julien # Michael Jeanson @@ -16,9 +16,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# Exit with error when using an undefined variable -set -u - #Check if ccache is present #if [ -d /usr/lib/ccache ]; then # echo "Using CCACHE" @@ -48,8 +45,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}"