--- /dev/null
+# @file\r
+# Script to Build OVMF UEFI firmware\r
+#\r
+# Copyright (c) Microsoft Corporation.\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
+##\r
+import os\r
+import sys\r
+\r
+sys.path.append(os.path.dirname(os.path.abspath(__file__)))\r
+from PlatformBuildLib import SettingsManager\r
+from PlatformBuildLib import PlatformBuilder\r
+\r
+ # ####################################################################################### #\r
+ # Common Configuration #\r
+ # ####################################################################################### #\r
+class CommonPlatform():\r
+ ''' Common settings for this platform. Define static data here and use\r
+ for the different parts of stuart\r
+ '''\r
+ PackagesSupported = ("OvmfPkg",)\r
+ ArchSupported = ("X64",)\r
+ TargetsSupported = ("DEBUG", "RELEASE", "NOOPT")\r
+ Scopes = ('ovmf', 'edk2-build')\r
+ WorkspaceRoot = os.path.realpath(os.path.join(\r
+ os.path.dirname(os.path.abspath(__file__)), "..", ".."))\r
+\r
+ @classmethod\r
+ def GetDscName(cls, ArchCsv: str) -> str:\r
+ ''' return the DSC given the architectures requested.\r
+\r
+ ArchCsv: csv string containing all architectures to build\r
+ '''\r
+ return "IntelTdx/IntelTdxX64.dsc"\r
+\r
+import PlatformBuildLib\r
+PlatformBuildLib.CommonPlatform = CommonPlatform\r