Skip to contentSkip to conversation

Argo artefact

PATCH Superseded Andrew Cooper 2 participants 7 messages Apr 10, 2025 – Apr 11, 2025 Arm/Zynq architecture

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Argo artefact

Part 2 of the cleanup, reworking Argo.

https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/9690063969

Andrew Cooper (3):
Rename and adjust x86 containers
Overhaul how Argo is built and packged
Switch to fixed Argo

 .gitlab-ci.yml                                |  6 +-
 containerize                                  |  4 +-
 images/alpine/3.18-x86_64-base.dockerfile     |  6 ++
 ...ockerfile => 3.18-x86_64-build.dockerfile} | 32 +++++----
 images/alpine/x86_64-rootfs.dockerfile        |  4 --
 scripts/build-argo.sh                         | 66 +++++++++++++++++++
 scripts/build-linux.sh                        |  6 +-
 7 files changed, 103 insertions(+), 21 deletions(-)
 create mode 100644 images/alpine/3.18-x86_64-base.dockerfile
 rename images/alpine/{x86_64-build.dockerfile => 3.18-x86_64-build.dockerfile} (54%)
 delete mode 100644 images/alpine/x86_64-rootfs.dockerfile
 create mode 100644 scripts/build-argo.sh
Signature · 1 line
2.39.5
#1 lore raw

PATCH 1/4 Rename and adjust x86 containers

Insert the Alpine version as we'll need a newer version in due course, and rename 'rootfs' to 'base' as the container really is not a rootfs on it's own.

In base, add bash. It's added later by the rootfs generation anyway, but this way we can write the generation script in bash too.

In build, group and sort the packages. Drop the ones we don't need, or are pulled in by dependencies. Include diffutils, findutils and gawk to avoid warnings in the kernel build.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Jason Andryuk <[email protected]>
CC: Daniel P. Smith <[email protected]>

---
 .gitlab-ci.yml                                |  4 +--
 containerize                                  |  4 +--
 images/alpine/3.18-x86_64-base.dockerfile     |  6 ++++
 ...ockerfile => 3.18-x86_64-build.dockerfile} | 32 ++++++++++++-------
 images/alpine/x86_64-rootfs.dockerfile        |  4 ---
 5 files changed, 30 insertions(+), 20 deletions(-)
 create mode 100644 images/alpine/3.18-x86_64-base.dockerfile
 rename images/alpine/{x86_64-build.dockerfile => 3.18-x86_64-build.dockerfile} (54%)
 delete mode 100644 images/alpine/x86_64-rootfs.dockerfile
.gitlab-ci.yml +2 -2
index 670f9621e26d..fb997cc62162 100644
@@ -28,7 +28,7 @@ stages:
   tags:
     - x86_64
   variables:
-    CONTAINER: alpine:x86_64-build
+    CONTAINER: alpine:3.18-x86_64-build
 
 #
 # ARM64 artifacts
@@ -62,7 +62,7 @@ x86_64-rootfs-alpine-3.18:
   script:
     - . scripts/x86_64-rootfs-alpine.sh
   variables:
-    CONTAINER: alpine:x86_64-rootfs
+    CONTAINER: alpine:3.18-x86_64-base
 
 x86_64-argo-linux-6.6.56:
   extends: .x86_64-artifacts
containerize +2 -2
index 7abeb119ff6a..c23f55ead737 100755
@@ -25,8 +25,8 @@ die() {
 BASE="registry.gitlab.com/xen-project/hardware/test-artifacts"
 case "_${CONTAINER}" in
     _alpine-3.18-arm64-build) CONTAINER="${BASE}/alpine:3.18-arm64-build" ;;
-    _alpine-x86_64-rootfs) CONTAINER="${BASE}/alpine:x86_64-rootfs" ;;
-    _alpine-x86_64-build|_) CONTAINER="${BASE}/alpine:x86_64-build" ;;
+    _alpine-3.18-x86_64-base) CONTAINER="${BASE}/alpine:3.18-x86_64-base" ;;
+    _alpine-3.18-x86_64-build|_) CONTAINER="${BASE}/alpine:3.18-x86_64-build" ;;
 esac
 
 # Use this variable to control whether root should be used
