esp-idf/components/esp_system/port/CMakeLists.txt

25 lines
620 B
CMake
Raw Normal View History

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)
2023-01-03 05:58:29 -05:00
set(srcs "cpu_start.c" "panic_handler.c" "esp_system_chip.c")
if(CONFIG_SOC_BOD_SUPPORTED)
list(APPEND srcs "brownout.c")
endif()
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)
2020-10-08 01:18:16 -04:00
add_subdirectory(soc/${target})