RISC-V GNU toolchain (gcc, as, ld, newlib libc, ...) and the spike simulator + LaTeX & Python.
10K+
Dockerfile used to generate the image:
# Use blang/latex even in build to make sure we're binary compatible with the final image
FROM blang/latex:latest AS builder
ENV RISCV /opt/riscv
ENV RISCV_BUILD /tmp/riscv-build
RUN mkdir "$RISCV" "$RISCV_BUILD" && chown "$LOGNAME": "$RISCV"
ENV PATH "$RISCV"/bin:"$PATH"
RUN apt-get update && \
apt-get install -qy git && \
apt-get install -qy autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev && \
apt-get install -qy autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev libusb-1.0-0-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev device-tree-compiler pkg-config libexpat-dev
RUN cd "$RISCV_BUILD" && \
git clone --recursive https://github.com/riscv/riscv-gnu-toolchain && \
cd riscv-gnu-toolchain && \
./configure --prefix="$RISCV" && \
make -j 4
RUN cd "$RISCV_BUILD" && \
git clone --recursive https://github.com/riscv/riscv-tools.git && \
cd riscv-tools/ && \
./build.sh
RUN du -sh "$RISCV"; \
for f in "$RISCV"/bin/* "$RISCV"/libexec/gcc/riscv64-unknown-elf/*/*; do \
if file "$f" | grep -q 'ELF .* LSB executable'; then \
echo "Stripping $f" ; \
strip "$f" ; \
fi ; \
done; \
du -sh "$RISCV"
FROM blang/latex:latest
ENV RISCV /opt/riscv
ENV PATH "$RISCV"/bin:"$PATH"
ENV ANTLR4 "java -jar /opt/antlr-4.7.2-complete.jar"
COPY --from=builder "$RISCV" "$RISCV"
RUN apt-get -y update && apt-get -y install default-jre-headless python3 python3-pip wget libncurses5-dev pandoc rubber device-tree-compiler libmpc3 && apt-get clean
RUN pip3 install flake8 antlr4-python3-runtime pytest pytest-cov networkx graphviz
RUN mkdir -p $HOME/lib && wget http://www.antlr.org/download/antlr-4.7.2-complete.jar -O /opt/antlr-4.7.2-complete.jar
Content type
Image
Digest
sha256:c7ca6439b…
Size
1.8 GB
Last updated
7 months ago
docker pull mmoy/riscv-latex-python