[PATCH v2 2/3] ci: container: add qemu-system-kvx

Yann Sionneau ysionneau at kalrayinc.com
Tue Aug 13 05:44:07 PDT 2024


Add qemu-system-kvx in CI container.

This will allow to run tests in CI for kvx arch.

Signed-off-by: Yann Sionneau <ysionneau at kalrayinc.com>
---
v1 -> v2:
  - no change

 test/Containerfile | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/test/Containerfile b/test/Containerfile
index fe3e3a6186..507673bff5 100644
--- a/test/Containerfile
+++ b/test/Containerfile
@@ -14,14 +14,18 @@ RUN apt-get update && apt-get install -y \
 	bison \
 	build-essential \
 	coreutils \
+	cmake \
 	flex \
 	gawk \
 	git \
 	imagemagick \
 	libc6-i386 \
+	libfdt-dev \
 	libgit2-dev \
+	libglib2.0-dev \
 	libguestfs-tools \
 	liblz4-tool \
+	libpixman-1-dev \
 	libseccomp-dev \
 	libssl-dev \
 	libtool \
@@ -30,6 +34,7 @@ RUN apt-get update && apt-get install -y \
 	lzma-alone \
 	lzop \
 	mount \
+	ninja-build \
 	openssl \
 	pkg-config \
 	util-linux \
@@ -47,6 +52,8 @@ RUN apt-get update && apt-get install -y \
 	virtualenv \
 	sudo \
 	u-boot-tools \
+	unzip \
+	zlib1g-dev \
 	&& rm -rf /var/lib/apt/lists/*
 
 ENV GCC_VERSION=13.1.0
@@ -62,6 +69,12 @@ RUN korg_crosstool_dl() { wget -nv -O - https://mirrors.edge.kernel.org/pub/tool
 
 RUN wget "https://github.com/qemu/qemu/blob/v5.2.0/pc-bios/opensbi-riscv32-generic-fw_dynamic.bin?raw=true" -O /usr/share/qemu/opensbi-riscv32-generic-fw_dynamic.bin
 
+# Compile qemu-system-kvx
+RUN git clone https://github.com/kalray/qemu-builder
+RUN cd qemu-builder && git submodule update --init
+RUN cd qemu-builder && make -j$(($(nproc) + 1))
+RUN cd qemu-builder && ln -s $(realpath prefix/bin/qemu-system-kvx) /usr/local/bin/
+
 # Create our user/group
 RUN useradd -m -U barebox
 RUN echo barebox ALL=NOPASSWD: ALL > /etc/sudoers.d/barebox
-- 
2.34.1








More information about the barebox mailing list