From 4955a199a8b15e84f294f031b23bef8d7ebd48f8 Mon Sep 17 00:00:00 2001 From: Jiang Guang Ming Date: Fri, 30 Aug 2024 15:55:31 +0800 Subject: [PATCH] feat(esp_rom): include rom.mbedtls.eco4.ld with C2 rev2.0(ECO4) select --- components/esp_rom/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/esp_rom/CMakeLists.txt b/components/esp_rom/CMakeLists.txt index 3ac826901e..54b9ab6a66 100644 --- a/components/esp_rom/CMakeLists.txt +++ b/components/esp_rom/CMakeLists.txt @@ -247,6 +247,10 @@ else() # Regular app build if(CONFIG_MBEDTLS_USE_CRYPTO_ROM_IMPL) rom_linker_script("mbedtls") + # For ESP32C2(ECO4), mbedTLS in ROM has been updated to v3.6.0-LTS + if(CONFIG_ESP32C2_REV_MIN_FULL GREATER_EQUAL 200) + rom_linker_script("mbedtls.eco4") + endif() endif() if(CONFIG_IDF_TARGET_ARCH_XTENSA)