aboutsummaryrefslogtreecommitdiff
path: root/platform/CMakeLists.txt
diff options
context:
space:
mode:
authorGabor Abonyi <gabor.abonyi@arm.com>2020-10-19 15:08:40 +0200
committerSoby Mathew <soby.mathew@arm.com>2020-12-10 10:54:43 +0000
commit931622b6492bedd6df4670c443f1cab20bd61432 (patch)
tree159248a5d510257fd73383f685dd804798835518 /platform/CMakeLists.txt
parentb73470ec7163ba1536cab62be59a4a5e375c0a92 (diff)
downloadtrusted-firmware-m-931622b6492bedd6df4670c443f1cab20bd61432.tar.gz
Platform: Make UART stdout implementation replaceable
Change-Id: Ibc808027c8f4623ac2f3ae2c35f87d2f413837be Signed-off-by: Gabor Abonyi <gabor.abonyi@arm.com>
Diffstat (limited to 'platform/CMakeLists.txt')
-rwxr-xr-xplatform/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/CMakeLists.txt b/platform/CMakeLists.txt
index 37ce6e5032..1db300fd02 100755
--- a/platform/CMakeLists.txt
+++ b/platform/CMakeLists.txt
@@ -43,7 +43,7 @@ target_sources(platform_s
ext/common/tfm_hal_ps.c
ext/common/tfm_hal_its.c
ext/common/tfm_platform.c
- ext/common/uart_stdout.c
+ $<$<BOOL:${PLATFORM_DEFAULT_UART_STDOUT}>:${CMAKE_CURRENT_SOURCE_DIR}/ext/common/uart_stdout.c>
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>
@@ -82,7 +82,7 @@ target_include_directories(platform_ns
target_sources(platform_ns
PRIVATE
- ext/common/uart_stdout.c
+ $<$<BOOL:${PLATFORM_DEFAULT_UART_STDOUT}>:${CMAKE_CURRENT_SOURCE_DIR}/ext/common/uart_stdout.c>
)
target_link_libraries(platform_ns
@@ -113,8 +113,8 @@ if(BL2)
target_sources(platform_bl2
PRIVATE
- ext/common/uart_stdout.c
ext/common/boot_hal.c
+ $<$<BOOL:${PLATFORM_DEFAULT_UART_STDOUT}>:${CMAKE_CURRENT_SOURCE_DIR}/ext/common/uart_stdout.c>
$<$<BOOL:${PLATFORM_DUMMY_NV_COUNTERS}>:ext/common/template/nv_counters.c>
$<$<BOOL:${PLATFORM_DUMMY_ROTPK}>:ext/common/template/tfm_rotpk.c>
$<$<BOOL:${PLATFORM_DUMMY_IAK}>:ext/common/template/tfm_initial_attestation_key_material.c>