Skip to content
Open
Show file tree
Hide file tree
Changes from 7 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
26 changes: 26 additions & 0 deletions Dockerfile_RISCV
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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
ENV mkdir -p $HOME_DIR
WORKDIR $HOME_DIR
RUN git clone --recursive https://github.com/riscv/riscv-gnu-toolchain -j 8
WORKDIR $RISCV_SRC_DIR
# Checkout a specific hash to keep the output binaries consistent
WORKDIR git checkout 23a038856764808d75b6afe96f649980609ae4c6
# 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 8
# Remove the source code
RUN rm -rf $RISCV_SRC_DIR

# For x86: gcc
# For ARM: arm-linux-gnueabi-gcc or arm-linux-gnueabihf-gcc ?
# For RISCV: $RISCV_DIR/bin/riscv64-unknown-elf-gcc
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