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         )
15add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
16
17target_sources(${COMPONENT_LIB} PRIVATE ${srcs})
18if(CONFIG_ESP_CONSOLE_USB_CDC)
19    target_sources(${COMPONENT_LIB} PRIVATE "${CMAKE_CURRENT_LIST_DIR}/usb_console.c")
20endif()
21
22#ld_include_highint_hdl is added as an undefined symbol because otherwise the
23#linker will ignore highint_hdl.S as it has no other files depending on any
24#symbols in it.
25set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-u ld_include_highint_hdl")
26