From c099209d7c8936986f18534f07a88c9bb7782d21 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Fri, 11 Nov 2022 16:13:15 +0530 Subject: [PATCH] esp-tls: Fix esp-cryptoauthlib built dependency when secure element support is enabled --- components/esp-tls/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/esp-tls/CMakeLists.txt b/components/esp-tls/CMakeLists.txt index 561144e70e..f626441cfd 100644 --- a/components/esp-tls/CMakeLists.txt +++ b/components/esp-tls/CMakeLists.txt @@ -26,3 +26,7 @@ endif() # due to cyclic dependencies present in IDF for lwip/esp_netif/mbedtls idf_component_get_property(lwip lwip COMPONENT_LIB) set_property(TARGET ${lwip} APPEND PROPERTY LINK_INTERFACE_MULTIPLICITY 5) + +if(CONFIG_ESP_TLS_USE_SECURE_ELEMENT) + idf_component_optional_requires(PRIVATE espressif__esp-cryptoauthlib esp-cryptoauthlib) +endif()