esp-idf/components/xtensa/CMakeLists.txt

17 wiersze
460 B
CMake
Czysty Zwykły widok Historia

2020-02-19 11:31:54 +00:00
idf_build_get_property(target IDF_TARGET)
2021-01-22 15:06:37 +00:00
if("${target}" STREQUAL "esp32c3")
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")
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS include ${target}/include
2021-01-22 15:06:37 +00:00
LDFRAGMENTS linker.lf)
2021-01-22 15:06:37 +00:00
target_link_libraries(${COMPONENT_LIB} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/${target}/libxt_hal.a")