From afd2e9561c08fa691a712ca25ecfb68ffe526334 Mon Sep 17 00:00:00 2001 From: Robert Lubos Date: Thu, 23 Nov 2023 12:26:13 +0100 Subject: [PATCH] net: tls_credentials: Add missing include dir for PSA API Protected credential storage makes use of the PSA API, therefore it must be present in the library include path. This was missed during the recent CMakeLists.txt rework of this library. Signed-off-by: Robert Lubos --- subsys/net/lib/tls_credentials/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/subsys/net/lib/tls_credentials/CMakeLists.txt b/subsys/net/lib/tls_credentials/CMakeLists.txt index 490a558953d..9a605e0832b 100644 --- a/subsys/net/lib/tls_credentials/CMakeLists.txt +++ b/subsys/net/lib/tls_credentials/CMakeLists.txt @@ -15,3 +15,9 @@ zephyr_library_sources_ifdef(CONFIG_TLS_CREDENTIALS_SHELL ) zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS) + +if (CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE AND CONFIG_BUILD_WITH_TFM) + target_include_directories(${ZEPHYR_CURRENT_LIBRARY} PRIVATE + $/install/interface/include + ) +endif()