forked from tianocore/edk2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OvmfPkg/PlatformCI: add AmdSevBuild.py
Add build test for OvmfPkg/AmdSev. Signed-off-by: Gerd Hoffmann <[email protected]> Acked-by: Jiewen Yao <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Reviewed-by: Philippe Mathieu-Daude <[email protected]>
- Loading branch information
1 parent
04eacd3
commit 8b8ae60
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.dirname(os.path.abspath(__file__))) | ||
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 = ("OvmfPkg",) | ||
ArchSupported = ("X64",) | ||
TargetsSupported = ("DEBUG", "RELEASE", "NOOPT") | ||
Scopes = ('ovmf', 'edk2-build') | ||
WorkspaceRoot = 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 = CommonPlatform |