From b1203588e658a41399bdd6fe6f24f36778de9591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Audun=20Kvamtr=C3=B8?= Date: Mon, 27 Jan 2025 13:27:45 +0100 Subject: [PATCH] mesh: Add link to mbedTLS for simulator tests to find psa/crypto.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -Fixes issues with some zephyr-located tests for BLE mesh. Signed-off-by: Frank Audun Kvamtrø --- subsys/bluetooth/mesh/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subsys/bluetooth/mesh/CMakeLists.txt b/subsys/bluetooth/mesh/CMakeLists.txt index 047cdcc8b28b..95411e9e21c3 100644 --- a/subsys/bluetooth/mesh/CMakeLists.txt +++ b/subsys/bluetooth/mesh/CMakeLists.txt @@ -80,3 +80,7 @@ zephyr_linker_sources(SECTIONS sensor_types.ld) zephyr_linker_sources(SECTIONS scene_types.ld) zephyr_library_sources_ifdef(CONFIG_BT_MESH_RPL_STORAGE_MODE_EMDS rpl.c) + +if (CONFIG_BT_MESH_USES_MBEDTLS_PSA AND (NOT CONFIG_SOC_FAMILY_NORDIC_NRF)) + zephyr_library_link_libraries(mbedTLS) +endif()