esp-idf/components/riscv/CMakeLists.txt

22 lines
598 B
CMake
Raw Normal View History

idf_build_get_property(target IDF_TARGET)
2021-01-22 10:06:37 -05:00
2021-06-28 05:51:48 -04:00
# should test arch here not target: IDF-1754
if(NOT "${target}" STREQUAL "esp32c3" AND NOT "${target}" STREQUAL "esp32h2" AND NOT "${target}" STREQUAL "esp8684")
return()
endif()
2021-01-22 10:06:37 -05:00
if(BOOTLOADER_BUILD)
set(priv_requires soc)
else()
set(priv_requires soc freertos)
set(srcs
"instruction_decode.c"
"interrupt.c"
"vectors.S")
endif()
idf_component_register(SRCS "${srcs}"
LDFRAGMENTS linker.lf
INCLUDE_DIRS "include"
PRIV_REQUIRES ${priv_requires})