Skip to content

Commit 8c5aa2b

Browse files
jackson-cooperdstgloorious
authored andcommitted
[zep fromtree] LIB: Remove log/log_unpriv dependencies
Remove these to ensure that these interface targets only provide the tfm_log.c and tfm_log_unpriv.c source files and nothing else. This allows targets to individually link the tfm_vprintf.c source file. Change-Id: I5c00665d361ff9fab5b6316104d5a743336b8917 Signed-off-by: Jackson Cooper-Driver <jackson.cooper-driver@arm.com> (cherry picked from commit e74fa6f)
1 parent 08ca17f commit 8c5aa2b

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

bl1/bl1_1/shared_lib/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ target_link_libraries(bl1_1_shared_lib
3737
PUBLIC
3838
bl1_1_shared_lib_interface
3939
tfm_log
40+
tfm_vprintf
4041
PRIVATE
4142
platform_bl1_1
4243
)

lib/tfm_log/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#-------------------------------------------------------------------------------
2-
# Copyright (c) 2024, Arm Limited. All rights reserved.
2+
# SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
33
#
44
# SPDX-License-Identifier: BSD-3-Clause
55
#
@@ -23,6 +23,4 @@ target_include_directories(tfm_log_headers
2323
target_link_libraries(tfm_log
2424
INTERFACE
2525
tfm_log_headers
26-
tfm_vprintf
27-
platform_common_interface
2826
)

lib/tfm_log_unpriv/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ target_include_directories(tfm_log_unpriv_headers
2323
target_link_libraries(tfm_log_unpriv
2424
INTERFACE
2525
tfm_log_unpriv_headers
26-
tfm_vprintf
2726
)

platform/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ if(BL2)
218218
bl2_crypto
219219
bl2_hal
220220
tfm_log
221+
tfm_vprintf
221222
mcuboot_config
222223
$<$<AND:$<BOOL:${CONFIG_TFM_BOOT_STORE_MEASUREMENTS}>,$<NOT:$<BOOL:${CONFIG_TFM_BOOT_STORE_ENCODED_MEASUREMENTS}>>>:tfm_boot_status>
223224
)
@@ -319,6 +320,7 @@ if(BL1 AND PLATFORM_DEFAULT_BL1)
319320
PRIVATE
320321
tfm_fih
321322
tfm_log
323+
tfm_vprintf
322324
tfm_fih_headers
323325
tfm_boot_status
324326
)
@@ -372,6 +374,7 @@ if(BL1 AND PLATFORM_DEFAULT_BL1)
372374
tfm_fih
373375
tfm_fih_headers
374376
tfm_log
377+
tfm_vprintf
375378
tfm_boot_status
376379
platform_region_defs
377380
bl1_1_shared_lib_interface

platform/ext/target/arm/rse/common/provisioning/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ target_sources(platform_bl1_1
3131
target_link_libraries(platform_bl1_1
3232
PUBLIC
3333
tfm_log
34+
tfm_vprintf
3435
)
3536

3637
target_include_directories(platform_bl1_1_interface

0 commit comments

Comments
 (0)