images/alpine/3.18-x86_64-base.dockerfile new file +6 -0
new file mode 100644
index 000000000000..a8cb274d5821
@@ -0,0 +1,6 @@
+# syntax=docker/dockerfile:1
+FROM --platform=linux/amd64 alpine:3.18
+LABEL maintainer.name="The Xen Project"
+LABEL maintainer.email="[email protected]"
+
+RUN apk --no-cache add bash
images/alpine/3.18-x86_64-build.dockerfile renamed from images/alpine/x86_64-build.dockerfile +20 -12
similarity index 54%
rename from images/alpine/x86_64-build.dockerfile
rename to images/alpine/3.18-x86_64-build.dockerfile
index 98969a5be1da..eac0cda4fed3 100644
@@ -1,31 +1,39 @@
 # syntax=docker/dockerfile:1
 FROM --platform=linux/amd64 alpine:3.18
-LABEL maintainer.name="The Xen Project" \
-      maintainer.email="[email protected]"
+LABEL maintainer.name="The Xen Project"
+LABEL maintainer.email="[email protected]"
 
 RUN apk --no-cache add bash
 
-RUN bash -ex <<EOF
+RUN <<EOF
+#!/bin/bash
+      set -eu
+
       adduser -D user --shell /bin/bash
 
-      DEPS=(
-            musl-dev
+      DEPS=(# Base environment
             build-base
-            libc6-compat
-            linux-headers
-            bash
-            git
             curl
-            flex
+            git
+
+            # Linux build deps
             bison
+            diffutils
             elfutils-dev
+            findutils
+            flex
+            gawk
+            linux-headers
+            openssl-dev
+            perl
+
+            # Argo build deps
             autoconf
             automake
             libtool
-            openssl-dev
       )
 
-      apk add --no-cache "\${DEPS[@]}"
+      apk add --no-cache "${DEPS[@]}"
 EOF
 
 USER user
images/alpine/x86_64-rootfs.dockerfile deleted +0 -4
deleted file mode 100644
index b912e9c1600d..000000000000
@@ -1,4 +0,0 @@
-# syntax=docker/dockerfile:1
-FROM --platform=linux/amd64 alpine:3.18
-LABEL maintainer.name="The Xen Project" \
-      maintainer.email="[email protected]"
Signature · 1 line
2.39.5
#2 lore raw

PATCH 2/4 Overhaul how Argo is built and packged

In reply to Andrew Cooper

Right now, the argo artefacts are a pile of files which the test has to turn back into something which resembles a filesystem. Furthermore, because we do not build modules for the main kernel, it is extra important to make sure that xen-argo.ko doesn't get out of sync.

Build argo unconditionally as part of the linux artefact. It's ~100kb all together, compared to ~14M for the kernel.

Produce a single argo.cpio.gz with xen-argo.ko in the standard location. Prune userspace down to just the executables and libraries.

This is cribbed from the existing scripts/x86_64-linux-argo.sh, which stays in place in the short term until Xen can be updated to use the new scheme.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Jason Andryuk <[email protected]>
CC: Daniel P. Smith <[email protected]>

I tried to make MODPOST work properly, but we don't build enough of it for the kernel, and I didn't feel like adding an extra 10 mins to the build (all modules) just to get the metadata right.

---
 .gitlab-ci.yml         |  2 ++
 scripts/build-argo.sh  | 67 ++++++++++++++++++++++++++++++++++++++++++
 scripts/build-linux.sh |  6 +++-
 3 files changed, 74 insertions(+), 1 deletion(-)
 create mode 100644 scripts/build-argo.sh
.gitlab-ci.yml +2 -0
index fb997cc62162..790a6d9f9896 100644
@@ -47,6 +47,8 @@ linux-6.6.56-x86_64:
   script: ./scripts/build-linux.sh
   variables:
     LINUX_VERSION: 6.6.56
+    ARGO_SHA: "705a7a8a624b42e13e655d3042059b8a85cdf6a3"
+    ARGOEXEC_SHA: "d900429f6640acc6f68a3d3a4c945d7da60625d8"
 
 #
 # The jobs below here are legacy and being phased out.
scripts/build-argo.sh new file +67 -0

67 lines not on this page · raw message

scripts/build-linux.sh +5 -1
index 652fdba7b9d1..49b5ebed6424 100755
@@ -8,7 +8,7 @@ fi
 set -ex -o pipefail
 
 WORKDIR="${PWD}"
-COPYDIR="${WORKDIR}/binaries/"
+COPYDIR="${WORKDIR}/binaries"
 UNAME=$(uname -m)
 
 # Build Linux
@@ -45,6 +45,10 @@ case $UNAME in
     x86_64)
         make -j$(nproc) bzImage
         cp arch/x86/boot/bzImage "${COPYDIR}"
