Skip to content

siddartham/riscv-toolchain-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

riscv-toolchain-docker

A straightforward dockerfile to get the risc-v toolchain built for all possible abi/arch configurations. Includes a script to generate a bin directory that can be added to your path, with a wrapper script for each of the gcc commands that calls into docker with the current working directory mapped.

RISC-V toolchain setup is not always trivial. Thus packaged the RISC-V toolchain into a docker image. Running make inside docker, opens this project up inside docker container, which has RISC-V toolchain, and build the project. A good way to make sure, its reproducible.

How To Use

1. Build docker image locally.

Clone the riscv-gnu-toolchain repo, locally and run the following command from the root of the repo.

git clone https://github.com/riscv/riscv-gnu-toolchain --recursive --depth 1 /riscv/

Once the git repo is cloned, run the following command from the root of the repo.

docker build -t rv-toolchain-docker .

2. Build the xv6-riscv project inside the docker image

Once the docker image is built locally, ready to be used. Go to the root of the xv6-riscv project and run the following command. Takes around 25 minutes to build.

docker run --rm -v $(pwd):/project -w /project -it rv-toolchain-docker:latest make

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published