The RV32M1 GNU toolchain is based on the pulp-riscv-gnu-toolchain. This repo contains the patches for RV32M1. For easy use, a script apply_rv32m1_patches.sh is provided to help applying the patch.
- Clone the pulp-riscv-gnu-toolchain to your local computer, for example, in the folder pulp-riscv-gnu-toolchain
- Copy rv32m1_patches and apply_rv32m1_patches.sh to the folder pulp-riscv-gnu-toolchain.
- Run the script apply_rv32m1_patches.sh in the folder pulp-riscv-gnu-toolchain.
- Follow the build instructions in rv32m1_sdk_riscv to build the toolchain.