esp-idf/components/riscv/CMakeLists.txt

29 wiersze
656 B
CMake
Czysty Zwykły widok Historia

idf_build_get_property(target IDF_TARGET)
idf_build_get_property(arch IDF_TARGET_ARCH)
2021-01-22 15:06:37 +00:00
if(NOT "${arch}" STREQUAL "riscv")
return()
endif()
2021-01-22 15:06:37 +00:00
if(BOOTLOADER_BUILD)
set(priv_requires soc)
else()
set(priv_requires soc)
set(srcs
"instruction_decode.c"
"interrupt.c"
"vectors.S")
if(CONFIG_SOC_INT_CLIC_SUPPORTED)
list(APPEND srcs "vectors_clic.S")
else()
list(APPEND srcs "vectors_intc.S")
endif()
endif()
idf_component_register(SRCS "${srcs}"
LDFRAGMENTS linker.lf
INCLUDE_DIRS "include"
PRIV_REQUIRES ${priv_requires})