]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/IntelTdx/IntelTdxX64.dsc
a40f7228b98e8d1f2b78ea14b2468142974f8f24
[mirror_edk2.git] / OvmfPkg / IntelTdx / IntelTdxX64.dsc
1 ## @file
2 # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
3 #
4 # Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
5 # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
6 # Copyright (c) Microsoft Corporation.
7 #
8 # SPDX-License-Identifier: BSD-2-Clause-Patent
9 #
10 ##
11
12 ################################################################################
13 #
14 # Defines Section - statements that will be processed to create a Makefile.
15 #
16 ################################################################################
17 [Defines]
18 PLATFORM_NAME = Ovmf
19 PLATFORM_GUID = 5a9e7754-d81b-49ea-85ad-69eaa7b1539b
20 PLATFORM_VERSION = 0.1
21 DSC_SPECIFICATION = 0x00010005
22 OUTPUT_DIRECTORY = Build/IntelTdx
23 SUPPORTED_ARCHITECTURES = X64
24 BUILD_TARGETS = NOOPT|DEBUG|RELEASE
25 SKUID_IDENTIFIER = DEFAULT
26 FLASH_DEFINITION = OvmfPkg/IntelTdx/IntelTdxX64.fdf
27
28 #
29 # Defines for default states. These can be changed on the command line.
30 # -D FLAG=VALUE
31 #
32 DEFINE SECURE_BOOT_ENABLE = FALSE
33
34 #
35 # Device drivers
36 #
37 DEFINE PVSCSI_ENABLE = TRUE
38 DEFINE MPT_SCSI_ENABLE = TRUE
39 DEFINE LSI_SCSI_ENABLE = FALSE
40
41 #
42 # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
43 # one of the supported values, in place of any of the convenience macros, is
44 # permitted.
45 #
46 !ifdef $(FD_SIZE_1MB)
47 DEFINE FD_SIZE_IN_KB = 1024
48 !else
49 !ifdef $(FD_SIZE_2MB)
50 DEFINE FD_SIZE_IN_KB = 2048
51 !else
52 !ifdef $(FD_SIZE_4MB)
53 DEFINE FD_SIZE_IN_KB = 4096
54 !else
55 DEFINE FD_SIZE_IN_KB = 4096
56 !endif
57 !endif
58 !endif
59
60 #
61 # Define the FILE_GUID of CpuDxe for unique-processor version.
62 #
63 DEFINE UP_CPU_DXE_GUID = 6490f1c5-ebcc-4665-8892-0075b9bb49b7
64
65 [BuildOptions]
66 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
67 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
68 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
69 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
70 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
71 !endif
72 RELEASE_*_*_GENFW_FLAGS = --zero
73
74 #
75 # Disable deprecated APIs.
76 #
77 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
78 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
79 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
80
81 #
82 # Add TDX_PEI_LESS_BOOT
83 #
84 MSFT:*_*_*_CC_FLAGS = /D TDX_PEI_LESS_BOOT
85 INTEL:*_*_*_CC_FLAGS = /D TDX_PEI_LESS_BOOT
86 GCC:*_*_*_CC_FLAGS = -D TDX_PEI_LESS_BOOT
87
88 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
89 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
90 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
91 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
92 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
93
94 ################################################################################
95 #
96 # SKU Identification section - list of all SKU IDs supported by this Platform.
97 #
98 ################################################################################
99 [SkuIds]
100 0|DEFAULT
101
102 ################################################################################
103 #
104 # Library Class section - list of all Library Classes needed by this Platform.
105 #
106 ################################################################################
107
108 !include MdePkg/MdeLibs.dsc.inc
109
110 [LibraryClasses]
111 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
112 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
113 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
114 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
115 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
116 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
117 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
118 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
119 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
120 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
121 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
122 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
123 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
124 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
125 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
126 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
127 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
128 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
129 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
130 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
131 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
132 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
133 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
134 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
135 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
136 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
137 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
138 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
139 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
140 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
141 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
142 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
143 CcProbeLib|OvmfPkg/Library/CcProbeLib/CcProbeLib.inf
144 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
145 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
146 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
147 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
148 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
149 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
150 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
151 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
152 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
153 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
154 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
155 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
156 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
157 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
158 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
159 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
160 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
161 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
162 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
163 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
164 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
165 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
166 MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf
167
168 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
169 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
170 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
171
172 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
173 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
174
175 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
176 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
177
178 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
179 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
180 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
181
182 !if $(SECURE_BOOT_ENABLE) == TRUE
183 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
184 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
185 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
186 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
187 !else
188 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
189 !endif
190 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
191 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
192 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
193 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
194
195 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
196 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
197 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
198 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
199 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
200
201 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
202 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
203
204 [LibraryClasses.common]
205 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
206 VmgExitLib|OvmfPkg/Library/VmgExitLib/VmgExitLib.inf
207 TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
208 TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf
209 PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
210
211 [LibraryClasses.common.SEC]
212 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
213 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
214 !ifdef $(DEBUG_ON_SERIAL_PORT)
215 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
216 !else
217 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
218 !endif
219 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
220 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
221 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
222 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
223 !if $(TOOL_CHAIN_TAG) == "XCODE5"
224 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
225 !else
226 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
227 !endif
228 VmgExitLib|OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf
229 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
230 PrePiHobListPointerLib|OvmfPkg/IntelTdx/PrePiHobListPointerLibTdx/PrePiHobListPointerLibTdx.inf
231 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
232 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
233 PeilessStartupLib|OvmfPkg/Library/PeilessStartupLib/PeilessStartupLib.inf
234
235 [LibraryClasses.common.DXE_CORE]
236 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
237 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
238 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
239 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
240 !ifdef $(DEBUG_ON_SERIAL_PORT)
241 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
242 !else
243 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
244 !endif
245 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
246 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
247 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
248
249 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
250 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
251 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
252 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
253 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
254 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
255 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
256 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
257 !ifdef $(DEBUG_ON_SERIAL_PORT)
258 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
259 !else
260 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
261 !endif
262 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
263 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
264 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
265 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
266 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
267
268 [LibraryClasses.common.UEFI_DRIVER]
269 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
270 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
271 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
272 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
273 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
274 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
275 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
276 !ifdef $(DEBUG_ON_SERIAL_PORT)
277 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
278 !else
279 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
280 !endif
281 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
282 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
283
284 [LibraryClasses.common.DXE_DRIVER]
285 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
286 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
287 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
288 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
289 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
290 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
291 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
292 !ifdef $(DEBUG_ON_SERIAL_PORT)
293 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
294 !else
295 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
296 !endif
297 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
298 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
299 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
300 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
301 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
302 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
303 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
304 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
305 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
306
307 [LibraryClasses.common.UEFI_APPLICATION]
308 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
309 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
310 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
311 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
312 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
313 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
314 !ifdef $(DEBUG_ON_SERIAL_PORT)
315 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
316 !else
317 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
318 !endif
319 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
320
321 [LibraryClasses.common.DXE_SMM_DRIVER]
322 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
323 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
324 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
325 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
326 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
327 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
328 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
329 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
330 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
331 !ifdef $(DEBUG_ON_SERIAL_PORT)
332 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
333 !else
334 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
335 !endif
336 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
337 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
338 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
339
340 [LibraryClasses.common.SMM_CORE]
341 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
342 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
343 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
344 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
345 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
346 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
347 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
348 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
349 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
350 !ifdef $(DEBUG_ON_SERIAL_PORT)
351 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
352 !else
353 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
354 !endif
355 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
356
357 ################################################################################
358 #
359 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
360 #
361 ################################################################################
362 [PcdsFeatureFlag]
363 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
364 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
365 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
366 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
367 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
368 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
369 !ifdef $(CSM_ENABLE)
370 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
371 !endif
372
373 [PcdsFixedAtBuild]
374 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
375 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
376 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
377 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
378 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
379 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
380 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
381 # match PcdFlashNvStorageVariableSize purely for convenience
382 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
383 !endif
384 !if $(FD_SIZE_IN_KB) == 4096
385 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
386 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
387 # match PcdFlashNvStorageVariableSize purely for convenience
388 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
389 !endif
390
391 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
392 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
393 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
394
395 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
396
397 # DEBUG_INIT 0x00000001 // Initialization
398 # DEBUG_WARN 0x00000002 // Warnings
399 # DEBUG_LOAD 0x00000004 // Load events
400 # DEBUG_FS 0x00000008 // EFI File system
401 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
402 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
403 # DEBUG_INFO 0x00000040 // Informational debug messages
404 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
405 # DEBUG_VARIABLE 0x00000100 // Variable
406 # DEBUG_BM 0x00000400 // Boot Manager
407 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
408 # DEBUG_NET 0x00004000 // SNP Driver
409 # DEBUG_UNDI 0x00010000 // UNDI Driver
410 # DEBUG_LOADFILE 0x00020000 // LoadFile
411 # DEBUG_EVENT 0x00080000 // Event messages
412 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
413 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
414 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
415 # // significantly impact boot performance
416 # DEBUG_ERROR 0x80000000 // Error
417 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
418
419 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
420
421 # This PCD is used to set the base address of the PCI express hierarchy. It
422 # is only consulted when OVMF runs on Q35. In that case it is programmed into
423 # the PCIEXBAR register.
424 #
425 # On Q35 machine types that QEMU intends to support in the long term, QEMU
426 # never lets the RAM below 4 GB exceed 2816 MB.
427 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
428
429 #
430 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
431 # best (please refer to git-blame for past updates). The values capture a set
432 # of BIN hints that made sense at a particular time, for some (now likely
433 # unknown) workloads / boot paths.
434 #
435 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
436 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
437 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
438 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
439 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
440
441 #
442 # TDX need 1G PageTable support
443 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
444
445 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
446
447 # IRQs 5, 9, 10, 11 are level-triggered
448 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
449
450 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
451 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
452
453 ################################################################################
454 #
455 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
456 #
457 ################################################################################
458
459 [PcdsDynamicDefault]
460 # only set when
461 # ($(SMM_REQUIRE) == FALSE)
462 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
463
464 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
465 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
466 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
467 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
468 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
469
470 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
471 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
472 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
473 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
474 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
475 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
476 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
477 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
478 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
479 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
480
481 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
482
483 # Set video resolution for text setup.
484 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
485 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
486
487 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
488 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
489 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
490
491 # Noexec settings for DXE.
492 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
493
494 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
495 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
496 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
497
498 # Set memory encryption mask
499 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
500
501 # Set Tdx shared bit mask
502 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
503
504 # Set SEV-ES defaults
505 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
506 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
507 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
508
509 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
510
511 # Set ConfidentialComputing defaults
512 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
513
514 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
515
516 ################################################################################
517 #
518 # Components Section - list of all EDK II Modules needed by this Platform.
519 #
520 ################################################################################
521 [Components]
522 OvmfPkg/ResetVector/ResetVector.inf
523
524 #
525 # SEC Phase modules
526 #
527 OvmfPkg/IntelTdx/Sec/SecMain.inf {
528 <LibraryClasses>
529 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
530 TpmMeasurementLib|SecurityPkg/Library/SecTpmMeasurementLib/SecTpmMeasurementLibTdx.inf
531 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SecCryptLib.inf
532 HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
533 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
534 }
535
536 #
537 # DXE Phase modules
538 #
539 MdeModulePkg/Core/Dxe/DxeMain.inf {
540 <LibraryClasses>
541 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
542 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
543 }
544
545 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
546 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
547 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
548 <LibraryClasses>
549 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
550 }
551
552 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
553
554 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
555 <LibraryClasses>
556 !if $(SECURE_BOOT_ENABLE) == TRUE
557 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
558 !endif
559 NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
560 }
561
562 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
563 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
564
565 UefiCpuPkg/CpuDxe/CpuDxe.inf {
566 <LibraryClasses>
567 #
568 # Directly use DxeMpInitLib. It depends on DxeMpInitLibMpDepLib which
569 # checks the Protocol of gEfiMpInitLibMpDepProtocolGuid.
570 #
571 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
572 NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf
573 }
574
575 UefiCpuPkg/CpuDxe/CpuDxe.inf {
576 <Defines>
577 FILE_GUID = $(UP_CPU_DXE_GUID)
578
579 <LibraryClasses>
580 #
581 # Directly use MpInitLibUp. It depends on DxeMpInitLibUpDepLib which
582 # checks the Protocol of gEfiMpInitLibUpDepProtocolGuid.
583 #
584 MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
585 NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf
586 }
587
588 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
589 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
590 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
591 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
592 <LibraryClasses>
593 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
594 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
595 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
596 }
597 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
598 <LibraryClasses>
599 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
600 }
601 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
602 MdeModulePkg/Universal/Metronome/Metronome.inf
603 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
604 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
605 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
606 <LibraryClasses>
607 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
608 }
609 MdeModulePkg/Logo/LogoDxe.inf
610 MdeModulePkg/Application/UiApp/UiApp.inf {
611 <LibraryClasses>
612 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
613 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
614 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
615 }
616 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
617 <LibraryClasses>
618 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
619 }
620 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
621 OvmfPkg/Virtio10Dxe/Virtio10.inf
622 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
623 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
624 OvmfPkg/VirtioRngDxe/VirtioRng.inf
625 !if $(PVSCSI_ENABLE) == TRUE
626 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
627 !endif
628 !if $(MPT_SCSI_ENABLE) == TRUE
629 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
630 !endif
631 !if $(LSI_SCSI_ENABLE) == TRUE
632 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
633 !endif
634 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
635 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
636 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
637 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
638 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
639 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
640 <LibraryClasses>
641 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
642 }
643 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
644 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
645 <LibraryClasses>
646 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
647 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
648 }
649
650 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
651 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
652 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
653 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
654 FatPkg/EnhancedFatDxe/Fat.inf
655 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
656 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
657 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
658 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
659 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
660 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
661 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
662 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
663 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
664 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
665 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
666 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
667
668 !ifndef $(CSM_ENABLE)
669 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
670 !endif
671 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
672 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
673
674 #
675 # ISA Support
676 #
677 OvmfPkg/SioBusDxe/SioBusDxe.inf
678 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
679 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
680
681 #
682 # SMBIOS Support
683 #
684 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
685 <LibraryClasses>
686 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
687 }
688 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
689
690 #
691 # ACPI Support
692 #
693 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
694 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
695 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
696 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
697 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
698
699 #
700 # Usb Support
701 #
702 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
703 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
704 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
705 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
706 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
707 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
708
709 !if $(TOOL_CHAIN_TAG) != "XCODE5"
710 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
711 <PcdsFixedAtBuild>
712 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
713 }
714 !endif
715 ShellPkg/Application/Shell/Shell.inf {
716 <LibraryClasses>
717 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
718 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
719 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
720 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
721 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
722 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
723 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
724 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
725 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
726 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
727
728 <PcdsFixedAtBuild>
729 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
730 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
731 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
732 }
733
734 !if $(SECURE_BOOT_ENABLE) == TRUE
735 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
736 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
737 !endif
738
739 OvmfPkg/PlatformDxe/Platform.inf
740 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
741
742 OvmfPkg/TdxDxe/TdxDxe.inf
743
744 #
745 # Variable driver stack (non-SMM)
746 #
747 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
748 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
749 <LibraryClasses>
750 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
751 }
752 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
753 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
754 <LibraryClasses>
755 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
756 }
757
758 #
759 # Cc Measurement Protocol for Td guest
760 #
761 OvmfPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.inf {
762 <LibraryClasses>
763 HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
764 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
765 }