]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/PlatformCI/AmdSevBuild.py
2 # Script to Build OVMF UEFI firmware
4 # Copyright (c) Microsoft Corporation.
5 # SPDX-License-Identifier: BSD-2-Clause-Patent
11 sys
.path
.append(os
.path
.dirname(os
.path
.abspath(__file__
)))
12 from PlatformBuildLib
import SettingsManager
13 from PlatformBuildLib
import PlatformBuilder
15 # ####################################################################################### #
16 # Common Configuration #
17 # ####################################################################################### #
18 class CommonPlatform():
19 ''' Common settings for this platform. Define static data here and use
20 for the different parts of stuart
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__
)), "..", ".."))
30 def GetDscName(cls
, ArchCsv
: str) -> str:
31 ''' return the DSC given the architectures requested.
33 ArchCsv: csv string containing all architectures to build
35 return "AmdSev/AmdSevX64.dsc"
37 import PlatformBuildLib
38 PlatformBuildLib
.CommonPlatform
= CommonPlatform
40 # hack alert -- create dummy grub.efi
41 subprocess
.run(['touch', 'OvmfPkg/AmdSev/Grub/grub.efi'])
42 subprocess
.run(['ls', '-l', '--sort=time', 'OvmfPkg/AmdSev/Grub'])