2019-08-06 09:59:26 +00:00
|
|
|
set(src_dirs ".")
|
2019-10-27 23:32:59 +00:00
|
|
|
set(exclude_srcs)
|
|
|
|
|
2019-08-06 09:59:26 +00:00
|
|
|
if(IDF_TARGET STREQUAL "esp32")
|
|
|
|
list(APPEND src_dirs "esp32")
|
2019-10-27 23:32:59 +00:00
|
|
|
if(CONFIG_SPI_FLASH_USE_LEGACY_IMPL)
|
|
|
|
set(exclude_srcs "esp32/test_esp_flash.c" "esp32/test_partition_ext.c")
|
|
|
|
endif()
|
2019-08-06 09:59:26 +00:00
|
|
|
endif()
|
2019-10-27 23:32:59 +00:00
|
|
|
|
2019-08-06 09:59:26 +00:00
|
|
|
idf_component_register(SRC_DIRS ${src_dirs}
|
2019-10-27 23:32:59 +00:00
|
|
|
EXCLUDE_SRCS ${exclude_srcs}
|
|
|
|
INCLUDE_DIRS "."
|
|
|
|
REQUIRES unity test_utils spi_flash bootloader_support app_update)
|
2019-10-19 06:56:43 +00:00
|
|
|
|