mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-05 14:30:10 +00:00
arm/scp-firmware: Disable cppcheck
The SCP-firmware CMake compile step automatically attempts to execute cppcheck if both: * cppcheck can be located using find_program * DISABLE_CPPCHECK is not defined cppcheck is not readily available in OE-core and is not an essential part of the compilation process for end-users, so explicitly disable the cppcheck step by passing DISABLE_CPPCHECK to CMake. Additionally, because the OE-core CMake toolchain file cannot be used, find_program may locate cppcheck on the host machine, which will cause the build to fail if it is not the recommended version (as it is in recent Linux distros). Issue-Id: SCM-5864 Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: Ia87a0cbbb67ac1d6f3b26cfb5747a85b46131f81 Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -46,6 +46,7 @@ CFLAGS[unexport] = "1"
|
||||
EXTRA_OECMAKE = "-D CMAKE_BUILD_TYPE=${SCP_BUILD_STR} \
|
||||
-D SCP_LOG_LEVEL=${SCP_LOG_LEVEL} \
|
||||
-D SCP_PLATFORM_FEATURE_SET=${SCP_PLATFORM_FEATURE_SET} \
|
||||
-D DISABLE_CPPCHECK=1 \
|
||||
"
|
||||
|
||||
do_configure() {
|
||||
|
||||
Reference in New Issue
Block a user