CMakeLists.txt 559 B

123456789101112131415161718192021
  1. idf_build_get_property(target IDF_TARGET)
  2. # should test arch here not target: IDF-1754
  3. if(NOT "${target}" STREQUAL "esp32c3" AND NOT "${target}" STREQUAL "esp32h2")
  4. return()
  5. endif()
  6. if(BOOTLOADER_BUILD)
  7. set(priv_requires soc)
  8. else()
  9. set(priv_requires soc freertos)
  10. set(srcs
  11. "instruction_decode.c"
  12. "interrupt.c"
  13. "vectors.S")
  14. endif()
  15. idf_component_register(SRCS "${srcs}"
  16. LDFRAGMENTS linker.lf
  17. INCLUDE_DIRS "include"
  18. PRIV_REQUIRES ${priv_requires})