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

Dockerfile: Add QEMU 8.2.2 #25

Merged
merged 1 commit into from
Oct 22, 2024
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
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM python:3.10-buster

ARG CMAKE_VERSION=3.30.5
ARG NINJA_VERSION=1.12.1
ARG QEMU_VERSION=8.2.2

ARG UID=1001
ARG GID=1001
Expand Down Expand Up @@ -63,6 +64,17 @@ RUN pip3 install awscli
# Install meson to allow building picolibc
RUN pip3 install meson

# Install QEMU
RUN wget https://download.qemu.org/qemu-${QEMU_VERSION}.tar.xz && \
tar Jxf qemu-${QEMU_VERSION}.tar.xz && \
pushd qemu-${QEMU_VERSION} && \
./configure --target-list="aarch64-softmmu,arm-softmmu,riscv32-softmmu,riscv64-softmmu" && \
make -j$(nproc) && \
make install && \
popd && \
rm -rf qemu-${QEMU_VERSION} && \
rm qemu-${QEMU_VERSION}.tar.xz

# Add build-agent user
RUN groupadd -g $GID -o build-agent && \
useradd -u $UID -m -g build-agent build-agent --shell /bin/bash && \
Expand Down