From 6ccdda249bb0798689e8c19f6c7394b98b605b64 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Fri, 9 Aug 2024 15:30:35 +0530 Subject: [PATCH] fix(mbedtls): link esp-cryptoauthlib to mbedcrypto library If the certificate bundle feature is disabled then the mbedtls component library becomes interface only component and hence adding esp-cryptoauthlib as its PRIVATE dependency does not work. Instead the esp-cryptoauthlib should be added as PRIVATE dependency for mbedcrypto library (for alternate ECDSA implementation). --- components/mbedtls/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/mbedtls/CMakeLists.txt b/components/mbedtls/CMakeLists.txt index e87a2a5641..750c9077ef 100644 --- a/components/mbedtls/CMakeLists.txt +++ b/components/mbedtls/CMakeLists.txt @@ -355,7 +355,7 @@ if(CONFIG_MBEDTLS_HARDWARE_ECDSA_SIGN_CONSTANT_TIME_CM) mbedcrypto_optional_deps(esp_timer idf::esp_timer) endif() -# Link esp-cryptoauthlib to mbedtls +# Link esp-cryptoauthlib to mbedcrypto if(CONFIG_ATCA_MBEDTLS_ECDSA) - idf_component_optional_requires(PRIVATE espressif__esp-cryptoauthlib esp-cryptoauthlib) + mbedcrypto_optional_deps(espressif__esp-cryptoauthlib esp-cryptoauthlib) endif()