VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/PlatformCI/AmdSevBuild.py

Last change on this file was 99404, checked in by vboxsync, 19 months ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, 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
9import subprocess
10
11sys.path.append(os.path.dirname(os.path.abspath(__file__)))
12from PlatformBuildLib import SettingsManager
13from PlatformBuildLib import PlatformBuilder
14
15 # ####################################################################################### #
16 # Common Configuration #
17 # ####################################################################################### #
18class CommonPlatform():
19 ''' Common settings for this platform. Define static data here and use
20 for the different parts of stuart
21 '''
22 PackagesSupported = ("OvmfPkg",)
23 ArchSupported = ("X64",)
24 TargetsSupported = ("DEBUG", "RELEASE", "NOOPT")
25 Scopes = ('ovmf', 'edk2-build')
26 WorkspaceRoot = os.path.realpath(os.path.join(
27 os.path.dirname(os.path.abspath(__file__)), "..", ".."))
28
29 @classmethod
30 def GetDscName(cls, ArchCsv: str) -> str:
31 ''' return the DSC given the architectures requested.
32
33 ArchCsv: csv string containing all architectures to build
34 '''
35 return "AmdSev/AmdSevX64.dsc"
36
37import PlatformBuildLib
38PlatformBuildLib.CommonPlatform = CommonPlatform
39
40# hack alert -- create dummy grub.efi
41subprocess.run(['touch', 'OvmfPkg/AmdSev/Grub/grub.efi'])
42subprocess.run(['ls', '-l', '--sort=time', 'OvmfPkg/AmdSev/Grub'])
Note: See TracBrowser for help on using the repository browser.

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