From nobody Mon Feb 9 11:33:22 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+82647+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+82647+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635168026; cv=none; d=zohomail.com; s=zohoarc; b=nYIG6hf+tSC03IUqAxQuDhf1H8/yI+d9lIoSob5kE9ibc2YMIEVG+arMuudj/aWo8i8Wx4qLuAM9ZyLEnzh//7NUjGhNIci/LN22W5z8Wm3x1AlL6IzVkAqi2LhaGWlGl61QcQpcLBFJj3OZ9s/Aa1nlvzPs8vyVnkPMVyBEwyo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635168026; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=4d6mOKHrarc2NjXmUy2UlUeZu+MuPWg0jl+m8Dj1k1A=; b=HSPZzRVXw31Gy/yZxhToVbR8HQ2nCh77GlbcGAo2gHOK47ktIRghqDkkXzVBRIrsfaW1s+tvQonzD74ZDuxB50F2FsG487H8J0gwjYtHAGPioUkmBX48kP7DsTU0019L9odsD4t10r5akh5/Ybza4ShC/6p526XPABFwyOk7JAg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+82647+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1635168026071222.58191945441786; Mon, 25 Oct 2021 06:20:26 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id YtcVYY1788612xSsrfPcZP87; Mon, 25 Oct 2021 06:20:25 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.groups.io with SMTP id smtpd.web12.31947.1635168024710079465 for ; Mon, 25 Oct 2021 06:20:24 -0700 X-Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-593-4Tep42xxNdWbN0Ic8yUVHg-1; Mon, 25 Oct 2021 09:20:18 -0400 X-MC-Unique: 4Tep42xxNdWbN0Ic8yUVHg-1 X-Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 434B61926DB2; Mon, 25 Oct 2021 13:20:17 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 926391037F3E; Mon, 25 Oct 2021 13:20:05 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 865AC1801A99; Mon, 25 Oct 2021 15:19:31 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Bret Barkelew , Gerd Hoffmann , Jordan Justen , Jiewen Yao , Ard Biesheuvel , Sean Brogan , Liming Gao , Michael D Kinney Subject: [edk2-devel] [PATCH v2 7/7] OvmfPkg/PlatformCI: add XenBuild.py Date: Mon, 25 Oct 2021 15:19:31 +0200 Message-Id: <20211025131931.129666-8-kraxel@redhat.com> In-Reply-To: <20211025131931.129666-1-kraxel@redhat.com> References: <20211025131931.129666-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kraxel@redhat.com X-Gm-Message-State: lWEtSnWFfXLpYIHTUcoNGwr6x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635168025; bh=cyo/7u5hGM0fET5xKfVUSZORg8QFf361d6IUqphf9pQ=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=Nl4GApjZf8MnYBewSfXMftTt7pMFKi1AmYL+gtiUbLGamU9FYjF6g2AS+mu8hOUi3an ZDzHZgipHD2iUO+8rVDFsLXMGqHdCs2+s9WS+rQSFHMFJCzKiXnpuWkR3RerZETxcjfHq xymkQXKUqwUnZE7+C4d0ZTuPlkD9sozQKyY= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635168027910100001 Content-Type: text/plain; charset="utf-8" Add build test for OvmfXen. Signed-off-by: Gerd Hoffmann --- .../.azurepipelines/Ubuntu-GCC5.yml | 9 +++++ OvmfPkg/PlatformCI/XenBuild.py | 37 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 OvmfPkg/PlatformCI/XenBuild.py diff --git a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml b/OvmfPkg/P= latformCI/.azurepipelines/Ubuntu-GCC5.yml index 803bc8bbba6a..2de0688cfeb1 100644 --- a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml +++ b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml @@ -142,6 +142,15 @@ jobs: # can't boot to uefi shell -> skip test Run.Flags: "QEMU_SKIP=3DTRUE" Run: $(should_run) + + OVMF_XEN_X64_DEBUG: + Build.File: "$(package)/PlatformCI/XenBuild.py" + Build.Arch: "X64" + Build.Flags: "" + Build.Target: "DEBUG" + # this build is for xen not qemu-kvm + Run.Flags: "QEMU_SKIP=3DTRUE" + Run: $(should_run) workspace: clean: all =20 diff --git a/OvmfPkg/PlatformCI/XenBuild.py b/OvmfPkg/PlatformCI/XenBuild.py new file mode 100644 index 000000000000..3715a838cabe --- /dev/null +++ b/OvmfPkg/PlatformCI/XenBuild.py @@ -0,0 +1,37 @@ +# @file +# Script to Build OVMF UEFI firmware +# +# Copyright (c) Microsoft Corporation. +# SPDX-License-Identifier: BSD-2-Clause-Patent +## +import os +import sys + +sys.path.append(os.path.join(os.getcwd(), 'OvmfPkg', 'PlatformCI')) +from PlatformBuildLib import SettingsManager +from PlatformBuildLib import PlatformBuilder + + # ####################################################################= ################### # + # Common Configuration = # + # ####################################################################= ################### # +class CommonPlatform(): + ''' Common settings for this platform. Define static data here and use + for the different parts of stuart + ''' + PackagesSupported =3D ("OvmfPkg",) + ArchSupported =3D ("X64",) + TargetsSupported =3D ("DEBUG", "RELEASE", "NOOPT") + Scopes =3D ('ovmf', 'edk2-build') + WorkspaceRoot =3D os.path.realpath(os.path.join( + os.path.dirname(os.path.abspath(__file__)), "..", "..")) + + @classmethod + def GetDscName(cls, ArchCsv: str) -> str: + ''' return the DSC given the architectures requested. + + ArchCsv: csv string containing all architectures to build + ''' + return "OvmfXen.dsc" + +import PlatformBuildLib +PlatformBuildLib.CommonPlatform =3D CommonPlatform --=20 2.31.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#82647): https://edk2.groups.io/g/devel/message/82647 Mute This Topic: https://groups.io/mt/86576687/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-