2020-02-19 11:31:54 +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-06-08 08:11:35 +00:00
|
|
|
if("${target}" STREQUAL "esp32c3" OR "${target}" STREQUAL "esp32h2")
|
2020-12-22 08:51:37 +00:00
|
|
|
return()
|
|
|
|
endif()
|
2021-01-22 15:06:37 +00: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 06:29:43 +00:00
|
|
|
endif()
|
2019-03-25 13:11:53 +00:00
|
|
|
|
2019-08-08 03:44:24 +00:00
|
|
|
idf_component_register(SRCS ${srcs}
|
2019-04-28 07:38:23 +00:00
|
|
|
INCLUDE_DIRS include ${target}/include
|
2021-01-22 15:06:37 +00:00
|
|
|
LDFRAGMENTS linker.lf)
|
2019-03-25 13:11:53 +00:00
|
|
|
|
2021-06-11 08:30:22 +00:00
|
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/${target}/libxt_hal.a")
|