Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(qemu): add support for qemu-aarch64 and qemu-riscv64 in Docker #73

Merged
merged 4 commits into from
Nov 9, 2023
Merged
Changes from all 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
24 changes: 23 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,17 @@ RUN apt-get update && apt-get install -y \
nodejs \
npm \
enchant-2 \
software-properties-common
software-properties-common \
ninja-build \
pkg-config \
libglib2.0-dev \
libpixman-1-dev \
libslirp-dev \
bison \
flex \
tree \
vim \
nano

# Install python packages
RUN pip3 install \
Expand Down Expand Up @@ -71,6 +81,18 @@ RUN mkdir /opt/aarch64-toolchain && curl $AARCH64_TOOLCHAIN_LINK | tar xJ -C /op
# Add generic non-root user
RUN addgroup bao && adduser -disabled-password --ingroup bao bao

# Add qemu-riscv64-virt
RUN git clone https://github.com/qemu/qemu.git /opt/qemu-riscv64-virt --depth 1 --branch v7.2.0 && \
cd /opt/qemu-riscv64-virt/ && ./configure --target-list=riscv64-softmmu --enable-slirp && \
make -j$(nproc) && \
make install

# Add qemu-aarch64-virt
RUN git clone https://github.com/qemu/qemu.git /opt/qemu-aarch64-virt --depth 1 --branch v7.2.0 && \
cd /opt/qemu-aarch64-virt && ./configure --target-list=aarch64-softmmu --enable-slirp && \
make -j$(nproc) && \
make install

# setup environment
ENV PATH=$PATH:/opt/aarch64-toolchain/bin
ENV PATH=$PATH:/opt/aarch32-toolchain/bin
Expand Down