From nobody Tue Nov 18 04:25:27 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1607346935; cv=none; d=zohomail.com; s=zohoarc; b=eZIVPuUnYxplFci4/cO0us7bmo/WsE8HEYS7N1M7R36i9ZBGHv2kBW3fA7A7iKbJ01NrQXDJV9vebLemeJQwPxma6kXy4lMN2r6NpN9h5hRS0+uoafhQcJ2wFtCNXJMZUFs50/3rmjOe0DwgxMC4rZr7U4zw0/VN/94BzT14P4s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607346935; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=LrpyM62Xrmp0dmj6zHS9IbusrVswsePAgvUQq8W1ha4=; b=dQB7msT2yEzlwpOUUSSa21Fe8wvk+jVl3nmQyKivGAipP3jgsnOZ3chI0r7vOlwrKsPaTUVzX1DtAk5SoHWBJ3eEPzyUM7CnpwRGGaL6ETwnTEytRoC21f9UfNP0UYbw6uGrErMLNQOCbjMPPV9/qMbdN2IARWK6SkfYpSWlIGw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1607346935862913.2761658481616; Mon, 7 Dec 2020 05:15:35 -0800 (PST) Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-132-J1oeJsiiMfOy0GE6tsr8HQ-1; Mon, 07 Dec 2020 08:15:24 -0500 Received: by mail-wm1-f69.google.com with SMTP id y187so5310254wmy.3 for ; Mon, 07 Dec 2020 05:15:24 -0800 (PST) Return-Path: Return-Path: Received: from localhost.localdomain (101.red-88-21-206.staticip.rima-tde.net. [88.21.206.101]) by smtp.gmail.com with ESMTPSA id b3sm14942829wrp.57.2020.12.07.05.15.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Dec 2020 05:15:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607346926; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LrpyM62Xrmp0dmj6zHS9IbusrVswsePAgvUQq8W1ha4=; b=iYVyhUlO7Zg+2vqUm7Wcdm4bsG18bLtBV4hSs+wqhvKK6vb9+sutl90vA4N8eMqEZi4iUC NsK9NTsM+q9TxAnVPZ3XS3syAmz13qNdVHLg4ikUy4q5IUeFiO3w2zJPiE5IP2iHbJfE+x QiF4zHRa+QkUI/H9qRAfFzIvfzaeRCc= X-MC-Unique: J1oeJsiiMfOy0GE6tsr8HQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LrpyM62Xrmp0dmj6zHS9IbusrVswsePAgvUQq8W1ha4=; b=NpLFuzol2pHhckkpSzkAqdcKlKuVJncWr7TLOrn75guPVz4D42zXkm7tqNK13LScmj mUChCPsZXB0CjRuCWA0uUFva5OzTaFrOY8+P546bJvU5C6odyZGdeJEtS1IRcGhos6Gp q0Ruj6qsuHUeBLS2KuEW/BnEoLygtQvqg2Kb6Bh3dNJC6DLEx0G3RM22uleZla37N164 Q3cxsTUMx+e1IRivFWsGdNNd+zbV8Pqz6tFiOWzQZ52Yc10HhLskpkWeIDruxxY/fF3U DD1vhFOASLQH0H2FTqMDnLE+EdxCFCwlF2asHByX/tOhkEFe845LFIUs3Z0pEDI+F0Uy /NbA== X-Gm-Message-State: AOAM533jfzIoS+noNMWY3yxBXl6IUmlwca6kWqmZvQPX6wO7Q/0H8O0A KTAhsHnWY2SWOisRQAdHra36tVrfPz+OC9qNTaD9rUwoUc85cVfQwvsp9t50eDUFbvz+pU7K9hF Jg9MqWoOscHOJwA== X-Received: by 2002:adf:eec6:: with SMTP id a6mr7411044wrp.239.1607346923077; Mon, 07 Dec 2020 05:15:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrSsP/k6tbNGXTd5ADaSfYhwBX1LosPwHROoqvLj3ywUi8jkYDiFzi1eqHTc0kTww1719V1w== X-Received: by 2002:adf:eec6:: with SMTP id a6mr7411023wrp.239.1607346922931; Mon, 07 Dec 2020 05:15:22 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Christian Borntraeger , Stefano Stabellini , Marcelo Tosatti , kvm@vger.kernel.org, Paolo Bonzini , Anthony Perard , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-s390x@nongnu.org, Halil Pasic , Willian Rampazzo , Paul Durrant , Cornelia Huck , xen-devel@lists.xenproject.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Claudio Fontana , Wainer dos Santos Moschetta Subject: [PATCH v3 3/5] gitlab-ci: Introduce 'cross_accel_build_job' template Date: Mon, 7 Dec 2020 14:15:01 +0100 Message-Id: <20201207131503.3858889-4-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201207131503.3858889-1-philmd@redhat.com> References: <20201207131503.3858889-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @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 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- .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 099949aaef3..b59516301f4 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 =20 +# 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=3D$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 --=20 2.26.2