Skip to content

Commit 2321e8e

Browse files
committed
Link mbed-mbedtls-cryptocell310 to mbed-mbedtls
The CMake definition for mbed-mbedtls-cryptocell310 is only visible to targets that support this feature, so we should safely link it to mbed-mbedtls. This fixes a compilation error fatal error: mbedtls_device.h: No such file or directory when a CryptoCell 310 target (e.g. those inheriting MCU_NRF52840) uses mbed-mbedtls. Note: Other Mbed drivers in `connectivity/drivers/mbedtls` simply adds includes and sources directly to mbed-mbedtls, but it is nice to keep mbed-mbedtls-cryptocell310 as a separate component.
1 parent 9d48bfe commit 2321e8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connectivity/drivers/mbedtls/FEATURE_CRYPTOCELL310/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ target_compile_definitions(mbed-mbedtls-cryptocell310
3434
MBED_CONF_CRYPTOCELL310_PRESENT=1
3535
)
3636

37-
target_link_libraries(mbed-mbedtls-cryptocell310
37+
target_link_libraries(mbed-mbedtls
3838
INTERFACE
39-
mbed-mbedtls
39+
mbed-mbedtls-cryptocell310
4040
)

0 commit comments

Comments
 (0)