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 ad96d89..0134eda
@@ -16,8 +16,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-# 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}"
This page took 0.023727 seconds and 4 git commands to generate.