mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
feat(esp-system): moved common arch files out to common cmakelist
This commit is contained in:
parent
cff1631ac7
commit
73954ab9e8
@ -16,6 +16,29 @@ if(CONFIG_ESP_CONSOLE_USB_CDC)
|
||||
list(APPEND srcs "usb_console.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_ESP_IPC_ISR_ENABLE)
|
||||
if(CONFIG_IDF_TARGET_ARCH_XTENSA)
|
||||
list(APPEND srcs "arch/xtensa/esp_ipc_isr.c"
|
||||
"arch/xtensa/esp_ipc_isr_handler.S"
|
||||
"arch/xtensa/esp_ipc_isr_routines.S")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CONFIG_IDF_TARGET_ARCH_XTENSA)
|
||||
list(APPEND srcs "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")
|
||||
elseif(CONFIG_IDF_TARGET_ARCH_RISCV)
|
||||
list(APPEND srcs "arch/riscv/expression_with_stack.c"
|
||||
"arch/riscv/panic_arch.c"
|
||||
"arch/riscv/debug_stubs.c")
|
||||
endif()
|
||||
|
||||
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
|
||||
|
||||
target_sources(${COMPONENT_LIB} PRIVATE ${srcs})
|
||||
|
@ -2,22 +2,7 @@ set(srcs "highint_hdl.S"
|
||||
"clk.c"
|
||||
"reset_reason.c"
|
||||
"system_internal.c"
|
||||
"cache_err_int.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()
|
||||
"cache_err_int.c")
|
||||
|
||||
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
set(srcs "clk.c"
|
||||
"reset_reason.c"
|
||||
"system_internal.c"
|
||||
"cache_err_int.c"
|
||||
"../../arch/riscv/expression_with_stack.c"
|
||||
"../../arch/riscv/panic_arch.c"
|
||||
"../../arch/riscv/debug_stubs.c")
|
||||
"cache_err_int.c")
|
||||
|
||||
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
|
||||
|
||||
|
@ -2,10 +2,7 @@ set(srcs "clk.c"
|
||||
"reset_reason.c"
|
||||
"system_internal.c"
|
||||
"cache_err_int.c"
|
||||
"apb_backup_dma.c"
|
||||
"../../arch/riscv/expression_with_stack.c"
|
||||
"../../arch/riscv/panic_arch.c"
|
||||
"../../arch/riscv/debug_stubs.c")
|
||||
"apb_backup_dma.c")
|
||||
|
||||
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
set(srcs "clk.c"
|
||||
"reset_reason.c"
|
||||
"system_internal.c"
|
||||
"cache_err_int.c"
|
||||
"../../arch/riscv/expression_with_stack.c"
|
||||
"../../arch/riscv/panic_arch.c"
|
||||
"../../arch/riscv/debug_stubs.c")
|
||||
"cache_err_int.c")
|
||||
|
||||
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
|
||||
|
||||
|
@ -2,10 +2,7 @@ set(srcs
|
||||
"clk.c"
|
||||
"reset_reason.c"
|
||||
"system_internal.c"
|
||||
"cache_err_int.c"
|
||||
"../../arch/riscv/expression_with_stack.c"
|
||||
"../../arch/riscv/panic_arch.c"
|
||||
"../../arch/riscv/debug_stubs.c")
|
||||
"cache_err_int.c")
|
||||
|
||||
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
|
||||
|
||||
|
@ -1,10 +1,7 @@
|
||||
set(srcs "clk.c"
|
||||
"reset_reason.c"
|
||||
"system_internal.c"
|
||||
"cache_err_int.c"
|
||||
"../../arch/riscv/expression_with_stack.c"
|
||||
"../../arch/riscv/panic_arch.c"
|
||||
"../../arch/riscv/debug_stubs.c")
|
||||
"cache_err_int.c")
|
||||
|
||||
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
|
||||
|
||||
|
@ -2,22 +2,7 @@ set(srcs "highint_hdl.S"
|
||||
"clk.c"
|
||||
"reset_reason.c"
|
||||
"system_internal.c"
|
||||
"cache_err_int.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()
|
||||
"cache_err_int.c")
|
||||
|
||||
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
|
||||
|
||||
|
@ -3,22 +3,7 @@ set(srcs "highint_hdl.S"
|
||||
"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()
|
||||
"apb_backup_dma.c")
|
||||
|
||||
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user