X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-modules%2Fbuild.sh;h=ad4189030ddf7e6a4d643f19f70f2034d40db0d6;hb=221450b6653154d154fdad4080ee2870a21c078d;hp=94f17bb6be5f8e9c5283c94925fb5c96f16b0f10;hpb=fe584a390a4ab7e4be80ee28befbf4b1e09f3241;p=lttng-ci.git diff --git a/scripts/lttng-modules/build.sh b/scripts/lttng-modules/build.sh index 94f17bb..ad41890 100755 --- a/scripts/lttng-modules/build.sh +++ b/scripts/lttng-modules/build.sh @@ -65,7 +65,7 @@ if { vergte "$KVERSION" "3.10" && verlte "$KVERSION" "3.10.13"; } || \ set +e # Build modules - make -j${NPROC} -C "${LNXBINDIR}" M="$(pwd)" + KERNELDIR="${LNXBINDIR}" make -j${NPROC} V=1 CONFIG_LTTNG=m # We expect this build to fail, if it doesn't, fail the job. if [ "$?" -eq 0 ]; then @@ -80,10 +80,10 @@ if { vergte "$KVERSION" "3.10" && verlte "$KVERSION" "3.10.13"; } || \ else # Regular build # Build modules - make -j${NPROC} -C "${LNXBINDIR}" M="$(pwd)" V=1 + KERNELDIR="${LNXBINDIR}" make -j${NPROC} V=1 CONFIG_LTTNG=m # Install modules to build dir - make INSTALL_MOD_PATH="${BUILDDIR}" -C "${LNXBINDIR}" M="$(pwd)" modules_install + KERNELDIR="${LNXBINDIR}" make INSTALL_MOD_PATH="${BUILDDIR}" modules_install fi # EOF