xtensa: add TRAX support for esp32s2

This commit is contained in:
Ivan Grokhotkov
2020-02-19 14:02:14 +01:00
parent 32ea031b19
commit 8fec484d2b
5 changed files with 101 additions and 37 deletions
+5 -5
View File
@@ -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