2020-02-19 12:31:54 +01:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
2021-01-22 23:06:37 +08:00
|
|
|
|
2021-06-28 17:51:48 +08:00
|
|
|
# should test arch here not target: IDF-1754
|
2021-06-08 16:11:35 +08:00
|
|
|
if("${target}" STREQUAL "esp32c3" OR "${target}" STREQUAL "esp32h2")
|
2020-12-22 19:51:37 +11:00
|
|
|
return()
|
|
|
|
endif()
|
2021-01-22 23:06:37 +08:00
|
|
|
|
|
|
|
set(srcs "eri.c" "xt_trax.c")
|
|
|
|
|
|
|
|
if(NOT BOOTLOADER_BUILD)
|
|
|
|
list(APPEND srcs "xtensa_intr.c" "xtensa_intr_asm.S")
|
2019-05-27 14:29:43 +08:00
|
|
|
endif()
|
2019-03-25 21:11:53 +08:00
|
|
|
|
2019-08-08 13:44:24 +10:00
|
|
|
idf_component_register(SRCS ${srcs}
|
2019-04-28 15:38:23 +08:00
|
|
|
INCLUDE_DIRS include ${target}/include
|
2021-01-22 23:06:37 +08:00
|
|
|
LDFRAGMENTS linker.lf)
|
2019-03-25 21:11:53 +08:00
|
|
|
|
2021-06-11 16:30:22 +08:00
|
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/${target}/libxt_hal.a")
|