From nobody Tue Feb 10 00:39: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+84681+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+84681+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1639383353; cv=none; d=zohomail.com; s=zohoarc; b=LVuXhkFxLwPrC6jyD5xY0dqwPgU00yLDewOles1LYW7tPkwsCWtr5sV8y3yBEyWIiT4ry8MgBLplxlkUjpU9SWq1T979MSNu7BSUF8Fsjo08oet3pJoi8j6CFIw72BGqt7Nfc4C8RO7jVd2dDc6v+C7ZivFcaV7sOaouk8mrsHI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639383353; 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=Gmwpa0Sf7OcKbTg9w3Eqk3nkf6r1wcgBzhbeLIphNnI=; b=E1LZ40t5GfHG7m3GcX5dHa0kcZQUC2BJm24j8D11kw4utOY/YNrVejgRkWXp+VxWXHqV6/6LrXoy5QQNLOmwxVTZuG4npQ6mKTU9CTy2tqJCu5Z3URQ4/gzYXcejZRcz4gSixwCcNnQefKFTyZKXQXTG//LoOgqL/mhjKQc619Q= 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+84681+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 1639383353776174.57547994065214; Mon, 13 Dec 2021 00:15:53 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id tQvRYY1788612xS495tEmcrG; Mon, 13 Dec 2021 00:15:53 -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.web10.8627.1639383352685480295 for ; Mon, 13 Dec 2021 00:15:52 -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-499-iCx7XopGOoifwQEpsjpcdg-1; Mon, 13 Dec 2021 03:15:48 -0500 X-MC-Unique: iCx7XopGOoifwQEpsjpcdg-1 X-Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CF3101018721; Mon, 13 Dec 2021 08:15:46 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.14]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B00C37D93D; Mon, 13 Dec 2021 08:15:33 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 3B6831800631; 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 5/7] OvmfPkg/PlatformCI: add AmdSevBuild.py Date: Mon, 13 Dec 2021 09:14:41 +0100 Message-Id: <20211213081443.3534714-6-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.13 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: ms1l4m94CphbG5RPzIypxYH5x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1639383353; bh=KkomW5k5V+PGDcENme1DVndOxml2FFtMNCf/bLXWrO8=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=FY+VHmXXeVoVF1pF6iSyE/Hv/3ZEpUGsUrWkg+OpQXli3iZBq/FNnc2WWEiMQSeHYGf pz1UmQGtyP7pbBjhC2yOZj8B9Bexwx7g9ySoVOVEwnNRxx6nllxBr4pyBENdDFve0ig6X pu8JOjypzBmc3faLT5CfGOgnVbtGR7yuHqo= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1639383354129100002 Content-Type: text/plain; charset="utf-8" Add build test for OvmfPkg/AmdSev. 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/AmdSevBuild.py | 37 +++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 OvmfPkg/PlatformCI/AmdSevBuild.py diff --git a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml b/OvmfPkg/P= latformCI/.azurepipelines/Ubuntu-GCC5.yml index cd7eaae54ec7..803bc8bbba6a 100644 --- a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml +++ b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml @@ -114,6 +114,16 @@ jobs: Run.Flags: $(run_flags) Run: $(should_run) =20 + AMDSEV_X64_DEBUG: + Build.File: "$(package)/PlatformCI/AmdSevBuild.py" + Build.Arch: "X64" + Build.Flags: "" + Build.Target: "DEBUG" + # restricted + stripped down build + # can't boot to uefi shell -> skip test + Run.Flags: "QEMU_SKIP=3DTRUE" + Run: $(should_run) + BHYVE_X64_DEBUG: Build.File: "$(package)/PlatformCI/BhyveBuild.py" Build.Arch: "X64" diff --git a/OvmfPkg/PlatformCI/AmdSevBuild.py b/OvmfPkg/PlatformCI/AmdSevB= uild.py new file mode 100644 index 000000000000..2dd72cfe80d9 --- /dev/null +++ b/OvmfPkg/PlatformCI/AmdSevBuild.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 "AmdSev/AmdSevX64.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 (#84681): https://edk2.groups.io/g/devel/message/84681 Mute This Topic: https://groups.io/mt/87693640/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-