diff --git a/components/spi_flash/test/CMakeLists.txt b/components/spi_flash/test/CMakeLists.txt index 831e142120..7c5bc7fe89 100644 --- a/components/spi_flash/test/CMakeLists.txt +++ b/components/spi_flash/test/CMakeLists.txt @@ -1,7 +1,4 @@ idf_component_register(SRC_DIRS "." INCLUDE_DIRS "." + EXCLUDE_SRCS "test_esp_flash.c" "test_partition_ext.c" REQUIRES unity test_utils spi_flash bootloader_support app_update) - -if(CONFIG_SPI_FLASH_USE_LEGACY_IMPL) - set(COMPONENT_SRCEXCLUDE "test_esp_flash.c" "test_partition_ext.c") -endif()