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