Skip to content

Commit 561f220

Browse files
rluboscarlescufi
authored andcommitted
modules: uoscore-uedhoc: Make the library build with TFM
Following the same pattern as in the other libraries/samples, add TFM include directory explicitly when building uoscore library, to mitigate the problem of redefined header files in TFM. When TFM is enabled, headers from TFM should be used, not mbed TLS ones. Signed-off-by: Robert Lubos <[email protected]>
1 parent f602c72 commit 561f220

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/uoscore-uedhoc/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ if (CONFIG_UOSCORE OR CONFIG_UEDHOC)
2727

2828
zephyr_library_link_libraries(mbedTLS)
2929

30+
if (CONFIG_BUILD_WITH_TFM)
31+
zephyr_library_include_directories(
32+
$<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/install/interface/include
33+
)
34+
endif()
35+
3036
# UOSCORE
3137

3238
if (CONFIG_UOSCORE)

0 commit comments

Comments
 (0)