1idf_build_get_property(target IDF_TARGET) 2 3# should test arch here not target: IDF-1754 4if("${target}" STREQUAL "esp32c3" OR "${target}" STREQUAL "esp32h2") 5 return() 6endif() 7 8set(srcs "eri.c" "xt_trax.c") 9 10if(NOT BOOTLOADER_BUILD) 11 list(APPEND srcs "xtensa_intr.c" "xtensa_intr_asm.S") 12endif() 13 14idf_component_register(SRCS ${srcs} 15 INCLUDE_DIRS include ${target}/include 16 LDFRAGMENTS linker.lf) 17 18# ZEPHYR: libxt_hal.a not used 19# target_link_libraries(${COMPONENT_LIB} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/${target}/libxt_hal.a") 20