Skip to content

cmake: Renamed rv32 toolchain file to riscv32-unknown-elf-rv32imc.cmake#537

Merged
fdesbiens merged 1 commit into
eclipse-threadx:devfrom
fdesbiens:cmake-riscv32-toolchain
May 27, 2026
Merged

cmake: Renamed rv32 toolchain file to riscv32-unknown-elf-rv32imc.cmake#537
fdesbiens merged 1 commit into
eclipse-threadx:devfrom
fdesbiens:cmake-riscv32-toolchain

Conversation

@fdesbiens

Copy link
Copy Markdown
Contributor

Rename cmake/riscv64-gcc-rv32imc.cmake to the accurate name cmake/riscv32-unknown-elf-rv32imc.cmake and switch the compiler from riscv64-unknown-elf-gcc to riscv32-unknown-elf-gcc.

The riscv-collab riscv64-elf toolchain has no rv32 multilib and will fail to link soft-float and integer helpers (__clzsi2, __muldf3, etc.) when building for -march=rv32imc_zicsr -mabi=ilp32. The dedicated riscv32-unknown-elf-gcc (riscv-collab riscv32-elf release, installed to /opt/riscv by scripts/install_riscv.sh) ships the correct native rv32/ilp32 libgcc — analogous to arm-none-eabi-gcc for Cortex-M.

The old filename is kept as a two-line compatibility alias that includes the new file, so any out-of-tree users who hardcode the old path still work.

Also update:

  • core_v_mcu/build.sh: reference new cmake filename
  • core_v_mcu/README.md: update prerequisites table and toolchain docs

Rename cmake/riscv64-gcc-rv32imc.cmake to the accurate name
cmake/riscv32-unknown-elf-rv32imc.cmake and switch the compiler
from riscv64-unknown-elf-gcc to riscv32-unknown-elf-gcc.

The riscv-collab riscv64-elf toolchain has no rv32 multilib and
will fail to link soft-float and integer helpers (__clzsi2, __muldf3,
etc.) when building for -march=rv32imc_zicsr -mabi=ilp32.  The
dedicated riscv32-unknown-elf-gcc (riscv-collab riscv32-elf release,
installed to /opt/riscv by scripts/install_riscv.sh) ships the correct
native rv32/ilp32 libgcc — analogous to arm-none-eabi-gcc for Cortex-M.

The old filename is kept as a two-line compatibility alias that includes
the new file, so any out-of-tree users who hardcode the old path still work.

Also update:
- core_v_mcu/build.sh: reference new cmake filename
- core_v_mcu/README.md: update prerequisites table and toolchain docs

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@fdesbiens fdesbiens changed the title cmake: rename rv32 toolchain file to riscv32-unknown-elf-rv32imc.cmake cmake: Renamed rv32 toolchain file to riscv32-unknown-elf-rv32imc.cmake May 27, 2026
@fdesbiens fdesbiens merged commit 80cbaad into eclipse-threadx:dev May 27, 2026
1 check passed
@fdesbiens fdesbiens deleted the cmake-riscv32-toolchain branch May 27, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant