1idf_build_get_property(target IDF_TARGET) 2 3# should test arch here not target: IDF-1754 4if(NOT "${target}" STREQUAL "esp32c3" AND NOT "${target}" STREQUAL "esp32h2") 5 return() 6endif() 7 8if(BOOTLOADER_BUILD) 9 set(priv_requires soc) 10else() 11 set(priv_requires soc freertos) 12 set(srcs 13 "instruction_decode.c" 14 "interrupt.c" 15 "vectors.S") 16endif() 17 18idf_component_register(SRCS "${srcs}" 19 LDFRAGMENTS linker.lf 20 INCLUDE_DIRS "include" 21 PRIV_REQUIRES ${priv_requires}) 22