2021-02-07 07:03:51 +00:00
|
|
|
set(INCLUDE_FILES "include" . include PUBLIC soc)
|
|
|
|
|
|
|
|
if(CONFIG_IDF_TARGET_ARCH_RISCV)
|
|
|
|
list(APPEND INCLUDE_FILES "include/riscv")
|
|
|
|
endif()
|
|
|
|
|
2021-11-23 12:11:33 +00:00
|
|
|
target_include_directories(${COMPONENT_LIB} PRIVATE ${INCLUDE_FILES} include/private)
|
2020-02-02 15:23:16 +00:00
|
|
|
|
2021-02-20 09:52:30 +00:00
|
|
|
set(srcs "cpu_start.c" "panic_handler.c" "brownout.c")
|
2020-02-02 15:23:16 +00:00
|
|
|
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" ${srcs})
|
|
|
|
|
|
|
|
target_sources(${COMPONENT_LIB} PRIVATE ${srcs})
|
|
|
|
|
|
|
|
idf_build_get_property(target IDF_TARGET)
|
2020-10-08 05:18:16 +00:00
|
|
|
add_subdirectory(soc/${target})
|