From 2dfe2907893d2624e23227606183aeae9624ee66 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Wed, 23 Oct 2024 01:28:22 +0900 Subject: [PATCH] Dockerfile: Add QEMU 8.2.2 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 --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Dockerfile b/Dockerfile index a71b840..46ea690 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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 && \