1set(srcs "highint_hdl.S" 2 "clk.c" 3 "reset_reason.c" 4 "system_internal.c" 5 "cache_err_int.c" 6 "../../arch/xtensa/panic_arch.c" 7 "../../arch/xtensa/panic_handler_asm.S" 8 "../../arch/xtensa/expression_with_stack.c" 9 "../../arch/xtensa/expression_with_stack_asm.S" 10 "../../arch/xtensa/debug_helpers.c" 11 "../../arch/xtensa/debug_helpers_asm.S" 12 "../../arch/xtensa/debug_stubs.c" 13 "../../arch/xtensa/trax.c" 14 ) 15 16if(CONFIG_ESP_IPC_ISR_ENABLE) 17 list(APPEND srcs "../../arch/xtensa/esp_ipc_isr.c" 18 "../../arch/xtensa/esp_ipc_isr_handler.S" 19 "../../arch/xtensa/esp_ipc_isr_routines.S") 20endif() 21 22add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs}) 23 24target_sources(${COMPONENT_LIB} PRIVATE ${srcs}) 25 26#ld_include_highint_hdl is added as an undefined symbol because otherwise the 27#linker will ignore panic_highint_hdl.S as it has no other files depending on any 28#symbols in it. 29set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-u ld_include_highint_hdl") 30