mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
18 lines
495 B
CMake
18 lines
495 B
CMake
idf_build_get_property(target IDF_TARGET)
|
|
|
|
if("${target}" STREQUAL "esp32c3" OR "${target}" STREQUAL "esp32h2")
|
|
return()
|
|
endif()
|
|
|
|
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
|
|
LDFRAGMENTS linker.lf)
|
|
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/${target}/libxt_hal.a")
|