X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fkernel%2Fbuild.sh;h=0134eda4638c41c76dcec9904eafa4127c05b7e4;hb=301b8fc9aab525fdcf4a300ec45fd4d2c1bf214a;hp=ad96d89a3011e5b52a8857d3a0aa2226cb9442a1;hpb=598af4633e637805c844f06513d36a1703f1dc78;p=lttng-ci.git diff --git a/scripts/kernel/build.sh b/scripts/kernel/build.sh old mode 100644 new mode 100755 index ad96d89..0134eda --- a/scripts/kernel/build.sh +++ b/scripts/kernel/build.sh @@ -16,8 +16,7 @@ # 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 +set -exu #Check if ccache is present #if [ -d /usr/lib/ccache ]; then @@ -48,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}"