build_package: Disable cppcheck for build_scp()
The static analyzer Cppcheck runs along with the build by
default now that we build with CMake.
Remove the Cppcheck for three reasons:
- this build instance is not meant to analyze the source code, but
simply to generate a binary to perform a functional test. The analysis
is however performed during another step before this job runs.
- the set of rules & fixes are very version-dependent and the required
version (currently 1.90) may not be available in the nodes running
the tool. This may end up in having false negative, simply due to
version mismatch.
- there is currently no package available for the tool we can install
via requirements.
Change-Id: Iae113b95ad2c61fd180f5651eb63d25300191e83
Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com>
diff --git a/script/build_package.sh b/script/build_package.sh
index 5974447..8f3a61a 100755
--- a/script/build_package.sh
+++ b/script/build_package.sh
@@ -598,6 +598,7 @@
make -f Makefile.cmake $(cat "$config_file" | tr '\n' ' ') \
TOOLCHAIN=GNU \
MODE="$mode" \
+ EXTRA_CONFIG_ARGS+=-DDISABLE_CPPCHECK=true \
V=1 &>>"$build_log"
EOF
@@ -606,6 +607,7 @@
make -f Makefile.cmake $(cat "$config_file" | tr '\n' ' ') \
TOOLCHAIN=GNU \
MODE="$mode" \
+ EXTRA_CONFIG_ARGS+=-DDISABLE_CPPCHECK=true \
V=1 &>>"$build_log" \
|| fail_build
)