From: Jonathan Rajotte Date: Wed, 17 Feb 2016 22:27:03 +0000 (-0500) Subject: Use local kernel for modules coverity X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5122da3c3d0d48fe191e21bebd601d7ac71f7793;p=lttng-ci.git Use local kernel for modules coverity Use kernel v4.4 for now. Signed-off-by: Jonathan Rajotte --- diff --git a/jobs/lttng-modules.yaml b/jobs/lttng-modules.yaml index 1395256..85711e9 100644 --- a/jobs/lttng-modules.yaml +++ b/jobs/lttng-modules.yaml @@ -287,6 +287,13 @@ password: COVERITY_SCAN_TOKEN builders: + - shell: | + git clone --depth=1 -b v4.4 --reference $HOME/gitcache/linux-stable.git/ git://artifacts.internal.efficios.com/git/linux-stable.git linux + cd linux + make defconfig + sed -i "s/# CONFIG_KALLSYMS_ALL is not set/CONFIG_KALLSYMS_ALL=y/g" .config + make modules_prepare + cd .. - shell: !include-raw-escape: scripts/common/coverity.sh diff --git a/scripts/common/coverity.sh b/scripts/common/coverity.sh index 86e09a9..4c519c3 100755 --- a/scripts/common/coverity.sh +++ b/scripts/common/coverity.sh @@ -61,6 +61,10 @@ if [ -d "$WORKSPACE/deps/lttng-ust" ]; then export LD_LIBRARY_PATH="$UST_LIBS:${LD_LIBRARY_PATH:-}" fi +if [ -d "$WORKSPACE/linux" ]; then + export KERNELDIR="$WORKSPACE/linux" +fi + # Verify upload is permitted set +x @@ -110,7 +114,7 @@ fi # Build echo -e "\033[33;1mRunning Coverity Scan Analysis Tool...\033[0m" -cov-build --dir $RESULTS_DIR $COVERITY_SCAN_BUILD_OPTIONS make -j$NPROC +cov-build --dir $RESULTS_DIR $COVERITY_SCAN_BUILD_OPTIONS make -j$NPROC V=1 cov-import-scm --dir $RESULTS_DIR --scm git --log $RESULTS_DIR/scm_log.txt # Tar results