diff --git a/components/bootloader_support/CMakeLists.txt b/components/bootloader_support/CMakeLists.txt index d6520afd1d..bae865dc3b 100644 --- a/components/bootloader_support/CMakeLists.txt +++ b/components/bootloader_support/CMakeLists.txt @@ -65,6 +65,9 @@ if(CONFIG_APP_BUILD_TYPE_APP_2NDBOOT) endif() list(APPEND srcs "src/bootloader_sha.c") +if(CONFIG_ESP_ROM_REV0_HAS_NO_ECDSA_INTERFACE) + list(APPEND srcs "src/${IDF_TARGET}/bootloader_ecdsa.c") +endif() if(BOOTLOADER_BUILD OR CONFIG_APP_BUILD_TYPE_RAM) set(include_dirs "include" "bootloader_flash/include" @@ -82,10 +85,6 @@ if(BOOTLOADER_BUILD OR CONFIG_APP_BUILD_TYPE_RAM) list(APPEND srcs "src/bootloader_utility_tee.c") endif() list(APPEND priv_requires hal) - if(CONFIG_ESP_ROM_REV0_HAS_NO_ECDSA_INTERFACE) - list(APPEND srcs - "src/${IDF_TARGET}/bootloader_ecdsa.c") - endif() else() set(include_dirs "include" "bootloader_flash/include") set(priv_include_dirs "private_include")