Skip to content

Commit 08ca17f

Browse files
jackson-cooperdstgloorious
authored andcommitted
[zep fromtree] LIB: Change tfm_log_unpriv to INTERFACE library
Follows the same logic as in ac7219e. Change-Id: I211cb321d442bac74fc62c966e2330f75ad91271 Signed-off-by: Jackson Cooper-Driver <jackson.cooper-driver@arm.com> (cherry picked from commit a054b3f)
1 parent 28a3715 commit 08ca17f

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

lib/tfm_log_unpriv/CMakeLists.txt

Lines changed: 4 additions & 13 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
#
@@ -8,10 +8,10 @@
88
cmake_minimum_required(VERSION 3.21)
99

1010
add_library(tfm_log_unpriv_headers INTERFACE)
11-
add_library(tfm_log_unpriv STATIC)
11+
add_library(tfm_log_unpriv INTERFACE)
1212

1313
target_sources(tfm_log_unpriv
14-
PRIVATE
14+
INTERFACE
1515
src/tfm_log_unpriv.c
1616
)
1717

@@ -21,16 +21,7 @@ target_include_directories(tfm_log_unpriv_headers
2121
)
2222

2323
target_link_libraries(tfm_log_unpriv
24-
PUBLIC
24+
INTERFACE
2525
tfm_log_unpriv_headers
2626
tfm_vprintf
27-
PRIVATE
28-
tfm_sprt
29-
)
30-
31-
# Not actually used by the tfm_log library but required
32-
# to prevent preprocessor error on undefined LOG_LEVEL_UNPRIV
33-
target_compile_definitions(tfm_log_unpriv
34-
PRIVATE
35-
LOG_LEVEL_UNPRIV=0
3627
)

0 commit comments

Comments
 (0)