esp-idf/components/xtensa/CMakeLists.txt

19 lines
574 B
CMake
Raw Normal View History

2020-02-19 06:31:54 -05:00
idf_build_get_property(target IDF_TARGET)
2021-01-22 10:06:37 -05:00
2021-06-28 05:51:48 -04:00
# should test arch here not target: IDF-1754
2022-01-17 21:32:56 -05:00
if("${target}" STREQUAL "esp32c3" OR "${target}" STREQUAL "esp32h2" OR "${target}" STREQUAL "esp32c2")
2020-12-22 03:51:37 -05:00
return()
endif()
2021-01-22 10:06:37 -05:00
set(srcs "eri.c" "xt_trax.c")
if(NOT BOOTLOADER_BUILD)
list(APPEND srcs "xtensa_intr.c" "xtensa_intr_asm.S")
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS include ${target}/include
2021-01-22 10:06:37 -05:00
LDFRAGMENTS linker.lf)
2021-06-11 04:30:22 -04:00
target_link_libraries(${COMPONENT_LIB} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/${target}/libxt_hal.a")