2020-11-06 04:03:03 +00:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
if(NOT "${target}" STREQUAL "esp32c3")
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
if(BOOTLOADER_BUILD)
|
|
|
|
set(priv_requires soc)
|
|
|
|
else()
|
|
|
|
set(priv_requires soc freertos)
|
|
|
|
set(srcs
|
2020-11-17 19:37:28 +00:00
|
|
|
"expression_with_stack_riscv.c"
|
|
|
|
"expression_with_stack_riscv_asm.S"
|
2020-12-30 05:27:00 +00:00
|
|
|
"instruction_decode.c"
|
|
|
|
"interrupt.c"
|
|
|
|
"stdatomic.c"
|
2020-11-06 04:03:03 +00:00
|
|
|
"vectors.S")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
|
|
LDFRAGMENTS linker.lf
|
|
|
|
INCLUDE_DIRS "include"
|
|
|
|
PRIV_REQUIRES ${priv_requires})
|