]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/PlatformCI/BhyveBuild.py
2 # Script to Build OVMF UEFI firmware
4 # Copyright (c) Microsoft Corporation.
5 # SPDX-License-Identifier: BSD-2-Clause-Patent
10 sys
.path
.append(os
.path
.dirname(os
.path
.abspath(__file__
)))
11 from PlatformBuildLib
import SettingsManager
12 from PlatformBuildLib
import PlatformBuilder
14 # ####################################################################################### #
15 # Common Configuration #
16 # ####################################################################################### #
17 class CommonPlatform():
18 ''' Common settings for this platform. Define static data here and use
19 for the different parts of stuart
21 PackagesSupported
= ("OvmfPkg",)
22 ArchSupported
= ("X64",)
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__
)), "..", ".."))
29 def GetDscName(cls
, ArchCsv
: str) -> str:
30 ''' return the DSC given the architectures requested.
32 ArchCsv: csv string containing all architectures to build
34 return "Bhyve/BhyveX64.dsc"
36 import PlatformBuildLib
37 PlatformBuildLib
.CommonPlatform
= CommonPlatform