VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/PlatformCI/QemuBuild.py

Last change on this file was 108794, checked in by vboxsync, 4 weeks ago

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1# @file
2# Script to Build OVMF UEFI firmware
3#
4# Copyright (c) Microsoft Corporation.
5# SPDX-License-Identifier: BSD-2-Clause-Patent
6##
7import os
8import sys
9
10sys.path.append(os.path.dirname(os.path.abspath(__file__)))
11from PlatformBuildLib import SettingsManager
12from PlatformBuildLib import PlatformBuilder
13
14 # ####################################################################################### #
15 # Common Configuration #
16 # ####################################################################################### #
17class CommonPlatform():
18 ''' Common settings for this platform. Define static data here and use
19 for the different parts of stuart
20 '''
21 PackagesSupported = ("OvmfPkg",)
22 ArchSupported = ("RISCV64","LOONGARCH64")
23 TargetsSupported = ("DEBUG", "RELEASE", "NOOPT")
24 Scopes = ('ovmf', 'edk2-build')
25 WorkspaceRoot = os.path.realpath(os.path.join(
26 os.path.dirname(os.path.abspath(__file__)), "..", ".."))
27
28 @classmethod
29 def GetDscName(cls, ArchCsv: str) -> str:
30 ''' return the DSC given the architectures requested.
31
32 ArchCsv: csv string containing all architectures to build
33 '''
34 if "RISCV64" in ArchCsv.upper().split(","):
35 dsc = "RiscVVirt/RiscVVirtQemu.dsc"
36 if "LOONGARCH64" in ArchCsv.upper().split(","):
37 dsc = "LoongArchVirt/LoongArchVirtQemu.dsc"
38 return dsc
39
40import PlatformBuildLib
41PlatformBuildLib.CommonPlatform = CommonPlatform
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette