kopia lustrzana https://github.com/espressif/esp-idf
34 wiersze
1.2 KiB
CMake
34 wiersze
1.2 KiB
CMake
set(srcs "highint_hdl.S"
|
|
"clk.c"
|
|
"reset_reason.c"
|
|
"system_internal.c"
|
|
"cache_err_int.c"
|
|
"apb_backup_dma.c"
|
|
"../../arch/xtensa/panic_arch.c"
|
|
"../../arch/xtensa/panic_handler_asm.S"
|
|
"../../arch/xtensa/expression_with_stack.c"
|
|
"../../arch/xtensa/expression_with_stack_asm.S"
|
|
"../../arch/xtensa/debug_helpers.c"
|
|
"../../arch/xtensa/debug_helpers_asm.S"
|
|
"../../arch/xtensa/debug_stubs.c"
|
|
"../../arch/xtensa/trax.c"
|
|
)
|
|
|
|
if(CONFIG_ESP_IPC_ISR_ENABLE)
|
|
list(APPEND srcs "../../arch/xtensa/esp_ipc_isr.c"
|
|
"../../arch/xtensa/esp_ipc_isr_handler.S"
|
|
"../../arch/xtensa/esp_ipc_isr_routines.S")
|
|
endif()
|
|
|
|
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
|
|
|
|
target_sources(${COMPONENT_LIB} PRIVATE ${srcs})
|
|
if(CONFIG_ESP_CONSOLE_USB_CDC)
|
|
target_sources(${COMPONENT_LIB} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/usb_console.c")
|
|
endif()
|
|
|
|
#ld_include_highint_hdl is added as an undefined symbol because otherwise the
|
|
#linker will ignore panic_highint_hdl.S as it has no other files depending on any
|
|
#symbols in it.
|
|
set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-u ld_include_highint_hdl")
|