This repository contains tools to create toolchains for lowRISC internal use. The toolchains are not supported by lowRISC or recommended to be used outside of lowRISC.
Head over to the GitHub releases for this repository for pre-built toolchains.
- A GCC RV32IMC without hardfloat support, targeting Ibex
- A GCC RV64IMAC, targeting Muntjac
- A GCC elf multilib toolchain
- A GCC linux multilib toolchain
-
Modify any of the following variables to configure the build:
CROSSTOOL_NG_VERSION
ininstall-crosstool-ng.sh
-
Modify any of the
*.config
files to update the crosstool-ng configurations for a particular toolchain. -
Push the changes or do a pull request, and wait for the pipeline to complete.
The build can be tested by downloading the Azure Pipeline artifacts.
- Go to the lowrisc-toolchains Azure Pipelines page
- Select a build
- Click on "Artifacts" (top right)
- Download the desired artifact, and test it.
-
Tag a release
VERSION=$(date +%Y%m%d)-1 git tag -a -m "Release version $VERSION" $VERSION
-
Push the tag
git push origin $VERSION
Now the release builds on Azure Pipelines, and the resulting binaries will be uploaded to GitHub releases.
git clone https://github.com/riscv-collab/riscv-binutils-gdb.git
cd riscv-binutils-gdb
# checkout Pirmin's bitmanip 1.00+0.93 PR (https://github.com/riscv-collab/riscv-binutils-gdb/pull/267)
gh pr checkout 267
# 7c9dd840 (riscv-binutils-2.35-rvb) is our baseline
git diff 7c9dd840 > $TOP/patches/lowrisc-toolchain-gcc-rv32imcb/binutils/git-7c9dd840/001-bitmanip.patch