esp-idf/components/xtensa/CMakeLists.txt

31 lines
898 B
CMake
Raw Normal View History

2020-02-19 06:31:54 -05:00
idf_build_get_property(target IDF_TARGET)
2020-12-22 03:51:37 -05:00
if(${target} STREQUAL "esp32c3")
return()
endif()
if(BOOTLOADER_BUILD)
# bootloader only needs headers from this component
set(priv_requires soc)
else()
set(priv_requires soc freertos)
set(srcs "debug_helpers.c"
"debug_helpers_asm.S"
2020-02-19 06:31:54 -05:00
"expression_with_stack_xtensa.c"
"expression_with_stack_xtensa_asm.S"
2019-08-09 01:26:49 -04:00
"eri.c"
2020-02-19 06:31:54 -05:00
"trax.c"
"xtensa_intr.c"
"xtensa_intr_asm.S"
2020-02-19 06:31:54 -05:00
"${target}/trax_init.c"
)
endif()
idf_component_register(SRCS ${srcs}
INCLUDE_DIRS include ${target}/include
LDFRAGMENTS linker.lf
PRIV_REQUIRES ${priv_requires})
if(NOT BOOTLOADER_BUILD)
target_link_libraries(${COMPONENT_LIB} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/${target}/libxt_hal.a")
endif()