X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-tools%2Fbuild.sh;h=b44dd2c82098f470440890973a9ce5fed8b77288;hb=4d27af8f99434c6dcadf1d22430d4e8a27b8bee2;hp=2ead92bae00382aaeaa06bb21811615b2ba5d172;hpb=f2cd0939ea3feb54026116ca44f96ad789b65055;p=lttng-ci.git diff --git a/scripts/lttng-tools/build.sh b/scripts/lttng-tools/build.sh index 2ead92b..b44dd2c 100755 --- a/scripts/lttng-tools/build.sh +++ b/scripts/lttng-tools/build.sh @@ -2,7 +2,7 @@ # shellcheck disable=SC2103 # # Copyright (C) 2016 Jonathan Rajotte-Julien -# 2016-2019 Michael Jeanson +# Copyright (C) 2016-2020 Michael Jeanson # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -261,6 +261,14 @@ full) ;; esac +# If we have modules, build them +if [ -d "$WORKSPACE/src/lttng-modules" ]; then + cd "$WORKSPACE/src/lttng-modules" + $MAKE -j"$($NPROC)" V=1 + $MAKE modules_install V=1 + depmod +fi + # Enter the source directory cd "$SRCDIR" @@ -282,6 +290,8 @@ fi # Most build configs require the python bindings CONF_OPTS=("--prefix=$PREFIX" "--enable-python-bindings") +DIST_CONF_OPTS=() + # Set configure options and environment variables for each build # configuration. case "$conf" in @@ -294,6 +304,7 @@ static) no-ust) echo "Build without UST support" CONF_OPTS+=("$NO_UST") + DIST_CONF_OPTS+=("$NO_UST") ;; agents) @@ -347,7 +358,7 @@ dist) # Run configure and generate the tar file # in the source directory - ./configure + ./configure "${DIST_CONF_OPTS[@]}" $MAKE dist # Create and enter a temporary build directory @@ -370,7 +381,7 @@ oot-dist) cd "$builddir" # Run configure out of tree and generate the tar file - "$SRCDIR/configure" + "$SRCDIR/configure" "${DIST_CONF_OPTS[@]}" $MAKE dist dist_srcdir="$(mktemp -d)"