+
+        # Build argo
+        make modules_prepare
+        . "${WORKDIR}/scripts/build-argo.sh"
         ;;
 
     aarch64)
Signature · 1 line
2.39.5
#3 lore raw

Re: [PATCH 2/4] Overhaul how Argo is built and packged

Quoted 76 lines · Andrew Cooper

Right now, the argo artefacts are a pile of files which the test has to turn back into something which resembles a filesystem. Furthermore, because we do not build modules for the main kernel, it is extra important to make sure that xen-argo.ko doesn't get out of sync.

Build argo unconditionally as part of the linux artefact. It's ~100kb all together, compared to ~14M for the kernel.

Produce a single argo.cpio.gz with xen-argo.ko in the standard location. Prune userspace down to just the executables and libraries.

This is cribbed from the existing scripts/x86_64-linux-argo.sh, which stays in place in the short term until Xen can be updated to use the new scheme.

---
CC: Anthony PERARD [email protected]

CC Stefano Stabellini [email protected]
CC Michal Orzel [email protected]
CC Doug Goldstein [email protected]
CC Marek Marczykowski-Górecki [email protected]
CC Jason Andryuk [email protected]
CC Daniel P. Smith [email protected]

I tried to make MODPOST work properly, but we don't build enough of it for the kernel, and I didn't feel like adding an extra 10 mins to the build (all modules) just to get the metadata right.
---
.gitlab-ci.yml | 2 ++
scripts/build-argo.sh | 67 ++++++++++++++++++++++++++++++++++++++++++ scripts/build-linux.sh | 6 +++-

3 files changed, 74 insertions(+), 1 deletion(-)

create mode 100644 scripts/build-argo.sh

.gitlab-ci.yml +0 -0
index fb997cc62162..790a6d9f9896 100644
@@ -47,6 +47,8 @@ linux-6.6.56-x86_64:

script: ./scripts/build-linux.sh
variables:
LINUX_VERSION: 6.6.56
+ ARGO_SHA: "705a7a8a624b42e13e655d3042059b8a85cdf6a3"
+ ARGOEXEC_SHA: "d900429f6640acc6f68a3d3a4c945d7da60625d8"

#
# The jobs below here are legacy and being phased out.

scripts/build-argo.sh new file +13 -0
new file mode 100644
index 000000000000..0b4005f3b9a0
@@ -0,0 +1,67 @@
+#
+# This is a partial script, sourced by build-linux.sh
+# It has expectations about the environment
+#
+
+cd "${WORKDIR}"
+
+#
+# We're going to collect everything in argo.cpio.gz. Construct it under
+# $ARGODIR as we go.
+#
+ARGODIR="${WORKDIR}/argo-root"
+

scripts/build-argo.sh line 23

Quoted 10 lines
scripts/build-argo.sh new file +10 -0
+git clone https://github.com/OpenXT/linux-xen-argo.git --depth=1
+git -C "${WORKDIR}/linux-xen-argo" fetch origin "${ARGO_SHA}"
+git -C "${WORKDIR}/linux-xen-argo" switch --detach FETCH_HEAD
+
+# Build xen-argo.ko against the target kernel, and install it. Install
+# linux/argo.h too because userspace needs it.
+make -C "linux-${LINUX_VERSION}" \
+ M="${WORKDIR}/linux-xen-argo/argo-linux" \
+ KBUILD_MODPOST_WARN=1 \
+ CFLAGS_MODULE="-Wno-error" \

