CMakeLists.txt 720 B

123456789101112131415161718192021222324252627
  1. idf_build_get_property(target IDF_TARGET)
  2. if(${target} STREQUAL "linux")
  3. return() # This component is not supported by the POSIX/Linux simulator
  4. endif()
  5. set(includes "include")
  6. # Note: requires spi_flash for cache_utils, will be refactored
  7. set(priv_requires heap spi_flash)
  8. set(srcs)
  9. if(NOT CONFIG_APP_BUILD_TYPE_PURE_RAM_APP)
  10. set(srcs "esp_mmu_map.c"
  11. "port/${target}/ext_mem_layout.c"
  12. "esp_cache.c")
  13. if(CONFIG_IDF_TARGET_ESP32)
  14. list(APPEND srcs "cache_esp32.c")
  15. endif()
  16. endif()
  17. idf_component_register(SRCS ${srcs}
  18. INCLUDE_DIRS ${includes}
  19. PRIV_REQUIRES ${priv_requires}
  20. LDFRAGMENTS linker.lf)