Skip to content

Commit

Permalink
Dockerfile: Add QEMU 8.2.2
Browse files Browse the repository at this point in the history
This commit adds QEMU 8.2.2 to the SDK CI Docker image.

QEMU is required for testing the LLVM toolchain.

Signed-off-by: Stephanos Ioannidis <[email protected]>
  • Loading branch information
stephanosio committed Oct 22, 2024
1 parent 07cc8a8 commit 2dfe290
Showing 1 changed file with 12 additions and 0 deletions.
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

0 comments on commit 2dfe290

Please sign in to comment.