A RISC V GNU toolchain docker
10K+
A RISC-V GNU toolchain docker container which provides various compilation of different architectures(arch) and application binary interfaces(abi).
The tags follow the format {ARCH}_{ABI}, however the multilib/latest tag offers both 32bit and 64bit functionality.
These instructions will cover usage information for the docker container.
In order to run this container you'll need Docker 17.05 or higher installed.
Simple run the container to get a shell.
docker run -ti felixstau/riscv-gnu-toolchain:latest
You can map your project within the container to compile your sources.
docker run -ti -v "$(pwd)"/my/project:/project felixstau/riscv-gnu-toolchain:latest
PATH - The RISC-V toolchain binaries have been added to the PATHRISCV - THE RISCV variable has been set to the corresponding directory/opt/riscv - Location of the RISC-V toolchainThe Dockerfile provides two build paremeter with which the compilation process of the toolchain can be customized.
The variables can be set through the docker build command.
docker build \
--tag someTag \
--build-arg ARCH=someArch \
--build-arg ABI=someABI \
.
All possible combinations are documented in the RISC-V GNU Toolchain REAMDE.md.
Please open an issue at GitHub.
This project is licensed under the The Unlicense License - see the LICENSE.md file for details.
Content type
Image
Digest
Size
345.1 MB
Last updated
over 6 years ago
docker pull felixstau/riscv-gnu-toolchain