Skip to content

Commit f58e96a

Browse files
tomi-fontde-nordic
authored andcommitted
bootutil: zephyr: link to mbedTLS only when CONFIG_MBEDTLS_BUILTIN
The CMake library is created only when `CONFIG_MBEDTLS_BUILTIN` is `y`. Signed-off-by: Tomi Fontanilles <tomi.fontanilles@nordicsemi.no>
1 parent 1699690 commit f58e96a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

boot/bootutil/zephyr/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ if(CONFIG_MCUBOOT_BOOTUTIL_LIB)
3838
endif()
3939

4040
if(CONFIG_BOOT_USE_MBEDTLS OR CONFIG_BOOT_PSA_CRYPTO_BACKEND_MBEDTLS)
41-
zephyr_link_libraries(mbedTLS)
41+
zephyr_link_libraries_ifdef(CONFIG_MBEDTLS_BUILTIN mbedTLS)
4242
endif()
4343
endif()

0 commit comments

Comments
 (0)