Suggest adding W=e for catching problems and V=1 to help debugging a bit.

Quoted 7 lines
scripts/build-argo.sh new file +7 -0
+ modules
+install -D -m644 "${WORKDIR}/linux-xen-argo/argo-linux/xen-argo.ko" \
+ "${ARGODIR}/lib/modules/${LINUX_VERSION}/updates/xen-argo.ko"
+install -D -m644 "${WORKDIR}/linux-xen-argo/argo-linux/include/linux/argo.h" \
+ "${ARGODIR}/usr/include/linux/argo.h"
+
+# Build and install libargo, applying fixes to build in Alpine Linux

scripts/build-argo.sh line 40

Quoted 10 lines
scripts/build-argo.sh new file +10 -0
+cd "${WORKDIR}/linux-xen-argo/libargo"
+sed -e "s|AM_INIT_AUTOMAKE|AC_CONFIG_AUX_DIR(.)\nAM_INIT_AUTOMAKE|" \
+ -i configure.ac
+sed -e "s/_SOCKADDR_COMMON (sxenargo)/sa_family_t sxenargo_family/" \
+ -e "s/__SOCKADDR_COMMON_SIZE/(sizeof (unsigned short int))/" \
+ -i src/libargo.h
+
+autoreconf --install
+./configure --prefix=/usr CPPFLAGS="-I${PWD}/../argo-linux/include"
+make

Perhaps add something like make -j$(nproc)?

Quoted 44 lines
scripts/build-argo.sh new file +27 -0
+make install DESTDIR="${ARGODIR}"
+
+# Build and install argo-exec, modifying for xilinx argo test
+cd "${WORKDIR}"
+curl -fsSLO \
+ https://raw.githubusercontent.com/OpenXT/xenclient-oe/${ARGOEXEC_SHA}/recipes-openxt/argo-exec/argo-exec/argo-exec.c
+sed -e "/#include <xen\/xen.h>/d" \
 
+ -e "s|ret = shuffle(s, fds\[0\], fds\[1\]);|ret = shuffle(s, 0, 1);|" \
+ -i argo-exec.c
+
+gcc -I"${ARGODIR}/usr/include" -L"${ARGODIR}/usr/lib/" \
+ argo-exec.c -o "${ARGODIR}/usr/bin/argo-exec" -largo
+
+#
+# Building is now complete. Strip the devel components and the nointerposer
+# lib, which we don't care to deploy to the test system.
+#
+cd $ARGODIR
+rm -r usr/include usr/lib/pkgconfig
+find usr/lib -name \nointerposer\ -delete
+find usr/lib \( -name \.a -o -name \.so -o -name \*.la \) -delete
+
+# Package everything up
+find . | cpio -R 0:0 -H newc -o | gzip > "$COPYDIR/argo.cpio.gz"
 
+
+# Print the contents for the build log
+zcat "$COPYDIR/argo.cpio.gz" | cpio -tv
scripts/build-linux.sh +0 -0
index 652fdba7b9d1..49b5ebed6424 100755
@@ -8,7 +8,7 @@ fi

set -ex -o pipefail

WORKDIR="${PWD}"

scripts/build-linux.sh +1 -1
-COPYDIR="${WORKDIR}/binaries/"
+COPYDIR="${WORKDIR}/binaries"

UNAME=$(uname -m)

# Build Linux

scripts/build-linux.sh +0 -0
@@ -45,6 +45,10 @@ case $UNAME in
 x86_64)
Quoted 6 lines

make -j$(nproc) bzImage
cp arch/x86/boot/bzImage "${COPYDIR}"
+
+ # Build argo
+ make modules_prepare
+ . "${WORKDIR}/scripts/build-argo.sh"

Nit: I would use source instead of . which is simple to overlook.

Quoted 5 lines

;;

aarch64)
--
2.39.5

#4 lore raw

Re: [PATCH 2/4] Overhaul how Argo is built and packged

