From db3cbf91f90948d3fdac498de4695f7a9b1d754e Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Mon, 28 Sep 2020 10:09:16 +0530 Subject: [PATCH] mbedtls: Fixed target library linking when using the DS peripheral --- components/mbedtls/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/mbedtls/CMakeLists.txt b/components/mbedtls/CMakeLists.txt index 3257efdbe0..6dfdfcfa7c 100644 --- a/components/mbedtls/CMakeLists.txt +++ b/components/mbedtls/CMakeLists.txt @@ -141,6 +141,11 @@ set_property(TARGET mbedcrypto APPEND PROPERTY LINK_INTERFACE_LIBRARIES mbedtls) # Link mbedtls libraries to component library target_link_libraries(${COMPONENT_LIB} PUBLIC ${mbedtls_targets}) +if(CONFIG_ESP_TLS_USE_DS_PERIPHERAL) + # Link target (esp32s2) library to component library + target_link_libraries(${COMPONENT_LIB} PUBLIC ${target}) +endif() + # Link esp-cryptoauthlib to mbedtls if(CONFIG_ATCA_MBEDTLS_ECDSA) idf_component_get_property(cryptoauthlib esp-cryptoauthlib COMPONENT_LIB)