1idf_build_get_property(target IDF_TARGET)
2idf_build_get_property(arch IDF_TARGET_ARCH)
3
4if(NOT "${arch}" STREQUAL "riscv")
5    return()
6endif()
7
8
9if(BOOTLOADER_BUILD)
10    set(priv_requires soc)
11else()
12    set(priv_requires soc)
13    set(srcs
14        "instruction_decode.c"
15        "interrupt.c"
16        "vectors.S")
17endif()
18
19idf_component_register(SRCS "${srcs}"
20                       LDFRAGMENTS linker.lf
21                       INCLUDE_DIRS "include"
22                       PRIV_REQUIRES ${priv_requires})
23