mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
27 lines
712 B
CMake
27 lines
712 B
CMake
|
|
if(CONFIG_ELF_LOADER)
|
|
set(srcs "src/esp_elf_symbol.c"
|
|
"src/esp_elf.c"
|
|
"src/esp_elf_adapter.c")
|
|
|
|
if(CONFIG_IDF_TARGET_ARCH_XTENSA)
|
|
list(APPEND srcs "src/arch/esp_elf_xtensa.c")
|
|
|
|
# ESP32-S2 need to set MMU to run ELF
|
|
if(CONFIG_IDF_TARGET_ESP32S2 AND (CONFIG_ELF_LOADER_LOAD_PSRAM))
|
|
list(APPEND srcs "src/soc/esp_elf_esp32s2.c")
|
|
endif()
|
|
endif()
|
|
|
|
set(include_dirs "include")
|
|
endif()
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
INCLUDE_DIRS ${include_dirs}
|
|
PRIV_REQUIRES spi_flash)
|
|
|
|
include(package_manager)
|
|
if(CONFIG_ELF_LOADER)
|
|
cu_pkg_define_version(${CMAKE_CURRENT_LIST_DIR})
|
|
endif()
|