13 lines
618 B
Docker
13 lines
618 B
Docker
FROM ubuntu:22.04
|
|
|
|
# COPY sources.list /etc/apt/sources.list
|
|
RUN apt-get update \
|
|
&& apt-get install -y build-essential git libglib2.0-dev libpixman-1-dev \
|
|
ninja-build pkg-config libsdl2-dev wget cmake gcc-riscv64-unknown-elf python3-minimal \
|
|
&& git clone -b v7.0.0 --depth 1 https://mirrors.tuna.tsinghua.edu.cn/git/qemu.git \
|
|
&& cd qemu && mkdir build && cd build && ../configure --target-list=riscv64-softmmu \
|
|
&& make install \
|
|
&& wget http://musl.cc/riscv64-linux-musl-cross.tgz \
|
|
&& tar xf riscv64-linux-musl-cross.tgz -C /usr \
|
|
&& echo "PATH=$PATH:/usr/riscv64-linux-musl-cross/bin/" >> /root/.bashrc
|