@samitouri / QOSamiQemu / commits / 46a593eb8a

gitlab-ci: Remove job building OpenSBI firmware binaries

The OpenSBI firmware build job follows the same pattern as the EDK2 job [1] that was removed earlier [2]: it exists to produce firmware binaries from CI artifacts, but those outputs are not consumed by the tree. Remove the job definition and its project include to avoid maintaining bitrotting container and firmware build logic. [1] 71920809ceab ("gitlab-ci.yml: Add jobs to build EDK2 firmware binaries") [2] 690ceb71936f ("gitlab-ci: Remove job building EDK2 firmware binaries") Signed-off-by: Bin Meng <bin.meng@processmission.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Message-ID: <20260706161716.29488-1-bin.meng@processmission.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>

Bin Meng committed Jul 7, 2026 at 00:17 UTC 46a593eb8aae671ee7659f14e913dd93b14d25ab
4 files changed -125
.gitlab-ci.d/opensbi.yml deleted
-88
@@ -1,88 +0,0 @@
1 -# All jobs needing docker-opensbi must use the same rules it uses.
2 -.opensbi_job_rules:
3 - rules:
4 - # Forks don't get pipelines unless QEMU_CI=1 or QEMU_CI=2 is set
5 - - if: '$QEMU_CI != "1" && $QEMU_CI != "2" && $CI_PROJECT_NAMESPACE != "qemu-project"'
6 - when: never
7 -
8 - # In forks, if QEMU_CI=1 is set, then create manual job
9 - # if any files affecting the build output are touched
10 - - if: '$QEMU_CI == "1" && $CI_PROJECT_NAMESPACE != "qemu-project"'
11 - changes:
12 - - .gitlab-ci.d/opensbi.yml
13 - - .gitlab-ci.d/opensbi/Dockerfile
14 - - roms/opensbi/*
15 - when: manual
16 -
17 - # In forks, if QEMU_CI=1 is set, then create manual job
18 - # if the branch/tag starts with 'opensbi'
19 - - if: '$QEMU_CI == "1" && $CI_PROJECT_NAMESPACE != "qemu-project" && $CI_COMMIT_REF_NAME =~ /^opensbi/'
20 - when: manual
21 -
22 - # In forks, if QEMU_CI=1 is set, then create manual job
23 - # if the last commit msg contains 'OpenSBI' (case insensitive)
24 - - if: '$QEMU_CI == "1" && $CI_PROJECT_NAMESPACE != "qemu-project" && $CI_COMMIT_MESSAGE =~ /opensbi/i'
25 - when: manual
26 -
27 - # Scheduled runs on mainline don't get pipelines except for the special Coverity job
28 - - if: '$CI_PROJECT_NAMESPACE == $QEMU_CI_UPSTREAM && $CI_PIPELINE_SOURCE == "schedule"'
29 - when: never
30 -
31 - # Run if any files affecting the build output are touched
32 - - changes:
33 - - .gitlab-ci.d/opensbi.yml
34 - - .gitlab-ci.d/opensbi/Dockerfile
35 - - roms/opensbi/*
36 - when: on_success
37 -
38 - # Run if the branch/tag starts with 'opensbi'
39 - - if: '$CI_COMMIT_REF_NAME =~ /^opensbi/'
40 - when: on_success
41 -
42 - # Run if the last commit msg contains 'OpenSBI' (case insensitive)
43 - - if: '$CI_COMMIT_MESSAGE =~ /opensbi/i'
44 - when: on_success
45 -
46 -docker-opensbi:
47 - extends: .opensbi_job_rules
48 - stage: containers
49 - image: docker:latest
50 - services:
51 - - docker:dind
52 - variables:
53 - GIT_DEPTH: 3
54 - IMAGE_TAG: $CI_REGISTRY_IMAGE:opensbi-cross-build
55 - before_script:
56 - - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
57 - - until docker info; do sleep 1; done
58 - script:
59 - - docker pull $IMAGE_TAG || true
60 - - docker build --cache-from $IMAGE_TAG --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
61 - --tag $IMAGE_TAG .gitlab-ci.d/opensbi
62 - - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
63 - - docker push $IMAGE_TAG
64 -
65 -build-opensbi:
66 - extends: .opensbi_job_rules
67 - stage: build
68 - needs: ['docker-opensbi']
69 - artifacts:
70 - when: on_success
71 - paths: # 'artifacts.zip' will contains the following files:
72 - - pc-bios/opensbi-riscv32-generic-fw_dynamic.bin
73 - - pc-bios/opensbi-riscv64-generic-fw_dynamic.bin
74 - - opensbi32-generic-stdout.log
75 - - opensbi32-generic-stderr.log
76 - - opensbi64-generic-stdout.log
77 - - opensbi64-generic-stderr.log
78 - image: $CI_REGISTRY_IMAGE:opensbi-cross-build
79 - variables:
80 - GIT_DEPTH: 3
81 - script: # Clone the required submodules and build OpenSBI
82 - - git submodule update --init roms/opensbi
83 - - export JOBS=$(($(getconf _NPROCESSORS_ONLN) + 1))
84 - - echo "=== Using ${JOBS} simultaneous jobs ==="
85 - - make -j${JOBS} -C roms/opensbi clean
86 - - make -j${JOBS} -C roms opensbi32-generic 2>&1 1>opensbi32-generic-stdout.log | tee -a opensbi32-generic-stderr.log >&2
87 - - make -j${JOBS} -C roms/opensbi clean
88 - - make -j${JOBS} -C roms opensbi64-generic 2>&1 1>opensbi64-generic-stdout.log | tee -a opensbi64-generic-stderr.log >&2
.gitlab-ci.d/opensbi/Dockerfile deleted
-34
@@ -1,34 +0,0 @@
1 -#
2 -# Docker image to cross-compile OpenSBI firmware binaries
3 -#
4 -FROM ubuntu:18.04
5 -
6 -MAINTAINER Bin Meng <bmeng.cn@gmail.com>
7 -
8 -# Install packages required to build OpenSBI
9 -RUN apt update \
10 - && \
11 - \
12 - DEBIAN_FRONTEND=noninteractive \
13 - apt install --assume-yes --no-install-recommends \
14 - build-essential \
15 - ca-certificates \
16 - git \
17 - make \
18 - python3 \
19 - wget \
20 - && \
21 - \
22 - rm -rf /var/lib/apt/lists/*
23 -
24 -# Manually install the kernel.org "Crosstool" based toolchains for gcc-8.3
25 -RUN wget -O - \
26 - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/8.3.0/x86_64-gcc-8.3.0-nolibc-riscv32-linux.tar.xz \
27 - | tar -C /opt -xJ
28 -RUN wget -O - \
29 - https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/8.3.0/x86_64-gcc-8.3.0-nolibc-riscv64-linux.tar.xz \
30 - | tar -C /opt -xJ
31 -
32 -# Export the toolchains to the system path
33 -ENV PATH="/opt/gcc-8.3.0-nolibc/riscv32-linux/bin:${PATH}"
34 -ENV PATH="/opt/gcc-8.3.0-nolibc/riscv64-linux/bin:${PATH}"
.gitlab-ci.d/qemu-project.yml
-1
@@ -11,7 +11,6 @@ default:
11 include:
12 - local: '/.gitlab-ci.d/base.yml'
13 - local: '/.gitlab-ci.d/stages.yml'
14 - - local: '/.gitlab-ci.d/opensbi.yml'
14 - local: '/.gitlab-ci.d/containers.yml'
15 - local: '/.gitlab-ci.d/crossbuilds.yml'
16 - local: '/.gitlab-ci.d/buildtest.yml'
MAINTAINERS
-2
@@ -4127,8 +4127,6 @@ R: Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>
4127 L: qemu-riscv@nongnu.org
4128 S: Supported
4129 F: pc-bios/opensbi-*
4130 -F: .gitlab-ci.d/opensbi.yml
4131 -F: .gitlab-ci.d/opensbi/
4130
4131 Clock framework
4132 M: Luc Michel <luc@lmichel.fr>