From nobody Tue Feb 10 01:30:53 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+84679+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+84679+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1639383338; cv=none; d=zohomail.com; s=zohoarc; b=LpU/eCv+Q2H0WahSSIW9wEza1LKfZSYHRtHFzbh2MD14XXKo6ycr4UJMhAW0/6aOvoeoxCGNIN83s6XNNZUbin0psQtcUo72FsuweVy4LFkj5H4BAvWF1dXTdXf3mIyCl5VtCHjQsflf5ovX6v3pagmUYt+rTmjBvYq0+1hvB2o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639383338; 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=qGAoDqSqBH8hze3mmgujYgbzW8FYb6H0p0Jej+UvvE0=; b=MbceOSP5toRAuFNZxuqmOCK5qSxrJ/UFNzRdq0AG8BKtc1YHwRSZVtHdXY/wI3FcHlz7Vu4tVYVFrVBwpTppZthwBgr0P5mAbjtTyQZqH/NG24q1JyZkjKBB3dWo3IWZ3JdVtkjXxre5gXFCk8QkMVLN7qORDaVVOs0NrCOm98c= 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+84679+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 16393833387331014.5341700012724; Mon, 13 Dec 2021 00:15:38 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id GFn7YY1788612xWmOYhSnicH; Mon, 13 Dec 2021 00:15:38 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.8569.1639383337787072406 for ; Mon, 13 Dec 2021 00:15:38 -0800 X-Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-403-e2Ad4o7iOcm0QKwdRql5BA-1; Mon, 13 Dec 2021 03:15:33 -0500 X-MC-Unique: e2Ad4o7iOcm0QKwdRql5BA-1 X-Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1E03564092; Mon, 13 Dec 2021 08:15:32 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.14]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 48EE05D6D7; Mon, 13 Dec 2021 08:15:07 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 38161180062F; Mon, 13 Dec 2021 09:14:43 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Michael D Kinney , dovmurik@linux.ibm.com, Jiewen Yao , Liming Gao , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Gerd Hoffmann , Ard Biesheuvel , Sean Brogan , Jordan Justen , Pawel Polawski , Bret Barkelew , Jiewen Yao , Ard Biesheuvel Subject: [edk2-devel] [PATCH v4 4/7] OvmfPkg/PlatformCI: add MicrovmBuild.py Date: Mon, 13 Dec 2021 09:14:40 +0100 Message-Id: <20211213081443.3534714-5-kraxel@redhat.com> In-Reply-To: <20211213081443.3534714-1-kraxel@redhat.com> References: <20211213081443.3534714-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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: jWZ3Nd8jRiOJPsEB3kLi8stdx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1639383338; bh=Nuo1KQot8qnWY5VYFbscQUtU86JT2Qgl81xWN3GrA0Q=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=w1att7oOjkK0n5jNWgccp8rf2sFYHcgO42wNlY+2Ielw6lgZ1b7Lw1usdTC0nBn+xXW SNqPy3BqrTADXRveS9k+yIswPFxiLv8kaWMuPrhUs7A20OAj3KXyas/CNoGDH7cfEOgBY h9mqnwIFQ8+STIHEi4rTcOot4j5uF6r/PjE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1639383339823100002 Content-Type: text/plain; charset="utf-8" Add build test for OvmfPkg/Microvm. Signed-off-by: Gerd Hoffmann Acked-by: Jiewen Yao Acked-by: Ard Biesheuvel Reviewed-by: Philippe Mathieu-Daude --- .../.azurepipelines/Ubuntu-GCC5.yml | 10 +++++ OvmfPkg/PlatformCI/MicrovmBuild.py | 37 +++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 OvmfPkg/PlatformCI/MicrovmBuild.py diff --git a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml b/OvmfPkg/P= latformCI/.azurepipelines/Ubuntu-GCC5.yml index cc37a2be8f93..cd7eaae54ec7 100644 --- a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml +++ b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml @@ -122,6 +122,16 @@ jobs: # this build is for freebsd bhyve not qemu-kvm Run.Flags: "QEMU_SKIP=3DTRUE" Run: $(should_run) + + MICROVM_X64_DEBUG: + Build.File: "$(package)/PlatformCI/MicrovmBuild.py" + Build.Arch: "X64" + Build.Flags: "" + Build.Target: "DEBUG" + # no storage supported by microvm build + # can't boot to uefi shell -> skip test + Run.Flags: "QEMU_SKIP=3DTRUE" + Run: $(should_run) workspace: clean: all =20 diff --git a/OvmfPkg/PlatformCI/MicrovmBuild.py b/OvmfPkg/PlatformCI/Microv= mBuild.py new file mode 100644 index 000000000000..7ad114969611 --- /dev/null +++ b/OvmfPkg/PlatformCI/MicrovmBuild.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.dirname(os.path.abspath(__file__))) +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 "Microvm/MicrovmX64.dsc" + +import PlatformBuildLib +PlatformBuildLib.CommonPlatform =3D CommonPlatform --=20 2.33.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 (#84679): https://edk2.groups.io/g/devel/message/84679 Mute This Topic: https://groups.io/mt/87693636/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-