Skip to content

FelixStau/riscv-gnu-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Find Us

Contributing

Please open an issue at GitHub.

Authors

License

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

About

RISC V GNU tollchain docker container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors