2021-02-07 02:03:51 -05:00
|
|
|
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})
|
2021-03-10 08:55:49 -05:00
|
|
|
target_include_directories(${COMPONENT_LIB} PUBLIC public_compat)
|
2020-02-02 10:23:16 -05:00
|
|
|
|
2021-02-20 04:52:30 -05:00
|
|
|
set(srcs "cpu_start.c" "panic_handler.c" "brownout.c")
|
2020-02-02 10:23:16 -05: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 01:18:16 -04:00
|
|
|
add_subdirectory(soc/${target})
|