From 203830e12b25fcd07a250b753cda0a324b3320af Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Mon, 25 Jul 2022 11:56:18 +0530 Subject: [PATCH] esp-cryptoautlib: remove submodule and use from IDF component manager --- .gitmodules | 4 ---- components/mbedtls/CMakeLists.txt | 3 +-- .../atecc608_ecdsa/components/esp-cryptoauthlib | 1 - 3 files changed, 1 insertion(+), 7 deletions(-) delete mode 160000 examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib diff --git a/.gitmodules b/.gitmodules index 23c0bc2d55..c440cdcc39 100644 --- a/.gitmodules +++ b/.gitmodules @@ -51,10 +51,6 @@ path = components/tinyusb/tinyusb url = ../../espressif/tinyusb.git -[submodule "examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib"] - path = examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib - url = ../../espressif/esp-cryptoauthlib.git - [submodule "components/cmock/CMock"] path = components/cmock/CMock url = ../../ThrowTheSwitch/CMock.git diff --git a/components/mbedtls/CMakeLists.txt b/components/mbedtls/CMakeLists.txt index 51d6331978..eb2ac55173 100644 --- a/components/mbedtls/CMakeLists.txt +++ b/components/mbedtls/CMakeLists.txt @@ -268,6 +268,5 @@ endif() # Link esp-cryptoauthlib to mbedtls if(CONFIG_ATCA_MBEDTLS_ECDSA) - idf_component_get_property(cryptoauthlib esp-cryptoauthlib COMPONENT_LIB) - target_link_libraries(${COMPONENT_LIB} ${linkage_type} ${cryptoauthlib}) + idf_component_optional_requires(PRIVATE espressif__esp-cryptoauthlib esp-cryptoauthlib) endif() diff --git a/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib b/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib deleted file mode 160000 index 985ea960f8..0000000000 --- a/examples/peripherals/secure_element/atecc608_ecdsa/components/esp-cryptoauthlib +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 985ea960f83f67f66881e2dae57097e2a07b92a0