1set(srcs "dport_panic_highint_hdl.S"
2         "clk.c"
3         "reset_reason.c"
4         "../../async_memcpy_impl_gdma.c"
5         "../../arch/xtensa/panic_arch.c"
6         "../../arch/xtensa/panic_handler_asm.S"
7         )
8add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
9
10target_sources(${COMPONENT_LIB} PRIVATE ${srcs})
11
12#ld_include_panic_highint_hdl is added as an undefined symbol because otherwise the
13#linker will ignore panic_highint_hdl.S as it has no other files depending on any
14#symbols in it.
15set_property(TARGET ${COMPONENT_LIB} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-u ld_include_panic_highint_hdl")
16