2020-11-06 04:03:03 +00:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
2021-01-22 15:06:37 +00:00
|
|
|
|
2021-06-28 09:51:48 +00:00
|
|
|
# should test arch here not target: IDF-1754
|
2021-11-06 09:25:49 +00:00
|
|
|
if(NOT "${target}" STREQUAL "esp32c3" AND NOT "${target}" STREQUAL "esp32h2" AND NOT "${target}" STREQUAL "esp8684")
|
2020-11-06 04:03:03 +00:00
|
|
|
return()
|
|
|
|
endif()
|
2021-01-22 15:06:37 +00:00
|
|
|
|
2020-11-06 04:03:03 +00:00
|
|
|
if(BOOTLOADER_BUILD)
|
|
|
|
set(priv_requires soc)
|
|
|
|
else()
|
|
|
|
set(priv_requires soc freertos)
|
|
|
|
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")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
|
|
LDFRAGMENTS linker.lf
|
|
|
|
INCLUDE_DIRS "include"
|
|
|
|
PRIV_REQUIRES ${priv_requires})
|