2020-11-06 04:03:03 +00:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
2022-05-17 07:13:30 +00:00
|
|
|
idf_build_get_property(arch IDF_TARGET_ARCH)
|
2021-01-22 15:06:37 +00:00
|
|
|
|
2022-05-17 07:13:30 +00:00
|
|
|
if(NOT "${arch}" STREQUAL "riscv")
|
2020-11-06 04:03:03 +00:00
|
|
|
return()
|
|
|
|
endif()
|
2021-01-22 15:06:37 +00:00
|
|
|
|
2022-05-17 07:13:30 +00:00
|
|
|
|
2020-11-06 04:03:03 +00:00
|
|
|
if(BOOTLOADER_BUILD)
|
|
|
|
set(priv_requires soc)
|
|
|
|
else()
|
2022-04-27 03:37:08 +00:00
|
|
|
set(priv_requires soc)
|
2020-11-06 04:03:03 +00:00
|
|
|
set(srcs
|
2020-12-30 05:27:00 +00:00
|
|
|
"instruction_decode.c"
|
|
|
|
"interrupt.c"
|
2020-11-06 04:03:03 +00:00
|
|
|
"vectors.S")
|
2023-08-14 07:44:24 +00:00
|
|
|
|
|
|
|
if(CONFIG_SOC_INT_CLIC_SUPPORTED)
|
|
|
|
list(APPEND srcs "vectors_clic.S")
|
|
|
|
else()
|
|
|
|
list(APPEND srcs "vectors_intc.S")
|
|
|
|
endif()
|
2020-11-06 04:03:03 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
|
|
LDFRAGMENTS linker.lf
|
|
|
|
INCLUDE_DIRS "include"
|
|
|
|
PRIV_REQUIRES ${priv_requires})
|