Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Dockerfile_ARM
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y build-essential python \
gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf
22 changes: 22 additions & 0 deletions Dockerfile_RISCV
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y build-essential git curl gawk texinfo expat \
libexpat1-dev bison flex libz-dev python autoconf
# Prepare to download and compile RISCV toolchain
ENV HOME_DIR=/home/root
ENV RISCV_SRC_DIR=$HOME_DIR/riscv-gnu-toolchain
ENV RISCV_DIR=$HOME_DIR/riscv-tools
RUN mkdir -p $HOME_DIR
WORKDIR $HOME_DIR
RUN git clone --recursive https://github.com/riscv/riscv-gnu-toolchain -j $(nproc)
WORKDIR $RISCV_SRC_DIR
# Checkout a specific hash to keep the output binaries consistent
RUN git checkout 23a038856764808d75b6afe96f649980609ae4c6
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late comment... can you checkout a tag instead of a hash? Are there tags for specific versions of gcc?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They have tags, each has a specific version of gcc.

# Downloading the prereqs must be done in riscv-gcc folder
WORKDIR $RISCV_SRC_DIR/riscv-gcc
RUN ./contrib/download_prerequisites
WORKDIR $RISCV_SRC_DIR
RUN ./configure --prefix=$RISCV_DIR
RUN make -j $(nproc)
# Remove the source code
RUN rm -rf $RISCV_SRC_DIR
3 changes: 3 additions & 0 deletions Dockerfile_X86
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y build-essential python