aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaef Coles <raef.coles@arm.com>2020-10-08 13:30:03 +0100
committerTamas Ban <tamas.ban@arm.com>2020-10-21 09:06:48 +0000
commit3ebf12d1e5e525e9015bafcc52b663b5f90c6055 (patch)
tree1502bfd7f3b4100a52baa677322c3916e945f277
parent75bf7968c4ac1653fd484dad5980339951807748 (diff)
downloadtrusted-firmware-m-3ebf12d1e5e525e9015bafcc52b663b5f90c6055.tar.gz
Build: Disable CC312 logging except in debug build
Change-Id: I474af6ce6c5d1b35aa45a5aecb7ad1a639bc63a2 Signed-off-by: Raef Coles <raef.coles@arm.com>
-rw-r--r--lib/ext/cryptocell-312-runtime/CMakeLists.txt4
-rw-r--r--platform/ext/accelerator/cc312/CMakeLists.txt4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/ext/cryptocell-312-runtime/CMakeLists.txt b/lib/ext/cryptocell-312-runtime/CMakeLists.txt
index cf0be8715b..46f6c84377 100644
--- a/lib/ext/cryptocell-312-runtime/CMakeLists.txt
+++ b/lib/ext/cryptocell-312-runtime/CMakeLists.txt
@@ -44,7 +44,7 @@ target_compile_definitions(${CC312_LIB_TARGET}
DLLI_MAX_BUFF_SIZE=0x10000
USE_MBEDTLS_CRYPTOCELL
CC_MNG_MIN_BACKUP_SIZE_IN_BYTES=512
- CC_PAL_MAX_LOG_LEVEL=3
+ $<$<OR:$<CONFIG:Debug>,$<CONFIG:relwithdebinfo>>:CC_PAL_MAX_LOG_LEVEL=3>
PUBLIC
CC_IOT
)
@@ -58,7 +58,7 @@ target_link_libraries(${CC312_LIB_TARGET}
target_compile_definitions(${CC312_PAL_TARGET}
PRIVATE
CC_TRNG_MODE=0
- CC_PAL_MAX_LOG_LEVEL=3
+ $<$<OR:$<CONFIG:Debug>,$<CONFIG:relwithdebinfo>>:CC_PAL_MAX_LOG_LEVEL=3>
PUBLIC
CC_IOT
)
diff --git a/platform/ext/accelerator/cc312/CMakeLists.txt b/platform/ext/accelerator/cc312/CMakeLists.txt
index ab71bd580c..282739afe5 100644
--- a/platform/ext/accelerator/cc312/CMakeLists.txt
+++ b/platform/ext/accelerator/cc312/CMakeLists.txt
@@ -24,7 +24,7 @@ if(BL2)
target_sources(crypto_hw_bl2
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/cc312.c
- ${CMAKE_CURRENT_SOURCE_DIR}/cc312_log.c
+ $<$<OR:$<CONFIG:Debug>,$<CONFIG:relwithdebinfo>>:${CMAKE_CURRENT_SOURCE_DIR}/cc312_log.c>
$<$<STREQUAL:${CRYPTO_HW_ACCELERATOR_OTP_STATE},PROVISIONING>:${CMAKE_CURRENT_SOURCE_DIR}/cc312_provisioning.c>
)
@@ -104,7 +104,7 @@ endif()
target_sources(crypto_hw_crypto_service
PRIVATE
cc312.c
- cc312_log.c
+ $<$<OR:$<CONFIG:Debug>,$<CONFIG:relwithdebinfo>>:${CMAKE_CURRENT_SOURCE_DIR}/cc312_log.c>
)
target_include_directories(crypto_hw_crypto_service