Quoted 80 lines · Denis Mukhin
Quoted 78 lines · Andrew Cooper

Right now, the argo artefacts are a pile of files which the test has to turn back into something which resembles a filesystem. Furthermore, because we do not build modules for the main kernel, it is extra important to make sure that xen-argo.ko doesn't get out of sync.

Build argo unconditionally as part of the linux artefact. It's ~100kb all together, compared to ~14M for the kernel.

Produce a single argo.cpio.gz with xen-argo.ko in the standard location. Prune userspace down to just the executables and libraries.

This is cribbed from the existing scripts/x86_64-linux-argo.sh, which stays in place in the short term until Xen can be updated to use the new scheme.

---
CC: Anthony PERARD [email protected]

CC Stefano Stabellini [email protected]
CC Michal Orzel [email protected]
CC Doug Goldstein [email protected]
CC Marek Marczykowski-Górecki [email protected]
CC Jason Andryuk [email protected]
CC Daniel P. Smith [email protected]

I tried to make MODPOST work properly, but we don't build enough of it for the kernel, and I didn't feel like adding an extra 10 mins to the build (all modules) just to get the metadata right.
---
.gitlab-ci.yml | 2 ++
scripts/build-argo.sh | 67 ++++++++++++++++++++++++++++++++++++++++++ scripts/build-linux.sh | 6 +++-

3 files changed, 74 insertions(+), 1 deletion(-)

create mode 100644 scripts/build-argo.sh

.gitlab-ci.yml +0 -0
index fb997cc62162..790a6d9f9896 100644
@@ -47,6 +47,8 @@ linux-6.6.56-x86_64:

script: ./scripts/build-linux.sh
variables:
LINUX_VERSION: 6.6.56
+ ARGO_SHA: "705a7a8a624b42e13e655d3042059b8a85cdf6a3"
+ ARGOEXEC_SHA: "d900429f6640acc6f68a3d3a4c945d7da60625d8"

#
# The jobs below here are legacy and being phased out.

scripts/build-argo.sh new file +16 -0
new file mode 100644
index 000000000000..0b4005f3b9a0
@@ -0,0 +1,67 @@
+#
+# This is a partial script, sourced by build-linux.sh
+# It has expectations about the environment
+#
+
+cd "${WORKDIR}"
+
+#
+# We're going to collect everything in argo.cpio.gz. Construct it under
+# $ARGODIR as we go.
+#
+ARGODIR="${WORKDIR}/argo-root"
+
+git clone https://github.com/OpenXT/linux-xen-argo.git --depth=1
+git -C "${WORKDIR}/linux-xen-argo" fetch origin "${ARGO_SHA}"
+git -C "${WORKDIR}/linux-xen-argo" switch --detach FETCH_HEAD
Quoted 8 lines

scripts/build-argo.sh line 23

Quoted 7 lines
scripts/build-argo.sh new file +7 -0
+
+# Build xen-argo.ko against the target kernel, and install it. Install
+# linux/argo.h too because userspace needs it.
+make -C "linux-${LINUX_VERSION}" \
+ M="${WORKDIR}/linux-xen-argo/argo-linux" \
+ KBUILD_MODPOST_WARN=1 \
+ CFLAGS_MODULE="-Wno-error" \

Suggest adding W=e for catching problems and V=1 to help debugging a bit.

The currently referenced commit is buggy, and depends on this -Wno-error to compile.

I've submitted a PR upstream to fix (see next patch), but there's no ETA on when it will get merged, and we can't be blocked waiting on it.

Quoted 11 lines
Quoted 11 lines
scripts/build-argo.sh new file +10 -0
+ modules
+install -D -m644 "${WORKDIR}/linux-xen-argo/argo-linux/xen-argo.ko" \
+ "${ARGODIR}/lib/modules/${LINUX_VERSION}/updates/xen-argo.ko"
+install -D -m644 "${WORKDIR}/linux-xen-argo/argo-linux/include/linux/argo.h" \
+ "${ARGODIR}/usr/include/linux/argo.h"
+
+# Build and install libargo, applying fixes to build in Alpine Linux
+cd "${WORKDIR}/linux-xen-argo/libargo"
+sed -e "s|AM_INIT_AUTOMAKE|AC_CONFIG_AUX_DIR(.)\nAM_INIT_AUTOMAKE|" \
+ -i configure.ac
Quoted 8 lines

