From c046d5b3b0436a2900fafa2ded4fd23de2fc2278 Mon Sep 17 00:00:00 2001 From: John Gentilin Date: Sun, 28 Jun 2026 00:27:54 +0000 Subject: [PATCH] Added support for C5, C6. C3 --- esp32_toolchain.cmake.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esp32_toolchain.cmake.in b/esp32_toolchain.cmake.in index ea73b4de..9bd260a2 100644 --- a/esp32_toolchain.cmake.in +++ b/esp32_toolchain.cmake.in @@ -5,7 +5,7 @@ set(CMAKE_SYSTEM_NAME Generic) set(idf_target "@IDF_TARGET@") set(idf_path "@IDF_PATH@") -set(RISCV_TARGETS "esp32c3" "esp32c6" "esp32p4") +set(RISCV_TARGETS "esp32c3" "esp32c5" "esp32c6" "esp32p4") set(RISCV_HARD_FLOAT_TARGETS "esp32p4") if("${idf_target}" IN_LIST RISCV_TARGETS) @@ -14,7 +14,7 @@ if("${idf_target}" IN_LIST RISCV_TARGETS) # ESP32-P4 uses hardware floating point set(FLAGS "-march=rv32imafc -mabi=ilp32f -ffunction-sections -fdata-sections" CACHE STRING "" FORCE) else() - # ESP32-C3/C6 use soft-float + # ESP32-C3/C5/C6 use soft-float set(FLAGS "-ffunction-sections -fdata-sections" CACHE STRING "" FORCE) endif() else() @@ -47,4 +47,4 @@ if("${idf_target}" IN_LIST RISCV_TARGETS) include_directories( ${idf_path}/components/riscv/include ) -endif() \ No newline at end of file +endif()