forked from espressif/esp-idf
esp32c2: fix gcov example build
This commit is contained in:
@@ -26,10 +26,6 @@ else()
|
|||||||
"xt_wdt.c"
|
"xt_wdt.c"
|
||||||
"debug_stubs.c")
|
"debug_stubs.c")
|
||||||
|
|
||||||
if(NOT (${target} STREQUAL "esp32c2"))
|
|
||||||
list(APPEND srcs "debug_stubs.c")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(CONFIG_ESP_SYSTEM_USE_EH_FRAME)
|
if(CONFIG_ESP_SYSTEM_USE_EH_FRAME)
|
||||||
list(APPEND srcs "eh_frame_parser.c")
|
list(APPEND srcs "eh_frame_parser.c")
|
||||||
endif()
|
endif()
|
||||||
|
@@ -4,7 +4,9 @@ set(srcs "clk.c"
|
|||||||
"cache_err_int.c"
|
"cache_err_int.c"
|
||||||
"../../arch/riscv/expression_with_stack.c"
|
"../../arch/riscv/expression_with_stack.c"
|
||||||
"../../arch/riscv/expression_with_stack_asm.S"
|
"../../arch/riscv/expression_with_stack_asm.S"
|
||||||
"../../arch/riscv/panic_arch.c")
|
"../../arch/riscv/panic_arch.c"
|
||||||
|
"../../arch/riscv/debug_stubs.c")
|
||||||
|
|
||||||
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
|
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
|
||||||
|
|
||||||
target_sources(${COMPONENT_LIB} PRIVATE ${srcs})
|
target_sources(${COMPONENT_LIB} PRIVATE ${srcs})
|
||||||
|
Reference in New Issue
Block a user