Use local kernel for modules coverity
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 17 Feb 2016 22:27:03 +0000 (17:27 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 17 Feb 2016 22:28:07 +0000 (17:28 -0500)
Use kernel v4.4 for now.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
jobs/lttng-modules.yaml
scripts/common/coverity.sh

index 1395256587315caea045cbe7dcd118f0ee219edd..85711e99f6584ac99f8cd20498cbd9bd39c37cc3 100644 (file)
               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
 
index 86e09a96cb2a08aeaa7536a305234c497eb5a0ae..4c519c3d62f501a14ab7021f5bc30e4b0d7eb3b2 100755 (executable)
@@ -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
This page took 0.024422 seconds and 4 git commands to generate.