scripts/build-argo.sh line 40

Quoted 7 lines
scripts/build-argo.sh new file +7 -0
+sed -e "s/_SOCKADDR_COMMON (sxenargo)/sa_family_t sxenargo_family/" \
+ -e "s/__SOCKADDR_COMMON_SIZE/(sizeof (unsigned short int))/" \
+ -i src/libargo.h
+
+autoreconf --install
+./configure --prefix=/usr CPPFLAGS="-I${PWD}/../argo-linux/include"
+make

Perhaps add something like make -j$(nproc)?

Can do.  The build is so trivial you don't even notice it when non-parallel.

Quoted 42 lines
Quoted 42 lines
scripts/build-argo.sh new file +27 -0
+make install DESTDIR="${ARGODIR}"
+
+# Build and install argo-exec, modifying for xilinx argo test
+cd "${WORKDIR}"
+curl -fsSLO \
+ https://raw.githubusercontent.com/OpenXT/xenclient-oe/${ARGOEXEC_SHA}/recipes-openxt/argo-exec/argo-exec/argo-exec.c
+sed -e "/#include <xen\/xen.h>/d" \
 
+ -e "s|ret = shuffle(s, fds\[0\], fds\[1\]);|ret = shuffle(s, 0, 1);|" \
+ -i argo-exec.c
+
+gcc -I"${ARGODIR}/usr/include" -L"${ARGODIR}/usr/lib/" \
+ argo-exec.c -o "${ARGODIR}/usr/bin/argo-exec" -largo
+
+#
+# Building is now complete. Strip the devel components and the nointerposer
+# lib, which we don't care to deploy to the test system.
+#
+cd $ARGODIR
+rm -r usr/include usr/lib/pkgconfig
+find usr/lib -name \nointerposer\ -delete
+find usr/lib \( -name \.a -o -name \.so -o -name \*.la \) -delete
+
+# Package everything up
+find . | cpio -R 0:0 -H newc -o | gzip > "$COPYDIR/argo.cpio.gz"
 
+
+# Print the contents for the build log
+zcat "$COPYDIR/argo.cpio.gz" | cpio -tv
scripts/build-linux.sh +0 -0
index 652fdba7b9d1..49b5ebed6424 100755
@@ -8,7 +8,7 @@ fi

set -ex -o pipefail

WORKDIR="${PWD}"

scripts/build-linux.sh +1 -1
-COPYDIR="${WORKDIR}/binaries/"
+COPYDIR="${WORKDIR}/binaries"

UNAME=$(uname -m)

Quoted 10 lines
Quoted 9 lines

# Build Linux

scripts/build-linux.sh +0 -0
@@ -45,6 +45,10 @@ case $UNAME in
 x86_64)

make -j$(nproc) bzImage
cp arch/x86/boot/bzImage "${COPYDIR}"
+
+ # Build argo
+ make modules_prepare
+ . "${WORKDIR}/scripts/build-argo.sh"

Nit: I would use source instead of . which is simple to overlook.

I expect you'll find that . is more common source in Xen.

~Andrew

#5 lore raw

PATCH 3/4 Switch to fixed Argo

In reply to Andrew Cooper

https://github.com/OpenXT/linux-xen-argo/pull/21

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Jason Andryuk <[email protected]>
CC: Daniel P. Smith <[email protected]>

Probably not for applying, but it would be really good if we could make these bugs go away.

---
 .gitlab-ci.yml        | 2 +-
 scripts/build-argo.sh | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
.gitlab-ci.yml +1 -1
index 790a6d9f9896..1d2c72b268a3 100644
@@ -47,7 +47,7 @@ linux-6.6.56-x86_64:
   script: ./scripts/build-linux.sh
   variables:
     LINUX_VERSION: 6.6.56
