From: Thomas Huth <thuth@redhat.com>
To: qemu-devel@nongnu.org, Peter Maydell <peter.maydell@linaro.org>
Cc: "Philippe Mathieu-Daudé" <philmd@redhat.com>
Subject: [PULL 03/13] gitlab-ci: Introduce 'cross_accel_build_job' template
Date: Wed, 9 Dec 2020 10:48:46 +0100 [thread overview]
Message-ID: <20201209094856.17788-4-thuth@redhat.com> (raw)
In-Reply-To: <20201209094856.17788-1-thuth@redhat.com>
From: Philippe Mathieu-Daudé <philmd@redhat.com>
Introduce a job template to cross-build accelerator specific
jobs (enable a specific accelerator, disabling the others).
The specific accelerator is selected by the $ACCEL environment
variable (default to KVM).
Extra options such disabling other accelerators are passed
via the $ACCEL_CONFIGURE_OPTS environment variable.
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20201207131503.3858889-4-philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
.gitlab-ci.d/crossbuilds.yml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml
index 099949aaef..b59516301f 100644
--- a/.gitlab-ci.d/crossbuilds.yml
+++ b/.gitlab-ci.d/crossbuilds.yml
@@ -13,6 +13,23 @@
xtensa-softmmu"
- make -j$(expr $(nproc) + 1) all check-build
+# Job to cross-build specific accelerators.
+#
+# Set the $ACCEL variable to select the specific accelerator (default to
+# KVM), and set extra options (such disabling other accelerators) via the
+# $ACCEL_CONFIGURE_OPTS variable.
+.cross_accel_build_job:
+ stage: build
+ image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
+ timeout: 30m
+ script:
+ - mkdir build
+ - cd build
+ - PKG_CONFIG_PATH=$PKG_CONFIG_PATH
+ ../configure --enable-werror $QEMU_CONFIGURE_OPTS --disable-tools
+ --enable-${ACCEL:-kvm} $ACCEL_CONFIGURE_OPTS
+ - make -j$(expr $(nproc) + 1) all check-build
+
.cross_user_build_job:
stage: build
image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
--
2.18.4
next prev parent reply other threads:[~2020-12-09 9:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-09 9:48 [PULL 00/13] Gitlab-CI and test patches Thomas Huth
2020-12-09 9:48 ` [PULL 01/13] gitlab-ci: Document 'build-tcg-disabled' is a KVM X86 job Thomas Huth
2020-12-09 9:48 ` [PULL 02/13] gitlab-ci: Replace YAML anchors by extends (cross_system_build_job) Thomas Huth
2020-12-09 9:48 ` Thomas Huth [this message]
2020-12-09 9:48 ` [PULL 04/13] gitlab-ci: Add KVM s390x cross-build jobs Thomas Huth
2020-12-09 9:48 ` [PULL 05/13] gitlab-ci: Add Xen " Thomas Huth
2020-12-09 9:48 ` [PULL 06/13] test-qga: fix a resource leak in test_qga_guest_get_osinfo() Thomas Huth
2020-12-09 9:48 ` [PULL 07/13] tests/qtest/fuzz-test: Quit test_lp1878642 once done Thomas Huth
2020-12-09 9:48 ` [PULL 08/13] fuzz: avoid double-fetches by default Thomas Huth
2020-12-09 9:48 ` [PULL 09/13] gitlab-ci: Split CONFIGURE_ARGS one argument per line for build-disabled Thomas Huth
2020-12-09 9:48 ` [PULL 10/13] gitlab-ci: Update 'build-disabled' to cover all configurable options Thomas Huth
2020-12-09 9:48 ` [PULL 11/13] gitlab-ci: Move user-static test across to gitlab Thomas Huth
2020-12-09 9:48 ` [PULL 12/13] gitlab-ci: Move coroutine tests " Thomas Huth
2020-12-09 9:48 ` [PULL 13/13] hw/m68k/mcf5206: Don't leak IRQs in mcf5206_mbar_realize() Thomas Huth
2020-12-09 20:08 ` [PULL 00/13] Gitlab-CI and test patches Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201209094856.17788-4-thuth@redhat.com \
--to=thuth@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).