mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-06-05 02:20:30 +00:00
arm/scp-firmware: Ensure CMAKE_BUILD_TYPE is capitalized
If CMAKE_BUILD_TYPE=debug (lowercase), SCP-firmware builds with debug compiler flags but BUILD_MODE_DEBUG is not defined in C code so features that are conditionally enabled/disabled in debug mode are not active. Pass capitalized "Debug" and "Release" strings to CMAKE_BUILD_TYPE to ensure Debug mode is fully enabled when SCP_BUILD_RELEASE = "0". SCP_BUILD_RELEASE = "1" (the default) for all machines in meta-arm-bsp so they are unaffected. Issue-Id: SCM-5864 Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: I93220420eedd2e3e6c169679efcaf4642dd5bc51 Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -27,7 +27,7 @@ DEPENDS = "virtual/arm-none-eabi-gcc-native \
|
||||
# For now we only build with GCC, so stop meta-clang trying to get involved
|
||||
TOOLCHAIN = "gcc"
|
||||
|
||||
SCP_BUILD_STR = "${@bb.utils.contains('SCP_BUILD_RELEASE', '1', 'release', 'debug', d)}"
|
||||
SCP_BUILD_STR = "${@bb.utils.contains('SCP_BUILD_RELEASE', '1', 'Release', 'Debug', d)}"
|
||||
|
||||
inherit deploy
|
||||
|
||||
|
||||
Reference in New Issue
Block a user