1idf_build_get_property(target IDF_TARGET)
2
3set(includes "include")
4
5# Note: requires spi_flash for cache_utils, will be refactored
6set(priv_requires heap spi_flash)
7
8set(srcs)
9
10if(NOT CONFIG_APP_BUILD_TYPE_PURE_RAM_APP)
11    set(srcs "esp_mmu_map.c"
12             "port/${target}/ext_mem_layout.c"
13             "esp_cache.c")
14
15    if(CONFIG_IDF_TARGET_ESP32)
16        list(APPEND srcs "cache_esp32.c")
17    endif()
18endif()
19
20idf_component_register(SRCS ${srcs}
21                       INCLUDE_DIRS ${includes}
22                       PRIV_REQUIRES ${priv_requires}
23                       LDFRAGMENTS linker.lf)
24