mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
xtensa: add TRAX support for esp32s2
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
idf_build_get_property(target IDF_TARGET)
|
||||
|
||||
if(BOOTLOADER_BUILD)
|
||||
# bootloader only needs headers from this component
|
||||
set(priv_requires soc)
|
||||
@@ -6,19 +8,17 @@ else()
|
||||
set(srcs "debug_helpers.c"
|
||||
"debug_helpers_asm.S"
|
||||
"expression_with_stack_xtensa_asm.S"
|
||||
"expression_with_stack_xtensa.c"
|
||||
"expression_with_stack_xtensa.c"
|
||||
"eri.c"
|
||||
"trax.c"
|
||||
"${target}/trax_init.c"
|
||||
)
|
||||
|
||||
if(IDF_TARGET STREQUAL "esp32s2")
|
||||
list(APPEND srcs "stdatomic.c")
|
||||
endif()
|
||||
if(IDF_TARGET STREQUAL "esp32")
|
||||
list(APPEND srcs "trax.c")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
idf_build_get_property(target IDF_TARGET)
|
||||
idf_component_register(SRCS ${srcs}
|
||||
INCLUDE_DIRS include ${target}/include
|
||||
LDFRAGMENTS linker.lf
|
||||
|
||||
Reference in New Issue
Block a user