]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/PlatformCI/IntelTdxBuild.py
OvmfPkg/PlatformCI: add IntelTdxBuild.py
[mirror_edk2.git] / OvmfPkg / PlatformCI / IntelTdxBuild.py
CommitLineData
f966093f
MX
1# @file\r
2# Script to Build OVMF UEFI firmware\r
3#\r
4# Copyright (c) Microsoft Corporation.\r
5# SPDX-License-Identifier: BSD-2-Clause-Patent\r
6##\r
7import os\r
8import sys\r
9\r
10sys.path.append(os.path.dirname(os.path.abspath(__file__)))\r
11from PlatformBuildLib import SettingsManager\r
12from PlatformBuildLib import PlatformBuilder\r
13\r
14 # ####################################################################################### #\r
15 # Common Configuration #\r
16 # ####################################################################################### #\r
17class CommonPlatform():\r
18 ''' Common settings for this platform. Define static data here and use\r
19 for the different parts of stuart\r
20 '''\r
21 PackagesSupported = ("OvmfPkg",)\r
22 ArchSupported = ("X64",)\r
23 TargetsSupported = ("DEBUG", "RELEASE", "NOOPT")\r
24 Scopes = ('ovmf', 'edk2-build')\r
25 WorkspaceRoot = os.path.realpath(os.path.join(\r
26 os.path.dirname(os.path.abspath(__file__)), "..", ".."))\r
27\r
28 @classmethod\r
29 def GetDscName(cls, ArchCsv: str) -> str:\r
30 ''' return the DSC given the architectures requested.\r
31\r
32 ArchCsv: csv string containing all architectures to build\r
33 '''\r
34 return "IntelTdx/IntelTdxX64.dsc"\r
35\r
36import PlatformBuildLib\r
37PlatformBuildLib.CommonPlatform = CommonPlatform\r