2020-12-13 22:10:29 -05:00
|
|
|
|
set(srcs "src/core_dump_common.c"
|
|
|
|
|
"src/core_dump_checksum.c"
|
|
|
|
|
"src/core_dump_flash.c"
|
|
|
|
|
"src/core_dump_uart.c"
|
|
|
|
|
"src/core_dump_elf.c"
|
|
|
|
|
"src/core_dump_binary.c")
|
|
|
|
|
|
|
|
|
|
set(priv_includes "include_core_dump")
|
|
|
|
|
|
|
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
|
|
|
|
if(CONFIG_IDF_TARGET_ARCH_XTENSA)
|
|
|
|
|
set(srcs ${srcs} "src/port/xtensa/core_dump_port.c")
|
|
|
|
|
set(priv_includes ${priv_includes} "include_core_dump/port/xtensa")
|
|
|
|
|
elseif(CONFIG_IDF_TARGET_ARCH_RISCV)
|
|
|
|
|
set(srcs ${srcs} "src/port/riscv/core_dump_port.c")
|
|
|
|
|
set(priv_includes ${priv_includes} "include_core_dump/port/riscv")
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
idf_component_register(SRCS ${srcs}
|
2019-06-21 02:29:32 -04:00
|
|
|
|
INCLUDE_DIRS "include"
|
2020-12-13 22:10:29 -05:00
|
|
|
|
PRIV_INCLUDE_DIRS ${priv_includes}
|
2019-06-21 02:29:32 -04:00
|
|
|
|
LDFRAGMENTS linker.lf
|
2019-11-22 00:25:43 -05:00
|
|
|
|
PRIV_REQUIRES spi_flash app_update mbedtls esp_rom soc)
|