Sign inSign up

felixstau/riscv-gnu-toolchain

By felixstau

•Updated over 6 years ago

A RISC V GNU toolchain docker

Image
0

10K+

felixstau/riscv-gnu-toolchain repository overview

⁠RISC-V GNU Toolchain

A RISC-V GNU toolchain docker container which provides various compilation of different architectures(arch) and application binary interfaces(abi).

⁠Tags

The tags follow the format {ARCH}_{ABI}, however the multilib/latest tag offers both 32bit and 64bit functionality.

⁠Getting Started

These instructions will cover usage information for the docker container.

⁠Prerequisities

In order to run this container you'll need Docker 17.05 or higher installed.

⁠Usage
⁠Container Parameters

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
⁠Environment Variables
  • PATH - The RISC-V toolchain binaries have been added to the PATH
  • RISCV - THE RISCV variable has been set to the corresponding directory
⁠Useful File Locations
  • /opt/riscv - Location of the RISC-V toolchain

⁠Build Parameter

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⁠.

⁠Contributing

Please open an issue at GitHub⁠.

⁠License

This project is licensed under the The Unlicense License - see the LICENSE.md⁠ file for details.

Tag summary

Content type

Image

Digest

Size

345.1 MB

Last updated

over 6 years ago

docker pull felixstau/riscv-gnu-toolchain