-    ARGO_SHA: "705a7a8a624b42e13e655d3042059b8a85cdf6a3"
+    ARGO_SHA: "ca5473a56f62e2b4d59697c8552d151391d3fec1"
     ARGOEXEC_SHA: "d900429f6640acc6f68a3d3a4c945d7da60625d8"
 
 #
scripts/build-argo.sh +1 -2
index 0b4005f3b9a0..a18a259779c6 100644
@@ -11,7 +11,7 @@ cd "${WORKDIR}"
 #
 ARGODIR="${WORKDIR}/argo-root"
 
-git clone https://github.com/OpenXT/linux-xen-argo.git --depth=1
+git clone https://github.com/andyhhp/linux-xen-argo.git --depth=1
 git -C "${WORKDIR}/linux-xen-argo" fetch origin "${ARGO_SHA}"
 git -C "${WORKDIR}/linux-xen-argo" switch --detach FETCH_HEAD
 
@@ -20,7 +20,6 @@ git -C "${WORKDIR}/linux-xen-argo" switch --detach FETCH_HEAD
 make -C "linux-${LINUX_VERSION}" \
      M="${WORKDIR}/linux-xen-argo/argo-linux" \
      KBUILD_MODPOST_WARN=1 \
-     CFLAGS_MODULE="-Wno-error" \
      modules
 install -D -m644 "${WORKDIR}/linux-xen-argo/argo-linux/xen-argo.ko" \
      "${ARGODIR}/lib/modules/${LINUX_VERSION}/updates/xen-argo.ko"
Signature · 1 line
2.39.5
#6 lore raw

PATCH 4/4 CI: Switch to new argo artefact

In reply to Andrew Cooper

xen-argo.ko has moved into the standard location. In the short term, simply unpack argo.cpio.gz, but this can be simply concatinated with the base rootfs when it is constructed in a more convenient way.

No practical change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Jason Andryuk <[email protected]>
CC: Daniel P. Smith <[email protected]>

https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/9690063969

automation/gitlab-ci/test.yaml +1 -4
index 59a2de28c864..9a533eedb941 100644
@@ -240,14 +240,11 @@ xilinx-smoke-dom0-x86_64-gcc-debug-argo:
   needs:
     - alpine-3.18-gcc-debug
     - project: xen-project/hardware/test-artifacts
-      job: x86_64-kernel-linux-6.6.56
+      job: linux-6.6.56-x86_64
       ref: master
     - project: xen-project/hardware/test-artifacts
       job: x86_64-rootfs-alpine-3.18
       ref: master
-    - project: xen-project/hardware/test-artifacts
-      job: x86_64-argo-linux-6.6.56
-      ref: master
 
 adl-smoke-x86-64-gcc-debug:
   extends: .adl-x86-64
automation/scripts/xilinx-smoke-dom0-x86_64.sh +3 -5
index 7834ffbe0593..e97702f22827 100755
@@ -66,7 +66,7 @@ then
     PASS_MSG="TEST: Message from DOMU"
     XEN_CMD_EXTRA="argo=1,mac-permissive=1"
     DOMU_CMD="
-insmod /root/xen-argo.ko
+insmod /lib/modules/\$(uname -r)/updates/xen-argo.ko
 until false
 do
   echo \"${PASS_MSG}\"
@@ -74,15 +74,13 @@ do
 done | argo-exec -p 28333 -d 0 -- /bin/echo
 "
     DOM0_CMD="
-insmod /root/xen-argo.ko
+insmod /lib/modules/\$(uname -r)/updates/xen-argo.ko
 xl -vvv create /etc/xen/domU.cfg
 argo-exec -l -p 28333 -- /bin/echo
 "
 copy_dom0_files ()
 {
-    cp "${WORKDIR}/binaries/xen-argo.ko" "root/"
-    cp -ar "${WORKDIR}/binaries/lib/"* "usr/local/lib/"
-    cp "${WORKDIR}/binaries/argo-exec" "usr/local/bin/"
+    zcat ${WORKDIR}/binaries/argo.cpio.gz | cpio -idv
 }
 copy_domU_files () { copy_dom0_files; }
 else