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 <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2023-07-26 14:33:10 +02:00 committed by Carles Cufí
commit 561f220686

View file

@ -27,6 +27,12 @@ if (CONFIG_UOSCORE OR CONFIG_UEDHOC)
zephyr_library_link_libraries(mbedTLS)
if (CONFIG_BUILD_WITH_TFM)
zephyr_library_include_directories(
$<TARGET_PROPERTY:tfm,TFM_BINARY_DIR>/install/interface/include
)
endif()
# UOSCORE
if (CONFIG_UOSCORE)