mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 03:34:32 +02:00
spi_flash tests: Fix exclusion of new API tests in legacy mode
This commit is contained in:
committed by
Angus Gratton
parent
894a3b4771
commit
36cd75d7ed
@@ -1,11 +1,15 @@
|
|||||||
set(src_dirs ".")
|
set(src_dirs ".")
|
||||||
|
set(exclude_srcs)
|
||||||
|
|
||||||
if(IDF_TARGET STREQUAL "esp32")
|
if(IDF_TARGET STREQUAL "esp32")
|
||||||
list(APPEND src_dirs "esp32")
|
list(APPEND src_dirs "esp32")
|
||||||
|
if(CONFIG_SPI_FLASH_USE_LEGACY_IMPL)
|
||||||
|
set(exclude_srcs "esp32/test_esp_flash.c" "esp32/test_partition_ext.c")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
idf_component_register(SRC_DIRS ${src_dirs}
|
|
||||||
INCLUDE_DIRS "."
|
|
||||||
REQUIRES unity test_utils spi_flash bootloader_support app_update)
|
|
||||||
|
|
||||||
if(CONFIG_SPI_FLASH_USE_LEGACY_IMPL)
|
idf_component_register(SRC_DIRS ${src_dirs}
|
||||||
set(COMPONENT_SRCEXCLUDE "test_esp_flash.c" "test_partition_ext.c")
|
EXCLUDE_SRCS ${exclude_srcs}
|
||||||
endif()
|
INCLUDE_DIRS "."
|
||||||
|
REQUIRES unity test_utils spi_flash bootloader_support app_update)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user