X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fkernel%2Fbuild.sh;h=0134eda4638c41c76dcec9904eafa4127c05b7e4;hb=51c9c62db1805a4cdd96be18df4082f1ac5d81c5;hp=11f1af13fdacbc8ed69615a992e9554c7288ebbf;hpb=f12f1d66b108047330ad7f7d6e611be3645925b4;p=lttng-ci.git diff --git a/scripts/kernel/build.sh b/scripts/kernel/build.sh old mode 100644 new mode 100755 index 11f1af1..0134eda --- a/scripts/kernel/build.sh +++ b/scripts/kernel/build.sh @@ -1,4 +1,4 @@ -#!/bin/sh -exu +#!/bin/sh # # Copyright (C) 2015 - Jonathan Rajotte-Julien # Michael Jeanson @@ -16,6 +16,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . +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}"