aboutsummaryrefslogtreecommitdiff
path: root/platform/CMakeLists.txt
diff options
context:
space:
mode:
authorShawn Shan <Shawn.Shan@arm.com>2020-12-07 13:19:31 +0800
committerShawn Shan <Shawn.Shan@arm.com>2021-01-15 14:47:47 +0800
commitda9cf6322eaa31d1a77ac8e0c7799152d724abf8 (patch)
tree6b1fffaffa74c5b1237c3357db48f369af84824f /platform/CMakeLists.txt
parentfffd7eea6530135508eace36af99d5816f7a191e (diff)
downloadtrusted-firmware-m-da9cf6322eaa31d1a77ac8e0c7799152d724abf8.tar.gz
Build: Exclude log source files in silence log level
Exclude the log source files from build system when log level is equal to SILENCE. Change-Id: I92171327a8a4993896b188a3fcaa06da740ea42a Signed-off-by: Shawn Shan <Shawn.Shan@arm.com>
Diffstat (limited to 'platform/CMakeLists.txt')
-rwxr-xr-xplatform/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/CMakeLists.txt b/platform/CMakeLists.txt
index 85f2c38b17..5e493b1341 100755
--- a/platform/CMakeLists.txt
+++ b/platform/CMakeLists.txt
@@ -44,7 +44,7 @@ target_sources(platform_s
$<$<BOOL:${TFM_PARTITION_INTERNAL_TRUSTED_STORAGE}>:${CMAKE_CURRENT_SOURCE_DIR}/ext/common/tfm_hal_its.c>
ext/common/tfm_platform.c
$<$<BOOL:${PLATFORM_DEFAULT_UART_STDOUT}>:${CMAKE_CURRENT_SOURCE_DIR}/ext/common/uart_stdout.c>
- ext/common/tfm_hal_spm_logdev_peripheral.c
+ $<$<NOT:$<STREQUAL:${TFM_SPM_LOG_LEVEL},${TFM_SPM_LOG_LEVEL_SILENCE}>>:ext/common/tfm_hal_spm_logdev_peripheral.c>
$<$<BOOL:${PLATFORM_DUMMY_ATTEST_HAL}>:ext/common/template/attest_hal.c>
$<$<BOOL:${PLATFORM_DUMMY_NV_COUNTERS}>:ext/common/template/nv_counters.c>
$<$<BOOL:${PLATFORM_DUMMY_CRYPTO_KEYS}>:ext/common/template/crypto_keys.c>