From 65751c1c3307a86a5a7ef06eac7ec2060ef20519 Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Wed, 6 Nov 2024 05:33:55 +0100 Subject: [PATCH] tests: bt: add Mbed TLS headers to the build Include Mbed TLS headers to the build system. This is required because these tests do not follow the "standard build pattern" of Mbed TLS in Zephyr, otherwise include files would be already available after the library has been linked. In these examples some BT source files and Kconfigs are manually added to the CmakeLists.txt file bypassing the standard library build pattern, so Mbed TLS headers must also be added manually. Signed-off-by: Valerio Setti --- tests/bluetooth/mesh/brg/CMakeLists.txt | 3 ++- tests/bluetooth/mesh/delayable_msg/CMakeLists.txt | 3 ++- tests/bluetooth/mesh/rpl/CMakeLists.txt | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/bluetooth/mesh/brg/CMakeLists.txt b/tests/bluetooth/mesh/brg/CMakeLists.txt index aa140c39c22..55e77eaef75 100644 --- a/tests/bluetooth/mesh/brg/CMakeLists.txt +++ b/tests/bluetooth/mesh/brg/CMakeLists.txt @@ -12,7 +12,8 @@ target_sources(app target_include_directories(app PRIVATE - ${ZEPHYR_BASE}/subsys/bluetooth/mesh) + ${ZEPHYR_BASE}/subsys/bluetooth/mesh + ${ZEPHYR_MBEDTLS_MODULE_DIR}/include) target_compile_options(app PRIVATE diff --git a/tests/bluetooth/mesh/delayable_msg/CMakeLists.txt b/tests/bluetooth/mesh/delayable_msg/CMakeLists.txt index 9c10285f055..96af1f0175c 100644 --- a/tests/bluetooth/mesh/delayable_msg/CMakeLists.txt +++ b/tests/bluetooth/mesh/delayable_msg/CMakeLists.txt @@ -12,7 +12,8 @@ target_sources(app target_include_directories(app PRIVATE - ${ZEPHYR_BASE}/subsys/bluetooth/mesh) + ${ZEPHYR_BASE}/subsys/bluetooth/mesh + ${ZEPHYR_MBEDTLS_MODULE_DIR}/include) target_compile_options(app PRIVATE diff --git a/tests/bluetooth/mesh/rpl/CMakeLists.txt b/tests/bluetooth/mesh/rpl/CMakeLists.txt index 17545736a44..44bb865291a 100644 --- a/tests/bluetooth/mesh/rpl/CMakeLists.txt +++ b/tests/bluetooth/mesh/rpl/CMakeLists.txt @@ -12,7 +12,8 @@ target_sources(app target_include_directories(app PRIVATE - ${ZEPHYR_BASE}/subsys/bluetooth/mesh) + ${ZEPHYR_BASE}/subsys/bluetooth/mesh + ${ZEPHYR_MBEDTLS_MODULE_DIR}/include) target_compile_options(app PRIVATE