mbedtls: Fixed target library linking when using the DS peripheral

This commit is contained in:
Aditya Patwardhan
2020-09-28 10:09:16 +05:30
parent 01330f40b7
commit db3cbf91f9

View File

@@ -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)