mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
28e6b3565f
Closes https://github.com/espressif/esp-idf/issues/8879 Closes https://github.com/espressif/esp-idf/issues/8738
20 lines
539 B
CMake
20 lines
539 B
CMake
set(INCLUDE_FILES "include" . include PUBLIC soc)
|
|
|
|
if(CONFIG_IDF_TARGET_ARCH_RISCV)
|
|
list(APPEND INCLUDE_FILES "include/riscv")
|
|
endif()
|
|
|
|
target_include_directories(${COMPONENT_LIB} PRIVATE ${INCLUDE_FILES} include/private)
|
|
|
|
set(srcs "cpu_start.c" "panic_handler.c" "brownout.c")
|
|
if(CONFIG_ESP_CONSOLE_USB_CDC)
|
|
list(APPEND srcs "usb_console.c")
|
|
endif()
|
|
|
|
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
|
|
|
|
target_sources(${COMPONENT_LIB} PRIVATE ${srcs})
|
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
add_subdirectory(soc/${target})
|