diff --git a/Dockerfile_ARM b/Dockerfile_ARM new file mode 100644 index 0000000..b3c640e --- /dev/null +++ b/Dockerfile_ARM @@ -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 diff --git a/Dockerfile_RISCV b/Dockerfile_RISCV new file mode 100644 index 0000000..6b9dc5e --- /dev/null +++ b/Dockerfile_RISCV @@ -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 +# 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 diff --git a/Dockerfile_X86 b/Dockerfile_X86 new file mode 100644 index 0000000..601cf4c --- /dev/null +++ b/Dockerfile_X86 @@ -0,0 +1,3 @@ +FROM ubuntu:18.04 +RUN apt-get update +RUN apt-get install -y build-essential python