From c0f3a83179badd3b2119e87cc4e8594ab7b23e2d Mon Sep 17 00:00:00 2001 From: Peter Hoyes Date: Wed, 11 Jan 2023 17:58:03 +0000 Subject: [PATCH] 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 Change-Id: Ia87a0cbbb67ac1d6f3b26cfb5747a85b46131f81 Signed-off-by: Jon Mason --- meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.10.0.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.10.0.bb b/meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.10.0.bb index 5dbbff94..055e0c1b 100644 --- a/meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.10.0.bb +++ b/meta-arm/recipes-bsp/scp-firmware/scp-firmware_2.10.0.bb @@ -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() {