-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (18 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:24.04
WORKDIR /home/
RUN apt update && apt -y upgrade && apt install -y autoconf automake autotools-dev bc bison build-essential cmake curl \
flex gawk git gperf libexpat-dev libglib2.0-dev libgmp-dev \
libgoogle-perftools-dev libmpc-dev libmpfr-dev libprotobuf-dev \
libprotoc-dev libslirp-dev libtool m4 ninja-build patchutils \
protobuf-compiler pre-commit mypy python-is-python3 python3 \
python3-dev python3-pip python3-venv scons texinfo zlib1g zlib1g-dev
ENV RISCV=/opt/riscv
ENV PATH=$PATH:$RISCV/bin
ARG TOOLCHAIN_VERSION=2024.04.12
RUN git clone https://github.com/riscv/riscv-gnu-toolchain -b ${TOOLCHAIN_VERSION} \
&& cd riscv-gnu-toolchain \
&& ./configure --prefix=$RISCV --enable-multilib \
&& make -j`nproc` \
&& cd .. \
&& rm -rf riscv-gnu-toolchain
COPY setup-gem5.sh /home/setup-gem5.sh