[SLOF] [PATCH] Add a simple .gitlab-ci.yml file for CI compile testing

Thomas Huth thuth at redhat.com
Fri Oct 17 19:21:35 AEDT 2025


From: Thomas Huth <thuth at redhat.com>

Now that we've got the SLOF repository on Gitlab, we can use its
CI to make sure that both boards can always be compiled properly.
For board-qemu, we can also run simple tests, like checking that
the nvramrc works as expected.

Signed-off-by: Thomas Huth <thuth at redhat.com>
---
 .gitlab-ci.yml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..2f0131e
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,16 @@
+before_script:
+ - apt-get update -qq
+ - apt-get install -y --no-install-recommends gcc-powerpc64-linux-gnu make
+
+board-js2x:
+ script:
+ - make -j$(nproc) js2x CROSS=powerpc64-linux-gnu-
+
+board-qemu:
+ script:
+ - apt-get install -y --no-install-recommends qemu-system-ppc seabios
+ - make -j$(nproc) qemu CROSS=powerpc64-linux-gnu-
+ - qemu-system-ppc64 -nographic -bios boot_rom.bin
+    -prom-env 'use-nvramrc?=true' -prom-env 'nvramrc=." SUCCESS" cr halt'
+    | tee log.txt
+ - grep -q SUCCESS log.txt
-- 
2.51.0



More information about the SLOF mailing list