[llvm] [Github][libc] Add qemu-system-hexagon to the libc container (PR #219433)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 1 09:00:29 PDT 2026


https://github.com/quic-k updated https://github.com/llvm/llvm-project/pull/219433

>From 90aacc016ca1bd5d9a087723b775f18d43c3b0a0 Mon Sep 17 00:00:00 2001
From: Kushal Pal <kushpal at qti.qualcomm.com>
Date: Tue, 1 Sep 2026 14:25:49 +0530
Subject: [PATCH] [Github][libc] Download Hexagon qemu in the libc container

Signed-off-by: Kushal Pal <kushpal at qti.qualcomm.com>
---
 .github/workflows/containers/libc/Dockerfile | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/.github/workflows/containers/libc/Dockerfile b/.github/workflows/containers/libc/Dockerfile
index d2cb71435059a..f0c3c163f7fbf 100644
--- a/.github/workflows/containers/libc/Dockerfile
+++ b/.github/workflows/containers/libc/Dockerfile
@@ -30,6 +30,7 @@ RUN apt-get update && \
     g++-12-arm-linux-gnueabihf \
     sudo \
     sccache \
+    zstd \
     wget \
     lsb-release \
     software-properties-common \
@@ -40,6 +41,22 @@ RUN apt-get update && \
     apt-get clean && \
     rm -rf /var/lib/apt/lists/*
 
+# TODO: Switch to distribution QEMU packages once the Qualcomm fork patches
+# are upstreamed to QEMU.
+# The current QEMU binaries are x86_64-only, so do not install them on ARM.
+RUN if [ "$(uname -m)" = "x86_64" ]; then \
+    wget --remote-encoding=utf-8 -O /tmp/clang+llvm-23.1.0-rc1-cross-hexagon-unknown-linux-musl.tar.zst \
+    https://artifacts.codelinaro.org/artifactory/codelinaro-toolchain-for-hexagon/23.1.0-rc1/clang+llvm-23.1.0-rc1-cross-hexagon-unknown-linux-musl.tar.zst && \
+    mkdir -p /tmp/hexagon-toolchain && \
+    tar -xf /tmp/clang+llvm-23.1.0-rc1-cross-hexagon-unknown-linux-musl.tar.zst -C /tmp/hexagon-toolchain/ && \
+    install /tmp/hexagon-toolchain/*/bin/qemu-system-hexagon /usr/local/bin/qemu-system-hexagon && \
+    install /tmp/hexagon-toolchain/*/bin/qemu-hexagon /usr/local/bin/qemu-hexagon && \
+    qemu-system-hexagon --version && \
+    qemu-hexagon --version && \
+    rm -rf /tmp/hexagon-toolchain && \
+    rm -f /tmp/clang+llvm-23.1.0-rc1-cross-hexagon-unknown-linux-musl.tar.zst; \
+    fi
+
 RUN wget https://apt.llvm.org/llvm.sh && \
     chmod +x llvm.sh && \
     sudo ./llvm.sh 23 && \



More information about the llvm-commits mailing list