Skip to content

Commit ca1628b

Browse files
valeriosetticvinayak
authored andcommitted
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 <[email protected]>
1 parent bc2b2e3 commit ca1628b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

tests/bluetooth/mesh/brg/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ target_sources(app
1212

1313
target_include_directories(app
1414
PRIVATE
15-
${ZEPHYR_BASE}/subsys/bluetooth/mesh)
15+
${ZEPHYR_BASE}/subsys/bluetooth/mesh
16+
${ZEPHYR_MBEDTLS_MODULE_DIR}/include)
1617

1718
target_compile_options(app
1819
PRIVATE

tests/bluetooth/mesh/delayable_msg/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ target_sources(app
1212

1313
target_include_directories(app
1414
PRIVATE
15-
${ZEPHYR_BASE}/subsys/bluetooth/mesh)
15+
${ZEPHYR_BASE}/subsys/bluetooth/mesh
16+
${ZEPHYR_MBEDTLS_MODULE_DIR}/include)
1617

1718
target_compile_options(app
1819
PRIVATE

tests/bluetooth/mesh/rpl/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ target_sources(app
1212

1313
target_include_directories(app
1414
PRIVATE
15-
${ZEPHYR_BASE}/subsys/bluetooth/mesh)
15+
${ZEPHYR_BASE}/subsys/bluetooth/mesh
16+
${ZEPHYR_MBEDTLS_MODULE_DIR}/include)
1617

1718
target_compile_options(app
1819
PRIVATE

0 commit comments

Comments
 (0)