Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions esp32_toolchain.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()
Expand Down Expand Up @@ -47,4 +47,4 @@ if("${idf_target}" IN_LIST RISCV_TARGETS)
include_directories(
${idf_path}/components/riscv/include
)
endif()
endif()