2019-06-13 12:43:49 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
2020-11-26 00:38:09 -05:00
|
|
|
idf_component_register(SRCS "src/gdbstub.c" "src/packet.c"
|
|
|
|
INCLUDE_DIRS "include"
|
2020-11-05 23:00:07 -05:00
|
|
|
PRIV_INCLUDE_DIRS "private_include"
|
2019-06-13 12:43:49 -04:00
|
|
|
LDFRAGMENTS "linker.lf"
|
|
|
|
REQUIRES "freertos"
|
2020-11-26 00:38:09 -05:00
|
|
|
PRIV_REQUIRES "soc" "esp_rom")
|
|
|
|
|
|
|
|
if(CONFIG_IDF_TARGET_ARCH_XTENSA)
|
|
|
|
target_include_directories(${COMPONENT_LIB} PUBLIC "xtensa" "${target}")
|
|
|
|
target_sources(${COMPONENT_LIB} PRIVATE "xtensa/gdbstub_xtensa.c" "${target}/gdbstub_${target}.c")
|
|
|
|
elseif(CONFIG_IDF_TARGET_ARCH_RISCV)
|
|
|
|
target_include_directories(${COMPONENT_LIB} PUBLIC "riscv" "${target}")
|
|
|
|
target_sources(${COMPONENT_LIB} PRIVATE "riscv/gdbstub_riscv.c" "${target}/gdbstub_${target}.c")
|
|
|
|
endif()
|