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:latestYou can map your project within the container to compile your sources.
docker run -ti -v "$(pwd)"/my/project:/project felixstau/riscv-gnu-toolchain:latestPATH- 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 toolchain
The Dockerfile provides two build paremeter with which the compilation process of the toolchain can be customized.
- ARCH - Specifies the architecture
- ABI - Specifies the binary aplication interfaces
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.