From nobody Wed May 8 21:17:36 2024 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+83234+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+83234+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635930706; cv=none; d=zohomail.com; s=zohoarc; b=RoQfVLk2RD2HcXOwigb++avRysW8TifhviBC8b+hgnC/cB14ZlNq1afOPSbG/BN+l5dL1u6loZj6KEtG2ibxdSk3kNiAFel8mMS25MfXzAHgpfkpjU61XydJ70eY3pFXnYT+RmbT00qfjCl1r/oMU32CW2xHNNp0biwXFMoH2EM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635930706; 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=/ZAUQ5FX2XuyVltEZDT0DRLp5nylEjPq/+MrYxiNTxk=; b=Lac0ZD68pRUn0PzMpTIAKw7VTpGzdUdnt9mla78Dx6gtQwQpCXDxOz9LNABd5LTgfvV1WPaOgB/HJaM4ZLwuJRw5jCVu1kZ4U/07/wmPetInxQ/1IbHu0s8kyEYSQf034hiSanSi2DRDpzhRHwcjAFs40S+sfp9XQhC+9LT+rXE= 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+83234+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 1635930706626394.9527040883588; Wed, 3 Nov 2021 02:11:46 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id RHV3YY1788612xnSlKhXg3Nl; Wed, 03 Nov 2021 02:11:46 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.5179.1635930705391744009 for ; Wed, 03 Nov 2021 02:11:45 -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-512-6D6-CZFaNAyraG4w2o_3NA-1; Wed, 03 Nov 2021 05:11:41 -0400 X-MC-Unique: 6D6-CZFaNAyraG4w2o_3NA-1 X-Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id CFD1E10A8E04; Wed, 3 Nov 2021 09:11:39 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.194.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1CD0A60C05; Wed, 3 Nov 2021 09:11:24 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 3AFE11800930; Wed, 3 Nov 2021 10:11:23 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Bret Barkelew , Michael D Kinney , Sean Brogan , Gerd Hoffmann , Ard Biesheuvel , Jordan Justen , Liming Gao , Jiewen Yao , Jiewen Yao , Ard Biesheuvel Subject: [edk2-devel] [PATCH v3 1/7] OvmfPkg/PlatformCI: factor out PlatformBuildLib.py Date: Wed, 3 Nov 2021 10:11:17 +0100 Message-Id: <20211103091123.2953172-2-kraxel@redhat.com> In-Reply-To: <20211103091123.2953172-1-kraxel@redhat.com> References: <20211103091123.2953172-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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: rjKePIJAWZv2E7ZG4KkY61VDx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635930706; bh=RM0C+HajeWO5wFcOHqt0L+67J/N+IEBX/BECtS+LLaQ=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=W5x2VzY3ULZQUGUXQJD/ALKFNUWDtx8ULhFiPrycCjOxllDdIf118zHZsSiUyN6oXTV hQueqKSZ8QkFJViKez6ZntL1Alvn1r4tZ2W56ObNlNNPzpgGOsrdcvf+5tKjOpXi6MLBF pkNhdbFH0VNjA3Mr94D9xmw4VvXFgT6YvQA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635930707951100003 Content-Type: text/plain; charset="utf-8" Move SettingsManager and PlatformBuilder classes to PlatformBuildLib.py file, keep only CommonPlatform class in PlatformBuild.py. Allows reusing these classes for other builds. Pure code motion, no functional change. Acked-by: Jiewen Yao Acked-by: Ard Biesheuvel Signed-off-by: Gerd Hoffmann --- OvmfPkg/PlatformCI/PlatformBuild.py | 223 +----------------- .../{PlatformBuild.py =3D> PlatformBuildLib.py} | 32 --- 2 files changed, 6 insertions(+), 249 deletions(-) copy OvmfPkg/PlatformCI/{PlatformBuild.py =3D> PlatformBuildLib.py} (87%) diff --git a/OvmfPkg/PlatformCI/PlatformBuild.py b/OvmfPkg/PlatformCI/Platf= ormBuild.py index 627bb7b992db..6c541cdea4a5 100644 --- a/OvmfPkg/PlatformCI/PlatformBuild.py +++ b/OvmfPkg/PlatformCI/PlatformBuild.py @@ -5,17 +5,11 @@ # SPDX-License-Identifier: BSD-2-Clause-Patent ## import os -import logging -import io - -from edk2toolext.environment import shell_environment -from edk2toolext.environment.uefi_build import UefiBuilder -from edk2toolext.invocables.edk2_platform_build import BuildSettingsManager -from edk2toolext.invocables.edk2_setup import SetupSettingsManager, Requir= edSubmodule -from edk2toolext.invocables.edk2_update import UpdateSettingsManager -from edk2toolext.invocables.edk2_pr_eval import PrEvalSettingsManager -from edk2toollib.utility_functions import RunCmd +import sys =20 +sys.path.append(os.path.dirname(os.path.abspath(__file__))) +from PlatformBuildLib import SettingsManager +from PlatformBuildLib import PlatformBuilder =20 # ####################################################################= ################### # # Common Configuration = # @@ -45,210 +39,5 @@ class CommonPlatform(): dsc +=3D ".dsc" return dsc =20 - - # ####################################################################= ################### # - # Configuration for Update & Setup = # - # ####################################################################= ################### # -class SettingsManager(UpdateSettingsManager, SetupSettingsManager, PrEvalS= ettingsManager): - - def GetPackagesSupported(self): - ''' return iterable of edk2 packages supported by this build. - These should be edk2 workspace relative paths ''' - return CommonPlatform.PackagesSupported - - def GetArchitecturesSupported(self): - ''' return iterable of edk2 architectures supported by this build = ''' - return CommonPlatform.ArchSupported - - def GetTargetsSupported(self): - ''' return iterable of edk2 target tags supported by this build ''' - return CommonPlatform.TargetsSupported - - def GetRequiredSubmodules(self): - ''' return iterable containing RequiredSubmodule objects. - If no RequiredSubmodules return an empty iterable - ''' - rs =3D [] - - # intentionally declare this one with recursive false to avoid ove= rhead - rs.append(RequiredSubmodule( - "CryptoPkg/Library/OpensslLib/openssl", False)) - - # To avoid maintenance of this file for every new submodule - # lets just parse the .gitmodules and add each if not already in l= ist. - # The GetRequiredSubmodules is designed to allow a build to optimi= ze - # the desired submodules but it isn't necessary for this repositor= y. - result =3D io.StringIO() - ret =3D RunCmd("git", "config --file .gitmodules --get-regexp path= ", workingdir=3Dself.GetWorkspaceRoot(), outstream=3Dresult) - # Cmd output is expected to look like: - # submodule.CryptoPkg/Library/OpensslLib/openssl.path CryptoPkg/Li= brary/OpensslLib/openssl - # submodule.SoftFloat.path ArmPkg/Library/ArmSoftFloatLib/berkeley= -softfloat-3 - if ret =3D=3D 0: - for line in result.getvalue().splitlines(): - _, _, path =3D line.partition(" ") - if path is not None: - if path not in [x.path for x in rs]: - rs.append(RequiredSubmodule(path, True)) # add it = with recursive since we don't know - return rs - - def SetArchitectures(self, list_of_requested_architectures): - ''' Confirm the requests architecture list is valid and configure = SettingsManager - to run only the requested architectures. - - Raise Exception if a list_of_requested_architectures is not suppor= ted - ''' - unsupported =3D set(list_of_requested_architectures) - set(self.Ge= tArchitecturesSupported()) - if(len(unsupported) > 0): - errorString =3D ( "Unsupported Architecture Requested: " + " "= .join(unsupported)) - logging.critical( errorString ) - raise Exception( errorString ) - self.ActualArchitectures =3D list_of_requested_architectures - - def GetWorkspaceRoot(self): - ''' get WorkspacePath ''' - return CommonPlatform.WorkspaceRoot - - def GetActiveScopes(self): - ''' return tuple containing scopes that should be active for this = process ''' - return CommonPlatform.Scopes - - def FilterPackagesToTest(self, changedFilesList: list, potentialPackag= esList: list) -> list: - ''' Filter other cases that this package should be built - based on changed files. This should cover things that can't - be detected as dependencies. ''' - build_these_packages =3D [] - possible_packages =3D potentialPackagesList.copy() - for f in changedFilesList: - # BaseTools files that might change the build - if "BaseTools" in f: - if os.path.splitext(f) not in [".txt", ".md"]: - build_these_packages =3D possible_packages - break - - # if the azure pipeline platform template file changed - if "platform-build-run-steps.yml" in f: - build_these_packages =3D possible_packages - break - - return build_these_packages - - def GetPlatformDscAndConfig(self) -> tuple: - ''' If a platform desires to provide its DSC then Policy 4 will ev= aluate if - any of the changes will be built in the dsc. - - The tuple should be (, ) - ''' - dsc =3D CommonPlatform.GetDscName(",".join(self.ActualArchitecture= s)) - return (f"OvmfPkg/{dsc}", {}) - - - # ####################################################################= ################### # - # Actual Configuration for Platform Build = # - # ####################################################################= ################### # -class PlatformBuilder( UefiBuilder, BuildSettingsManager): - def __init__(self): - UefiBuilder.__init__(self) - - def AddCommandLineOptions(self, parserObj): - ''' Add command line options to the argparser ''' - parserObj.add_argument('-a', "--arch", dest=3D"build_arch", type= =3Dstr, default=3D"IA32,X64", - help=3D"Optional - CSV of architecture to build. IA32 will us= e IA32 for Pei & Dxe. " - "X64 will use X64 for both PEI and DXE. IA32,X64 will use IA3= 2 for PEI and " - "X64 for DXE. default is IA32,X64") - - def RetrieveCommandLineOptions(self, args): - ''' Retrieve command line options from the argparser ''' - - shell_environment.GetBuildVars().SetValue("TARGET_ARCH"," ".join(a= rgs.build_arch.upper().split(",")), "From CmdLine") - dsc =3D CommonPlatform.GetDscName(args.build_arch) - shell_environment.GetBuildVars().SetValue("ACTIVE_PLATFORM", f"Ovm= fPkg/{dsc}", "From CmdLine") - - def GetWorkspaceRoot(self): - ''' get WorkspacePath ''' - return CommonPlatform.WorkspaceRoot - - def GetPackagesPath(self): - ''' Return a list of workspace relative paths that should be mappe= d as edk2 PackagesPath ''' - return () - - def GetActiveScopes(self): - ''' return tuple containing scopes that should be active for this = process ''' - return CommonPlatform.Scopes - - def GetName(self): - ''' Get the name of the repo, platform, or product being build ''' - ''' Used for naming the log file, among others ''' - # check the startup nsh flag and if set then rename the log file. - # this helps in CI so we don't overwrite the build log since runni= ng - # uses the stuart_build command. - if(shell_environment.GetBuildVars().GetValue("MAKE_STARTUP_NSH", "= FALSE") =3D=3D "TRUE"): - return "OvmfPkg_With_Run" - return "OvmfPkg" - - def GetLoggingLevel(self, loggerType): - ''' Get the logging level for a given type - base =3D=3D lowest logging level supported - con =3D=3D Screen logging - txt =3D=3D plain text file logging - md =3D=3D markdown file logging - ''' - return logging.DEBUG - - def SetPlatformEnv(self): - logging.debug("PlatformBuilder SetPlatformEnv") - self.env.SetValue("PRODUCT_NAME", "OVMF", "Platform Hardcoded") - self.env.SetValue("MAKE_STARTUP_NSH", "FALSE", "Default to false") - self.env.SetValue("QEMU_HEADLESS", "FALSE", "Default to false") - return 0 - - def PlatformPreBuild(self): - return 0 - - def PlatformPostBuild(self): - return 0 - - def FlashRomImage(self): - VirtualDrive =3D os.path.join(self.env.GetValue("BUILD_OUTPUT_BASE= "), "VirtualDrive") - os.makedirs(VirtualDrive, exist_ok=3DTrue) - OutputPath_FV =3D os.path.join(self.env.GetValue("BUILD_OUTPUT_BAS= E"), "FV") - - # - # QEMU must be on the path - # - cmd =3D "qemu-system-x86_64" - args =3D "-debugcon stdio" = # write messages to stdio - args +=3D " -global isa-debugcon.iobase=3D0x402" = # debug messages out thru virtual io port - args +=3D " -net none" = # turn off network - args +=3D f" -drive file=3Dfat:rw:{VirtualDrive},format=3Draw,medi= a=3Ddisk" # Mount disk with startup.nsh - - if (self.env.GetValue("QEMU_HEADLESS").upper() =3D=3D "TRUE"): - args +=3D " -display none" # no graphics - - if (self.env.GetBuildValue("SMM_REQUIRE") =3D=3D "1"): - args +=3D " -machine q35,smm=3Don" #,accel=3D(tcg|kvm)" - #args +=3D " -m ..." - #args +=3D " -smp ..." - args +=3D " -global driver=3Dcfi.pflash01,property=3Dsecure,va= lue=3Don" - args +=3D " -drive if=3Dpflash,format=3Draw,unit=3D0,file=3D" = + os.path.join(OutputPath_FV, "OVMF_CODE.fd") + ",readonly=3Don" - args +=3D " -drive if=3Dpflash,format=3Draw,unit=3D1,file=3D" = + os.path.join(OutputPath_FV, "OVMF_VARS.fd") - else: - args +=3D " -pflash " + os.path.join(OutputPath_FV, "OVMF.fd")= # path to firmware - - - if (self.env.GetValue("MAKE_STARTUP_NSH").upper() =3D=3D "TRUE"): - f =3D open(os.path.join(VirtualDrive, "startup.nsh"), "w") - f.write("BOOT SUCCESS !!! \n") - ## add commands here - f.write("reset -s\n") - f.close() - - ret =3D RunCmd(cmd, args) - - if ret =3D=3D 0xc0000005: - #for some reason getting a c0000005 on successful return - return 0 - - return ret - - - +import PlatformBuildLib +PlatformBuildLib.CommonPlatform =3D CommonPlatform diff --git a/OvmfPkg/PlatformCI/PlatformBuild.py b/OvmfPkg/PlatformCI/Platf= ormBuildLib.py similarity index 87% copy from OvmfPkg/PlatformCI/PlatformBuild.py copy to OvmfPkg/PlatformCI/PlatformBuildLib.py index 627bb7b992db..90ac0b29a892 100644 --- a/OvmfPkg/PlatformCI/PlatformBuild.py +++ b/OvmfPkg/PlatformCI/PlatformBuildLib.py @@ -17,35 +17,6 @@ from edk2toolext.invocables.edk2_pr_eval import PrEvalSe= ttingsManager from edk2toollib.utility_functions import RunCmd =20 =20 - # ####################################################################= ################### # - # 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 ("IA32", "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 - ''' - dsc =3D "OvmfPkg" - if "IA32" in ArchCsv.upper().split(","): - dsc +=3D "Ia32" - if "X64" in ArchCsv.upper().split(","): - dsc +=3D "X64" - dsc +=3D ".dsc" - return dsc - - # ####################################################################= ################### # # Configuration for Update & Setup = # # ####################################################################= ################### # @@ -249,6 +220,3 @@ class PlatformBuilder( UefiBuilder, BuildSettingsManage= r): return 0 =20 return ret - - - --=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 (#83234): https://edk2.groups.io/g/devel/message/83234 Mute This Topic: https://groups.io/mt/86786868/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- From nobody Wed May 8 21:17:36 2024 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+83233+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+83233+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635930703; cv=none; d=zohomail.com; s=zohoarc; b=bD+bXD4c7mafV+uwEanSS0MJgIcSC7Ogazgr3Ei9aWni1kDdtPNbC5I/2d6GrRCNfjmTqRC9JKqgCRhMgrY45IOACkxeL5BnG9KuHxoPlX3uLyoATX3y4wfkfPKXT5vat7dn6su+gACloIcIJ5+z8hD86eb+4LKc/fcvLWQslMA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635930703; 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=msXrsO2YzSsAJu31nlPXI/gkXtxd6QxleR8MwJmUHjA=; b=hiS5eYdOQ8JglZeQnQNYO/MN/kkbWzhd1FiytGuC12UD9optPguRT696xbPKcL0tOPJQdmhg9mXOjm2fZXW+vesCpnoLBeYBMv5Ihbyvl9ApyNLOol9CHpHuMXiJooa74ySoxCBc1MQxpcKk4vZKedCnf7+MuCEhVeJdYvDrqt4= 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+83233+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 1635930703166759.2821195956475; Wed, 3 Nov 2021 02:11:43 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id tdCdYY1788612xQ2Dl2NZXJ4; Wed, 03 Nov 2021 02:11:42 -0700 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.5178.1635930702082145658 for ; Wed, 03 Nov 2021 02:11:42 -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-5-VHFTFHXIPTW4fhhUglRpHA-1; Wed, 03 Nov 2021 05:11:36 -0400 X-MC-Unique: VHFTFHXIPTW4fhhUglRpHA-1 X-Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8EC9F19253C2; Wed, 3 Nov 2021 09:11:34 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.194.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7F8F35D9D5; Wed, 3 Nov 2021 09:11:31 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 3D4A91801AA7; Wed, 3 Nov 2021 10:11:23 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Bret Barkelew , Michael D Kinney , Sean Brogan , Gerd Hoffmann , Ard Biesheuvel , Jordan Justen , Liming Gao , Jiewen Yao , Jiewen Yao , Ard Biesheuvel Subject: [edk2-devel] [PATCH v3 2/7] OvmfPkg/PlatformCI: add QEMU_SKIP Date: Wed, 3 Nov 2021 10:11:18 +0100 Message-Id: <20211103091123.2953172-3-kraxel@redhat.com> In-Reply-To: <20211103091123.2953172-1-kraxel@redhat.com> References: <20211103091123.2953172-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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: c66fCzZzrH2czSX1W5UDwELJx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635930702; bh=qbwvSUNoQ0i3gEkVCnsN0J2Nnhg/xXbs8yvPJ59h/zY=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=gAc0yS44IYwF4lpLXZ/ckKkcinnl2wpMRPKOO/rv2lcl9PdgUoTrqwQrpbPsvJby6T6 0JvpRsYBpykYwaSxUET+BXDNQ7y/DmInohsNRhtdVj94ksNq00jnJ2m/Fzy1Nz+L1h4zr syesNItP3q+myM4i4fcrEcnLlqzyaemYq50= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635930703480100001 Content-Type: text/plain; charset="utf-8" Skip the qemu boot test in case QEMU_SKIP is set to true. Acked-by: Jiewen Yao Acked-by: Ard Biesheuvel Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daude --- OvmfPkg/PlatformCI/PlatformBuildLib.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OvmfPkg/PlatformCI/PlatformBuildLib.py b/OvmfPkg/PlatformCI/Pl= atformBuildLib.py index 90ac0b29a892..bfef9849c749 100644 --- a/OvmfPkg/PlatformCI/PlatformBuildLib.py +++ b/OvmfPkg/PlatformCI/PlatformBuildLib.py @@ -183,6 +183,11 @@ class PlatformBuilder( UefiBuilder, BuildSettingsManag= er): os.makedirs(VirtualDrive, exist_ok=3DTrue) OutputPath_FV =3D os.path.join(self.env.GetValue("BUILD_OUTPUT_BAS= E"), "FV") =20 + if (self.env.GetValue("QEMU_SKIP") and + self.env.GetValue("QEMU_SKIP").upper() =3D=3D "TRUE"): + logging.info("skipping qemu boot test") + return 0 + # # QEMU must be on the path # --=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 (#83233): https://edk2.groups.io/g/devel/message/83233 Mute This Topic: https://groups.io/mt/86786867/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- From nobody Wed May 8 21:17:36 2024 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+83235+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+83235+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635930707; cv=none; d=zohomail.com; s=zohoarc; b=alyNhom5u5ia/fcogpo5HXMWtj9IC9FAdRw7n2LGIadLISowR5/pMDlmgw4QDTVRfC/hEpFu8gPF9w5naDWqTmipWv2qV4hjsb35pCxog4uasX+K5P1afzqb3REHsqv9Fl15pxfY80R3MH8ASLIrsYh1d0qEphl/TsDBx6Gl0AM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635930707; 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=YSWDoE5J9e2qB5ittGXmKfisKvpqFqsl2AfnppT/W6c=; b=eDSZ39csC/5g62iTNcT/EmRnW4E9WXtAu72Qm3cwOBhczA+6AyziH73QJCZqosuyNHQKxPbUgsy74LEI4tT+s4HoPQp11RTgBshbAcr6S032+/R1wS4/xQSq+LxG1fnkfjiaZ3gt9qdfIo+RZBASjscJhOLQtWsALLC9yxFDOuE= 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+83235+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 1635930707048354.48796958296634; Wed, 3 Nov 2021 02:11:47 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id LlDsYY1788612xRfTEdc1SC3; Wed, 03 Nov 2021 02:11:46 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.5180.1635930705789541999 for ; Wed, 03 Nov 2021 02:11:46 -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-364-rLQDfkNtOwWUzKqhnkgDVA-1; Wed, 03 Nov 2021 05:11:41 -0400 X-MC-Unique: rLQDfkNtOwWUzKqhnkgDVA-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 4A8561006AA6; Wed, 3 Nov 2021 09:11:40 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.194.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 974C61B5C0; Wed, 3 Nov 2021 09:11:36 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 402BB1801AB5; Wed, 3 Nov 2021 10:11:23 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Bret Barkelew , Michael D Kinney , Sean Brogan , Gerd Hoffmann , Ard Biesheuvel , Jordan Justen , Liming Gao , Jiewen Yao , Jiewen Yao , Ard Biesheuvel Subject: [edk2-devel] [PATCH v3 3/7] OvmfPkg/PlatformCI: add BhyveBuild.py Date: Wed, 3 Nov 2021 10:11:19 +0100 Message-Id: <20211103091123.2953172-4-kraxel@redhat.com> In-Reply-To: <20211103091123.2953172-1-kraxel@redhat.com> References: <20211103091123.2953172-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: DaE9HMNc7cQxrZyqyG4QRPNSx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635930706; bh=IzKZv5T7G2F3byBSvGyzJobi1cE969qYbfMbT4Cx0m8=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=TgXCQwZVFC8hZY8urehRERYLpJdX6eUBzVoKmq5nn3WYgJFD7Lxze6aByHV65pB6oDN QYLTsykQ9tGDh6W9NEXbc7QzQxzyHCgGOeQR3o3JzZbTH2goya1gN+TMOWkE4P+uEXErE imXngYgde+JuZoWugnSNvc9OcymtqxcYSzE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635930707969100004 Content-Type: text/plain; charset="utf-8" Add build test for OvmfPkg/Bhyve. Acked-by: Jiewen Yao Acked-by: Ard Biesheuvel Signed-off-by: Gerd Hoffmann --- .../.azurepipelines/Ubuntu-GCC5.yml | 9 +++++ OvmfPkg/PlatformCI/BhyveBuild.py | 37 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 OvmfPkg/PlatformCI/BhyveBuild.py diff --git a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml b/OvmfPkg/P= latformCI/.azurepipelines/Ubuntu-GCC5.yml index 7117b86b8177..cc37a2be8f93 100644 --- a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml +++ b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml @@ -113,6 +113,15 @@ jobs: Build.Target: "NOOPT" Run.Flags: $(run_flags) Run: $(should_run) + + BHYVE_X64_DEBUG: + Build.File: "$(package)/PlatformCI/BhyveBuild.py" + Build.Arch: "X64" + Build.Flags: "" + Build.Target: "DEBUG" + # this build is for freebsd bhyve not qemu-kvm + Run.Flags: "QEMU_SKIP=3DTRUE" + Run: $(should_run) workspace: clean: all =20 diff --git a/OvmfPkg/PlatformCI/BhyveBuild.py b/OvmfPkg/PlatformCI/BhyveBui= ld.py new file mode 100644 index 000000000000..c2de96d23673 --- /dev/null +++ b/OvmfPkg/PlatformCI/BhyveBuild.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 "Bhyve/BhyveX64.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 (#83235): https://edk2.groups.io/g/devel/message/83235 Mute This Topic: https://groups.io/mt/86786869/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- From nobody Wed May 8 21:17:36 2024 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+83239+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+83239+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635930724; cv=none; d=zohomail.com; s=zohoarc; b=LiueOMTNpjI5Wu1HKoU9boi8SvEvIulWdq0Cz+46tWK5inJ5XowygbNbYu0nFD/bqHK3o0vw6VJAOTfhiWiSrJqRKZzq3WPM9P9mbi5rN1+ZJ5nfl4HqwcRWzpVaEZzJnTsLqqOXUsKnZeNafBU2oqZVcJit1C7DwV6ixmfkzbA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635930724; 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=2Hxh/Tdnh8p1fWKM9rnSX7MuaT7TaYvSqKGW+r3iynk=; b=a/Rzci3th4XMXKmnfZ+w0lF3/xm5AQE+BWmBPiBYm+3OgtAjTYXszD3fUxZ30kL7IHas4nyHaFFdcd73YYw9mUnHCGHi4pHc4hPE4D1zofdU4sKnBwEnb/S7F99hspUWxpm790wQb/bVfiR5UKkAaJnjOJTGTzjLtEtEKhW6rws= 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+83239+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 1635930724393855.3683426084257; Wed, 3 Nov 2021 02:12:04 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id t3pqYY1788612xLdXvrEhHpG; Wed, 03 Nov 2021 02:12:04 -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.web11.5054.1635930723413413061 for ; Wed, 03 Nov 2021 02:12:03 -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-331-ZiAa6bkuMviNezCd8Lrzag-1; Wed, 03 Nov 2021 05:11:59 -0400 X-MC-Unique: ZiAa6bkuMviNezCd8Lrzag-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 C58028799E0; Wed, 3 Nov 2021 09:11:57 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.194.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6C3AC641AA; Wed, 3 Nov 2021 09:11:42 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 42E6C1801AB7; Wed, 3 Nov 2021 10:11:23 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Bret Barkelew , Michael D Kinney , Sean Brogan , Gerd Hoffmann , Ard Biesheuvel , Jordan Justen , Liming Gao , Jiewen Yao , Jiewen Yao , Ard Biesheuvel Subject: [edk2-devel] [PATCH v3 4/7] OvmfPkg/PlatformCI: add MicrovmBuild.py Date: Wed, 3 Nov 2021 10:11:20 +0100 Message-Id: <20211103091123.2953172-5-kraxel@redhat.com> In-Reply-To: <20211103091123.2953172-1-kraxel@redhat.com> References: <20211103091123.2953172-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: Bp3JFeq16KTsfcQ3kmlxiTQOx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635930724; bh=3RQ8hVSfft1WU85cXPvemrWpFbW+qutU0oAbOi/uGe4=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=wsSeWyVG5Bb63xfP7Ag9SOC8NAq53hxGEUUsmyV2riXjxhZaZZ69W6LyNAhUV7qRmdG U6OXynwNnp6KaRCvNT/oMIkeHHd1Kg02HhGq5GEKXoAg+/2f5HstoDVz8XBS44/9wdjQS wVwZc4siG6JbHWlTTS4fZ2euxZ3fjbQOMRY= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635930725846100001 Content-Type: text/plain; charset="utf-8" Add build test for OvmfPkg/Microvm. Acked-by: Jiewen Yao Acked-by: Ard Biesheuvel Signed-off-by: Gerd Hoffmann 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.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 (#83239): https://edk2.groups.io/g/devel/message/83239 Mute This Topic: https://groups.io/mt/86786878/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- From nobody Wed May 8 21:17:36 2024 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+83236+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+83236+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635930708; cv=none; d=zohomail.com; s=zohoarc; b=Uv7+bSUpp/QU1wFAPwsjWAovHlyg7TGJBah7hR3x7O6fYyynJYaY26DkbR7Jkd0IPUAypof5NWioAuFMmmHm5SBFbfMzog7ZP/5ptVMATMv7ynSuuKZA1kmwSnMLJe8P1Zu9o0QB2txIHdd2vfoEvJvpWwFX/ceqzBFbmFO2ZuE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635930708; 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=X2kgN3UtBjAcVHqmNW2wBHf3+VHfSMK2iGlV3YztfHM=; b=J1XHxCLVLHJ2Lk/WLmQy+p+VQiSKP/H+Zupme/5fLXZ6SDgm19HR0CE1g1FwoeaUSXwUorI3kwVRwIFSpYVn1wkZwymA20HOaqeA0pwKnIy7HJnKnMN3YRVgzwvJnoosUCNNd1N9dzDY4iATb2yV6jGIJU8c9R6XQWNeQMPWfH8= 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+83236+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 1635930708781305.50244447910006; Wed, 3 Nov 2021 02:11:48 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id DJZ9YY1788612xbORE68Lmhi; Wed, 03 Nov 2021 02:11:48 -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.web10.5182.1635930707769615852 for ; Wed, 03 Nov 2021 02:11:48 -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-551-KpQOs1oVO6ikTjDLjoIMHA-1; Wed, 03 Nov 2021 05:11:44 -0400 X-MC-Unique: KpQOs1oVO6ikTjDLjoIMHA-1 X-Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 045F81006AA7; Wed, 3 Nov 2021 09:11:43 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.194.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 656135D9D3; Wed, 3 Nov 2021 09:11:42 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 4594F1801AB8; Wed, 3 Nov 2021 10:11:23 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Bret Barkelew , Michael D Kinney , Sean Brogan , Gerd Hoffmann , Ard Biesheuvel , Jordan Justen , Liming Gao , Jiewen Yao , Jiewen Yao , Ard Biesheuvel Subject: [edk2-devel] [PATCH v3 5/7] OvmfPkg/PlatformCI: add AmdSevBuild.py Date: Wed, 3 Nov 2021 10:11:21 +0100 Message-Id: <20211103091123.2953172-6-kraxel@redhat.com> In-Reply-To: <20211103091123.2953172-1-kraxel@redhat.com> References: <20211103091123.2953172-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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: Ua1UCMW6Iiw88AcpUJdILeSux1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635930708; bh=15jyvvA8OPFQfBcKCbCLZWc7ZO/+0EoVhqluCvsuR8A=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=RIWGGiMiqsoTRYMWTgSpzKBoGvaFfvCT0xcjA8SCT6LH5HPg1j+Fw+6Behck+cSQ+Gm 3oLLBFytrTd7dN0Gwm/dl6wLIG9avmvn8KNKhx3Tt5Wh1CcStLuYwR3CHJspqJjCFfHk6 Rs6fwL0k1wwtlnPsxyjX6JiwvfpsqYH4nFE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635930710090100010 Content-Type: text/plain; charset="utf-8" Add build test for OvmfPkg/AmdSev. Acked-by: Jiewen Yao Acked-by: Ard Biesheuvel Signed-off-by: Gerd Hoffmann 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.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 (#83236): https://edk2.groups.io/g/devel/message/83236 Mute This Topic: https://groups.io/mt/86786871/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- From nobody Wed May 8 21:17:36 2024 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+83237+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+83237+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635930712; cv=none; d=zohomail.com; s=zohoarc; b=HFNWGZ6HxYsLmjfcs4VFIPNVq5sMJb4zE8fkAJZWi9kQZyQo2f6CFsRjIxU/1GVOlR7t7TNwN2fRESoJBINmcAhV9lbQAF4M/EVk0RVvknpcNSDpKdh2akHdfLX5hDk5GTc09XTkMW/cTggB3x58TY5UUBYLN42p6AzeiPWs1a4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635930712; 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=ntdIdazYTgHoPTMEw+6c6uDO+0fNTRy6LESrL4Beo9g=; b=XLT9PAuIz8Ajsq/aYlxrCfRlQBjurDKsvTWa44XRMVPXjEXnAJxomX7eIIoWzP+69VEXBrUWEffNTge7DTi8/gbA+5+Lka+VYAbYhWbDTQxPn4ZlZa0KNNUVqHOhXfrua/bqPHp/+XOEAgL1d8bPIf4m7TqHjwj1PMj09SxUuGs= 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+83237+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 1635930712394799.7677547354779; Wed, 3 Nov 2021 02:11:52 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id e4lOYY1788612xezqfZX1KKM; Wed, 03 Nov 2021 02:11:52 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web09.4956.1635930711140082161 for ; Wed, 03 Nov 2021 02:11:51 -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-62-UoSvlIvCPQW0vPLY_4U0Ng-1; Wed, 03 Nov 2021 05:11:47 -0400 X-MC-Unique: UoSvlIvCPQW0vPLY_4U0Ng-1 X-Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8830C19253C5; Wed, 3 Nov 2021 09:11:45 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.194.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EB5105D9D5; Wed, 3 Nov 2021 09:11:44 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 48A101801ABC; Wed, 3 Nov 2021 10:11:23 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Bret Barkelew , Michael D Kinney , Sean Brogan , Gerd Hoffmann , Ard Biesheuvel , Jordan Justen , Liming Gao , Jiewen Yao , Jiewen Yao , Ard Biesheuvel Subject: [edk2-devel] [PATCH v3 6/7] OvmfPkg/PlatformCI: dummy grub.efi for AmdSev Date: Wed, 3 Nov 2021 10:11:22 +0100 Message-Id: <20211103091123.2953172-7-kraxel@redhat.com> In-Reply-To: <20211103091123.2953172-1-kraxel@redhat.com> References: <20211103091123.2953172-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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: 8xjvXQuDqBNyFpGQEYpJNANEx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635930712; bh=R86a3VXuzzkvd0wBgzT9CKXJXPakwspcV/TZFqW/DAI=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=rALKWjaEg8Ps/iQwakjDz4WXy4hXRHV1uZPxaUvFnqqHLb0vYhv1noZyw1z6L7keuFK vd2HKw9jNDzKFQPnqgj0Qkb0rXnMPmcOspDopLm143z2Otzn2jY3AuXN4DumFFegqiUgA /ZFD3rxIuS0Wf8ibsmw52nvChqoMUSZvR1w= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635930712704100001 Content-Type: text/plain; charset="utf-8" Building grub.efi for AmdSev is difficult because it depends on patches not yet merged to upstream grub. So shortcut the grub build by simply creating an empty grub.efi file. That allows to at least build-test the AmdSev variant. Acked-by: Jiewen Yao Acked-by: Ard Biesheuvel Signed-off-by: Gerd Hoffmann Reviewed-by: Dov Murik --- OvmfPkg/PlatformCI/AmdSevBuild.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OvmfPkg/PlatformCI/AmdSevBuild.py b/OvmfPkg/PlatformCI/AmdSevB= uild.py index 2dd72cfe80d9..816caafb0084 100644 --- a/OvmfPkg/PlatformCI/AmdSevBuild.py +++ b/OvmfPkg/PlatformCI/AmdSevBuild.py @@ -6,6 +6,7 @@ ## import os import sys +import subprocess =20 sys.path.append(os.path.dirname(os.path.abspath(__file__))) from PlatformBuildLib import SettingsManager @@ -35,3 +36,7 @@ class CommonPlatform(): =20 import PlatformBuildLib PlatformBuildLib.CommonPlatform =3D CommonPlatform + +# hack alert -- create dummy grub.efi +subprocess.run(['touch', 'OvmfPkg/AmdSev/Grub/grub.efi']) +subprocess.run(['ls', '-l', '--sort=3Dtime', 'OvmfPkg/AmdSev/Grub']) --=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 (#83237): https://edk2.groups.io/g/devel/message/83237 Mute This Topic: https://groups.io/mt/86786873/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- From nobody Wed May 8 21:17:36 2024 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+83238+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+83238+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635930718; cv=none; d=zohomail.com; s=zohoarc; b=DUjnX/0aYno7NoFC23Cm7z/1XRkZIZKBWfb+djk8Y8D4WjiTZtT7dQIr4V9POCHX7oayQFbEkxIQncjOxQjYyIRCTCS+M4zs1sBXRXHLaA9tqX6vS0pegu1w6EVFqfnLiP8S9Q0PfxZPtr4lw2614Zu8WmV0gP8JXuQ9zsIl7WI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635930718; 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=AvOZJSsdMMJdIyvm0QZ8N3jD2VrQe44ZHIsbEpDPdXY=; b=GSucNcIRHg0lwsdXah4LU7fx84hZGqrtC8MVgZYfHNjGqQjbqGqbkxNSitDLIXsDAF4hIYOoTvmrhX4Uxd/qJE8rUmlkhsFi2hNF7Kh56O81hSDutFYu4qXKeSXza3827FxKwq0B6uF3tXP6DCwnUPRBECZ7tbaPE/DJtHl8nBo= 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+83238+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 1635930718266800.9224457499153; Wed, 3 Nov 2021 02:11:58 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id C84TYY1788612xB5KzMj3sko; Wed, 03 Nov 2021 02:11:57 -0700 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.web12.5043.1635930717327537056 for ; Wed, 03 Nov 2021 02:11:57 -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-153-TjixBvZXMNCWn4MFyYsOvA-1; Wed, 03 Nov 2021 05:11:53 -0400 X-MC-Unique: TjixBvZXMNCWn4MFyYsOvA-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 DBEEC8799EC; Wed, 3 Nov 2021 09:11:51 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.194.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 60EC9100EA05; Wed, 3 Nov 2021 09:11:47 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 4EA521801ABD; Wed, 3 Nov 2021 10:11:23 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Bret Barkelew , Michael D Kinney , Sean Brogan , Gerd Hoffmann , Ard Biesheuvel , Jordan Justen , Liming Gao , Jiewen Yao Subject: [edk2-devel] [PATCH v3 7/7] OvmfPkg/PlatformCI: add XenBuild.py Date: Wed, 3 Nov 2021 10:11:23 +0100 Message-Id: <20211103091123.2953172-8-kraxel@redhat.com> In-Reply-To: <20211103091123.2953172-1-kraxel@redhat.com> References: <20211103091123.2953172-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: ezvOI0voPWnpc9sinLoCQYKyx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635930717; bh=1v0bgX6XwXuYIGQBg6I/CxLSn43v1Ed8suwG89eCTpQ=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=wWPTwU8SISnkOSpH4CzHrHsVGoy6qbGZu8LOc5XkJ/7XSz2mdiInL+kJAymPqro9zRa oNZ1uCPXNLa90y0Rjc4P7nEff/nIwrS98+kRR1i+yOtX3druxWRdlEPff2BolNglkD66I Elzleqw5rm8te9mAAEC+m9Sp/sGYMAin9bE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635930719223100002 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..25a70a177d65 --- /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.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 "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 (#83238): https://edk2.groups.io/g/devel/message/83238 Mute This Topic: https://groups.io/mt/86786874/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-