From nobody Thu May 2 22:03:38 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+82641+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+82641+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635167985; cv=none; d=zohomail.com; s=zohoarc; b=S38vpXXIPiUoDdbbxKHdZ2UvqDTbtcFIbeMAXUq3MID7ajwWiDRsGXF/OWJbCpUBkBNcjivmfr10UmFe46CtPlJ2OpTxjX5Neg2zKJnQ6MHJ0ZK2+kUL1ShkO79l5XbLNbJ7JyBDm6RXfTb+3BGDDVUsymsORpASxSPNZRnnuBA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635167985; 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=U0HrKcPrDB6XTz1Joqe3Y+U3f/h6J6q0e4ic9RJJ6vo=; b=X72nUMziP7wN0KpGu1Znmb8BZOeM3Uc2ZnH3uC9gC1lHwhbho6eQegTLjzRt0tKIuE6ijJe3mGJ4AqoQWQiPz1L7tTg7Cqgm3NwRwafZMuPMtKzkB+Cx/Jz2UQ3mkO6CUq+/hTeXino88Z8Xm1VjeUhzWRjHIHCfLO3gG033Kyc= 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+82641+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 163516798543765.05048170210159; Mon, 25 Oct 2021 06:19:45 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id GNvVYY1788612xg43uuE5vgX; Mon, 25 Oct 2021 06:19:45 -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.32005.1635167984187622072 for ; Mon, 25 Oct 2021 06:19:44 -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-14-dxyuzEsmOWaL2OPJ9aCy6A-1; Mon, 25 Oct 2021 09:19:40 -0400 X-MC-Unique: dxyuzEsmOWaL2OPJ9aCy6A-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 789075074D; Mon, 25 Oct 2021 13:19:39 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D08F11037F46; Mon, 25 Oct 2021 13:19:34 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 733D11800796; 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 1/7] OvmfPkg/PlatformCI: factor out PlatformBuildLib.py Date: Mon, 25 Oct 2021 15:19:25 +0200 Message-Id: <20211025131931.129666-2-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: 140wblKvnj9NoWt5QPnz9HMPx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635167985; bh=2KksLsNzEte5m9efmIu+WMTTjBNrpoHU4v1aLOn0nQ8=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=nNfvxbA6O8KEW2At3yBwx/Q+MLwUrUY7Loh2Dkf8B6GD9UKQqybz55Jrv0tKT2bDTG4 K2G36cmEho+U/HZKn1gtCLXBpoR9BMZtPWfAXI3O6d0GdoNezgKDw5uguNTevyHaHbfnB 9HMqNM6ocLgAMCgSm2bfryvk1r0kmf0Zb88= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635167986640100001 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. 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..413f004990e5 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.join(os.getcwd(), 'OvmfPkg', 'PlatformCI')) +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 (#82641): https://edk2.groups.io/g/devel/message/82641 Mute This Topic: https://groups.io/mt/86576671/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 Thu May 2 22:03:38 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+82643+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+82643+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635167999; cv=none; d=zohomail.com; s=zohoarc; b=jmXNUmMqCPmlkkHu4d2k4Gq61/hww9Ydn6Ou15Oih5JhU4UHnUbGqGQ5WkrSjf+y5A4LwseYbfQHjwa8dZh4qQi4WTYYsPElWStboYWCWkM8dUWpt1tVnqVNfjRPx2X2VB0pX0z3VZMkruomkYbDwVLmXmZ9wIErYw5Wa1gNmtE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635167999; 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=N7drOV0qv4OzfFjIS4ICkz/eI9Ma5DPgyqJ3o1Y5EZg=; b=CEvYEhNtsqjFUzlcMYgmUDXUTdjHdT3HwnHxI4MhVhEoJ3vTSVzK/33ftZJeipymxpiiqu0/5Rn1b++E3RUw22wTpqT6wyPrQ2ll8F+oM2HpxePX897N8HqawlxqfqJU9bA8QVwi76ZoHSgUdyV1kMpWbKdX3pBVoOWu8HXknaU= 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+82643+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 1635167999056307.33920047926017; Mon, 25 Oct 2021 06:19:59 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id ui3tYY1788612x69FsY78HTB; Mon, 25 Oct 2021 06:19:58 -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.web11.31922.1635167997979077877 for ; Mon, 25 Oct 2021 06:19:58 -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-308-VNawxGvBNxCyhb7L5SYIFg-1; Mon, 25 Oct 2021 09:19:54 -0400 X-MC-Unique: VNawxGvBNxCyhb7L5SYIFg-1 X-Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 78A311926DA1; Mon, 25 Oct 2021 13:19:53 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 387D319D9D; Mon, 25 Oct 2021 13:19:41 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 78BD118007A4; 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 2/7] OvmfPkg/PlatformCI: add QEMU_SKIP Date: Mon, 25 Oct 2021 15:19:26 +0200 Message-Id: <20211025131931.129666-3-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.23 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: zdIR5MlNRjC4ugh6deGd82gwx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635167998; bh=5Q1KxwIDDxhT20GcFp3UbsS4Fime50l4ysGDj4B5b54=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=SpM+R0dW9HdeotLYMBF1xmAJt1Gut49MVGNToudihEhdgic1uYyOBjW2DPrEo+Po3dW liScZjYQjY/YISzJ2ICYFmnlGQvlA+KBIzVbhYfmNxjEc/t6+AKT4pEyxrvwxWVkRPnWN 1oldpZe+0tY3KqE+ifxaHqN/ByiyTKOyI9I= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635168000093100001 Content-Type: text/plain; charset="utf-8" Skip the qemu boot test in case QEMU_SKIP is set to true. Signed-off-by: Gerd Hoffmann --- 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 (#82643): https://edk2.groups.io/g/devel/message/82643 Mute This Topic: https://groups.io/mt/86576674/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 Thu May 2 22:03:38 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+82644+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+82644+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635168002; cv=none; d=zohomail.com; s=zohoarc; b=R3Q18pCA3uVQHkAJnNDb+wn+0BQ50Lf2NgKrA10LZfanEME4vNuffxgEuyR062ue7U2lOaLInykNMarDcEWTVOTtotZNj3AXL3qKn980jyRQZ669Zx9qsTJ3948/5vKj/cO3164L11rGKywIF02q5/FTtJzGV8Rl6mAIIH+StiQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635168002; 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=k3ADM+aXogeELKZnnPPv8V16VX9RUvK/kss56VEqpw8=; b=TfV9k9Qkt/JkFN804mjc1z+2jZxJydiggvffSaVUpvVK0AHAUCmR/lwhwQ9oA/zMvVie2oYB4+ZmDYf/CtxnW5LgZkzN1+P2Zi8JMJfjuCCq3hPNOhCmXg2CCg3vuPFnVR3tMLEqBIfHFfD1EjcbqygZoazejbhgJyzJS10dvyc= 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+82644+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 16351680024061015.7102675389696; Mon, 25 Oct 2021 06:20:02 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 2fQnYY1788612xpNLjdrEGAo; Mon, 25 Oct 2021 06:20:01 -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.web08.32341.1635168001070824919 for ; Mon, 25 Oct 2021 06:20:01 -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-310-Iw_U8xBqOx6FZ6cIqmdozg-1; Mon, 25 Oct 2021 09:19:54 -0400 X-MC-Unique: Iw_U8xBqOx6FZ6cIqmdozg-1 X-Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7DE79100C660; Mon, 25 Oct 2021 13:19:53 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B1C2916A37; Mon, 25 Oct 2021 13:19:42 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 7B77E1800840; 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 3/7] OvmfPkg/PlatformCI: add BhyveBuild.py Date: Mon, 25 Oct 2021 15:19:27 +0200 Message-Id: <20211025131931.129666-4-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.23 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: Ecs7ElJfMwBJrCHqnC4SDHNxx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635168001; bh=N6e81iGi/qNBdui0+I+Q3mr09FnooQfvrCyeVptK4JI=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=ik4umjjbtqz+4dM8Oyy2adw1rXuZrVuL5Snon7Oeh7ELqrcW1l4j4dP3NC+LcUGr8fb fOIqNb2/Z2xo6QLvtQoWmh6cClQUwUR3gj+un0QEjiqJkHtkqC3fOzHy20z0SI6j/qq10 7qVfQ+MYGiJy7zl3Z1ONvjTTZUtqJWGDSvg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635168004339100002 Content-Type: text/plain; charset="utf-8" Add build test for OvmfPkg/Bhyve. 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..dd5bfe6661cf --- /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.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 "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 (#82644): https://edk2.groups.io/g/devel/message/82644 Mute This Topic: https://groups.io/mt/86576679/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 Thu May 2 22:03:38 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+82645+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+82645+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635168008; cv=none; d=zohomail.com; s=zohoarc; b=VvbY0QPOZoKbAcHI16lBGHSMriBwxmhpbfqh89OqOjJyvfg3eNL94Cmn/wI15LAxGSUaVe3K4kd9HQH3IFqYhLN/oku288HjcgUGGDspj0O9Zz8OzP70xFRjBC8lo7QZFb0CneyCi6iws58v41M88FKNGKyC2zp3BWdyPgc0yIw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635168008; 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=hG0zPQ/T5QL66JRlcYatmSQNsW4qwSeN075q1EJ3ysw=; b=GVOXip3r7RC5+0p032ddDDI5PHESVtirAm51bUuWeyhSUskMsFe3vNfGI/gUmD/hOTMVrfoNu9T5TCTR7xPHAWpTKStxPhxfd8azFnDjcvGA5RvCkFHoOgK1hp7ixsyymUXYV8uaR/XTtv7CB2Um0f2STFhM0AGU4ErkKRrSuS0= 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+82645+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 1635168008222991.5687879975219; Mon, 25 Oct 2021 06:20:08 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id XMn9YY1788612x87BCleiqfP; Mon, 25 Oct 2021 06:20:07 -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.31943.1635168007208408874 for ; Mon, 25 Oct 2021 06:20:07 -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-389-6DA3diUiNJ6LvWLZnAIcQw-1; Mon, 25 Oct 2021 09:20:05 -0400 X-MC-Unique: 6DA3diUiNJ6LvWLZnAIcQw-1 X-Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 73FB65074D; Mon, 25 Oct 2021 13:20:03 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7586968D95; Mon, 25 Oct 2021 13:19:55 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 7E2461801A8C; 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 4/7] OvmfPkg/PlatformCI: add MicrovmBuild.py Date: Mon, 25 Oct 2021 15:19:28 +0200 Message-Id: <20211025131931.129666-5-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.79 on 10.5.11.16 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: TSPlAppZPhUCN3nFHYbsnrTqx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635168007; bh=XDsEiy5HppeRqubef5VVf1LU5pDc7loRLXBEaRKERKw=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=sDHjDgh0Rgo4V9Yqp58KtoSphmRzPe91GHtKTfPLasAcOMOs3cv5IZIRy9VCz4b65rT 5UUoO/K+55pIyF+qZBfsJGd06l+jEM92zPuQdWPDse3Uv7ZNEZNQHz3t4hEl3YnXmHbcf x6Mdzo/AINNOzomQv+TZN3vLqDRAyBTNQSA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635168009278100001 Content-Type: text/plain; charset="utf-8" Add build test for OvmfPkg/Microvm. Signed-off-by: Gerd Hoffmann --- .../.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..c397837e6e5e --- /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.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 "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 (#82645): https://edk2.groups.io/g/devel/message/82645 Mute This Topic: https://groups.io/mt/86576682/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 Thu May 2 22:03:38 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+82646+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+82646+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635168010; cv=none; d=zohomail.com; s=zohoarc; b=h2B1oe4mobDwefTGqAxnr82m0jSIx4TrC+7ocXav5Kyt12Cn8xsotCw6B3AM91NiMgfn4btXhsVb2ccAh48wbD9/R+mlyZdCwjBMwai2uR/4kzHzKNdeiKNSJUNeTuBnYoRXvLkU/M1gRo+0HLerNJDfQIQ+QJ7wWIDdriFXjUg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635168010; 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=4Q26MYBXwe/KJVEEuawknVFDjbqM44Lssfq29p2n5Wc=; b=MO6mJdX6YvBF6H9KKB5oZXpKt3AMm6YrOnNyJoShNHA+qlaZQhce7SDB4uYJHi1uvAl22AB8Mc02RKFCp+eDqqIGZB3I4kquy+fup2QsAdPd6UEgXVQPz1NLEoLZPLQt+X5kUBnmVgQDG2DFNoiJtcV1GZ1EeHZ5hIli0zXyw0U= 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+82646+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 1635168010428853.5830283617895; Mon, 25 Oct 2021 06:20:10 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id NjWHYY1788612xT2u8wTF9xY; Mon, 25 Oct 2021 06:20:10 -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.web12.31944.1635168009467306245 for ; Mon, 25 Oct 2021 06:20:09 -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-_Z9ONTuiOTeGYjek9Kl4Aw-1; Mon, 25 Oct 2021 09:20:04 -0400 X-MC-Unique: _Z9ONTuiOTeGYjek9Kl4Aw-1 X-Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 795441926DA2; Mon, 25 Oct 2021 13:20:03 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 74C365C1A1; Mon, 25 Oct 2021 13:19:55 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 80FC91801A97; 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 5/7] OvmfPkg/PlatformCI: add AmdSevBuild.py Date: Mon, 25 Oct 2021 15:19:29 +0200 Message-Id: <20211025131931.129666-6-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.79 on 10.5.11.16 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: XtgGWXL4YZn7NYlOYAg0JkhEx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635168010; bh=3hFXCOX+qOR/aUNIHzig3tuz1OIi5YoiseFnjePgjDs=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=g9+49+rUoM5/L+V1E3WidW9CSqhC7L/WVq4SFO42i1WvQmmepH6seZoZhERVh1alFE6 5PIgcwKue+jO2sB9qS4SvW2vTwbPcfgRoB7g0w5x+17MGP7l4Xa6uwnAV4vZBgZLrrEmr k/CCuqmPrC5/2ZBNzNl9zm1rSy2BPyj1aHI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635168011275100006 Content-Type: text/plain; charset="utf-8" Add build test for OvmfPkg/AmdSev. Signed-off-by: Gerd Hoffmann --- .../.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..7348a86e05a1 --- /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.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 "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 (#82646): https://edk2.groups.io/g/devel/message/82646 Mute This Topic: https://groups.io/mt/86576683/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 Thu May 2 22:03:38 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+82648+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+82648+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635168030; cv=none; d=zohomail.com; s=zohoarc; b=SGuE0/DUHABetAJPemXFQ+BaoE1hoUNhXFr6ZbkdUU18S4Tto6S/VDu4E+Kxds9uvhDcC19t9p/OKkAqycO0W/mHfKgfB5X4ZcaPE/ak1IJ14l+LIr5vdAH8ixED/LQthcs1m3nGK6FIF0KLCueI5oWzXkpxe37t0fxkEXkMkPc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635168030; 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=wxe13ywnSePdqoMS1X1g8KqZ4pmoEj4fWML6oEgdEuc=; b=S8kvwI0n0o2zhWN21ffgTnT0wX8jQyYfUDoQmBV2QtrHJJNGH6IF5udKbkta2hnMzM881LKjUlx17BOAvakP/iXsJfbUBQVy+zF+C+pT+z7mjIyg+4OcnrUX57IVajdBzjy/aL4Qsv+7R/GBgG62Ih1HIWI5ddMAwfyiKvyxMC4= 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+82648+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 1635168030599577.1273088586589; Mon, 25 Oct 2021 06:20:30 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id gLhtYY1788612x0m6iYBjfwy; Mon, 25 Oct 2021 06:20:30 -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.32012.1635168029424020596 for ; Mon, 25 Oct 2021 06:20:29 -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-544-Y8HjSRMzNJy4Zy2gVAMFGw-1; Mon, 25 Oct 2021 09:20:23 -0400 X-MC-Unique: Y8HjSRMzNJy4Zy2gVAMFGw-1 X-Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D135810060DE; Mon, 25 Oct 2021 13:20:21 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AF95D69FBD; Mon, 25 Oct 2021 13:20:05 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 83B171801A98; 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 6/7] OvmfPkg/PlatformCI: dummy grub.efi for AmdSev Date: Mon, 25 Oct 2021 15:19:30 +0200 Message-Id: <20211025131931.129666-7-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.79 on 10.5.11.11 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: IERYczeoL3kcp10tdOzh0pcox1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635168030; bh=SRaGNvaQEswUSvTOxFRuEVAvMYeVSbzlZbZ2biDSq5M=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=R5VNDZ+MYZrLcCfx5TPGjs5KrRuX6rs9aT/ZCHoTypjj7AHyCe7N5s2KCzHlTJQxbB7 p6qr5zx1OzyNjjiIt8Z5I9Zz7Gg/Vu+lGrt4uO+JdgsOPPxrBONnLRT9+51pd4OoqNHVV KZjNeAi2gz2AzENtFInNd20bUL9zgcaCX+M= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635168031849100002 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. Signed-off-by: Gerd Hoffmann --- OvmfPkg/PlatformCI/AmdSevBuild.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OvmfPkg/PlatformCI/AmdSevBuild.py b/OvmfPkg/PlatformCI/AmdSevB= uild.py index 7348a86e05a1..4a38a2a5016a 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.join(os.getcwd(), 'OvmfPkg', 'PlatformCI')) 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 (#82648): https://edk2.groups.io/g/devel/message/82648 Mute This Topic: https://groups.io/mt/86576689/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 Thu May 2 22:03:38 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+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-