2 # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
4 # Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
5 # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
6 # Copyright (c) Microsoft Corporation.
8 # SPDX-License-Identifier: BSD-2-Clause-Patent
12 ################################################################################
14 # Defines Section - statements that will be processed to create a Makefile.
16 ################################################################################
19 PLATFORM_GUID = 5a9e7754-d81b-49ea-85ad-69eaa7b1539b
20 PLATFORM_VERSION = 0.1
21 DSC_SPECIFICATION = 0x00010005
22 OUTPUT_DIRECTORY = Build/OvmfIa32
23 SUPPORTED_ARCHITECTURES = IA32
24 BUILD_TARGETS = NOOPT|DEBUG|RELEASE
25 SKUID_IDENTIFIER = DEFAULT
26 FLASH_DEFINITION = OvmfPkg/OvmfPkgIa32.fdf
29 # Defines for default states. These can be changed on the command line.
32 DEFINE SECURE_BOOT_ENABLE = FALSE
33 DEFINE SMM_REQUIRE = FALSE
34 DEFINE SOURCE_DEBUG_ENABLE = FALSE
35 DEFINE LOAD_X64_ON_IA32_ENABLE = FALSE
37 !include OvmfPkg/Include/Dsc/OvmfTpmDefines.dsc.inc
40 # Shell can be useful for debugging but should not be enabled for production
42 DEFINE BUILD_SHELL = TRUE
47 DEFINE NETWORK_TLS_ENABLE = FALSE
48 DEFINE NETWORK_IP6_ENABLE = FALSE
49 DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
50 DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
51 DEFINE NETWORK_ISCSI_ENABLE = TRUE
53 !include NetworkPkg/NetworkDefines.dsc.inc
58 DEFINE PVSCSI_ENABLE = FALSE
59 DEFINE MPT_SCSI_ENABLE = FALSE
60 DEFINE LSI_SCSI_ENABLE = FALSE
63 # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
64 # one of the supported values, in place of any of the convenience macros, is
68 DEFINE FD_SIZE_IN_KB = 1024
71 DEFINE FD_SIZE_IN_KB = 2048
74 DEFINE FD_SIZE_IN_KB = 4096
76 DEFINE FD_SIZE_IN_KB = 4096
82 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
83 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
84 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
85 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
86 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
88 RELEASE_*_*_GENFW_FLAGS = --zero
91 # Disable deprecated APIs.
93 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
94 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
95 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
98 # SECURE_BOOT_FEATURE_ENABLED
100 !if $(SECURE_BOOT_ENABLE) == TRUE
101 MSFT:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
102 INTEL:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
103 GCC:*_*_*_CC_FLAGS = -D SECURE_BOOT_FEATURE_ENABLED
106 !include NetworkPkg/NetworkBuildOptions.dsc.inc
108 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
109 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
110 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
111 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
112 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
114 # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
115 # protection of DXE_SMM_DRIVER/SMM_CORE modules
116 [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
117 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
118 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
119 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
120 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
122 ################################################################################
124 # SKU Identification section - list of all SKU IDs supported by this Platform.
126 ################################################################################
130 ################################################################################
132 # Library Class section - list of all Library Classes needed by this Platform.
134 ################################################################################
136 !include MdePkg/MdeLibs.dsc.inc
139 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
140 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
141 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
142 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
143 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
144 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
145 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
146 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
147 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
148 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
149 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
150 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
151 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
152 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
153 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
154 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
155 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
156 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
157 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
158 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
159 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
160 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
161 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
162 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
163 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
164 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
165 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
166 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
167 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
168 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
169 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
170 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
171 CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
172 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
173 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
174 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
175 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
176 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
177 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
178 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
179 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
180 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
181 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
182 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
183 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
184 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
185 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
186 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
187 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
188 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
189 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
190 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
191 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
192 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
193 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
194 MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLibNull.inf
195 PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
196 DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
197 !if $(SMM_REQUIRE) == FALSE
198 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
200 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
201 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
203 !if $(SOURCE_DEBUG_ENABLE) == TRUE
204 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
205 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
207 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
208 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
211 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
212 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
214 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
215 !if $(NETWORK_TLS_ENABLE) == TRUE
216 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
218 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
220 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
222 !if $(SECURE_BOOT_ENABLE) == TRUE
223 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
224 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
225 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
226 PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
227 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
229 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
231 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
232 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
233 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
234 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
240 !include NetworkPkg/NetworkLibs.dsc.inc
242 !if $(NETWORK_TLS_ENABLE) == TRUE
243 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
246 !if $(BUILD_SHELL) == TRUE
247 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
249 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
251 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
252 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
253 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
255 !include OvmfPkg/Include/Dsc/OvmfTpmLibs.dsc.inc
257 [LibraryClasses.common]
258 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
259 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
260 TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLibNull.inf
262 [LibraryClasses.common.SEC]
263 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
264 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
265 !ifdef $(DEBUG_ON_SERIAL_PORT)
266 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
268 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
270 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
271 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
272 !if $(SOURCE_DEBUG_ENABLE) == TRUE
273 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
275 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
276 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
277 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
278 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
279 !if $(TOOL_CHAIN_TAG) == "XCODE5"
280 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
282 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
284 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
286 [LibraryClasses.common.PEI_CORE]
287 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
288 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
289 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
290 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
291 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
292 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
293 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
294 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
295 !ifdef $(DEBUG_ON_SERIAL_PORT)
296 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
298 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
300 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
302 [LibraryClasses.common.PEIM]
303 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
304 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
305 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
306 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
307 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
308 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
309 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
310 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
311 !ifdef $(DEBUG_ON_SERIAL_PORT)
312 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
314 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
316 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
317 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
318 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
319 !if $(SOURCE_DEBUG_ENABLE) == TRUE
320 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
322 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
323 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
324 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
325 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
326 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
327 PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
329 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
331 [LibraryClasses.common.DXE_CORE]
332 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
333 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
334 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
335 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
336 !ifdef $(DEBUG_ON_SERIAL_PORT)
337 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
339 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
341 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
342 !if $(SOURCE_DEBUG_ENABLE) == TRUE
343 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
345 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
346 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
348 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
349 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
350 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
351 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
352 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
353 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
354 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
355 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
356 !ifdef $(DEBUG_ON_SERIAL_PORT)
357 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
359 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
361 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
362 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
363 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
364 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
365 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
366 !if $(SMM_REQUIRE) == TRUE
367 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
370 [LibraryClasses.common.UEFI_DRIVER]
371 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
372 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
373 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
374 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
375 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
376 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
377 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
378 !ifdef $(DEBUG_ON_SERIAL_PORT)
379 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
381 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
383 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
384 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
386 [LibraryClasses.common.DXE_DRIVER]
387 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
388 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
389 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
390 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
391 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
392 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
393 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
394 !ifdef $(DEBUG_ON_SERIAL_PORT)
395 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
397 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
399 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
400 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
401 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
402 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
403 !if $(SMM_REQUIRE) == TRUE
404 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
406 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
408 !if $(SOURCE_DEBUG_ENABLE) == TRUE
409 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
411 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
412 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
413 NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf
414 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
415 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
417 [LibraryClasses.common.UEFI_APPLICATION]
418 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
419 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
420 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
421 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
422 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
423 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
424 !ifdef $(DEBUG_ON_SERIAL_PORT)
425 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
427 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
429 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
431 [LibraryClasses.common.DXE_SMM_DRIVER]
432 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
433 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
434 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
435 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
436 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
437 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
438 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
439 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
440 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
441 !ifdef $(DEBUG_ON_SERIAL_PORT)
442 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
444 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
446 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
447 !if $(SOURCE_DEBUG_ENABLE) == TRUE
448 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
450 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
451 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
452 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
454 [LibraryClasses.common.SMM_CORE]
455 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
456 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
457 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
458 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
459 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
460 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
461 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
462 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
463 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
464 !ifdef $(DEBUG_ON_SERIAL_PORT)
465 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
467 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
469 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
471 ################################################################################
473 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
475 ################################################################################
477 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
478 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
479 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
480 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
481 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
482 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
484 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
486 !if $(SMM_REQUIRE) == TRUE
487 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
488 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
489 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
493 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
494 !if $(SMM_REQUIRE) == FALSE
495 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
497 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
498 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
499 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
500 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
501 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
502 !if $(NETWORK_TLS_ENABLE) == FALSE
503 # match PcdFlashNvStorageVariableSize purely for convenience
504 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
507 !if $(FD_SIZE_IN_KB) == 4096
508 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
509 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
510 !if $(NETWORK_TLS_ENABLE) == FALSE
511 # match PcdFlashNvStorageVariableSize purely for convenience
512 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
515 !if $(NETWORK_TLS_ENABLE) == TRUE
516 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
517 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
520 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
521 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
522 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
524 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
526 # DEBUG_INIT 0x00000001 // Initialization
527 # DEBUG_WARN 0x00000002 // Warnings
528 # DEBUG_LOAD 0x00000004 // Load events
529 # DEBUG_FS 0x00000008 // EFI File system
530 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
531 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
532 # DEBUG_INFO 0x00000040 // Informational debug messages
533 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
534 # DEBUG_VARIABLE 0x00000100 // Variable
535 # DEBUG_BM 0x00000400 // Boot Manager
536 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
537 # DEBUG_NET 0x00004000 // SNP Driver
538 # DEBUG_UNDI 0x00010000 // UNDI Driver
539 # DEBUG_LOADFILE 0x00020000 // LoadFile
540 # DEBUG_EVENT 0x00080000 // Event messages
541 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
542 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
543 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
544 # // significantly impact boot performance
545 # DEBUG_ERROR 0x80000000 // Error
546 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
548 !if $(SOURCE_DEBUG_ENABLE) == TRUE
549 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
551 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
554 # This PCD is used to set the base address of the PCI express hierarchy. It
555 # is only consulted when OVMF runs on Q35. In that case it is programmed into
556 # the PCIEXBAR register.
558 # On Q35 machine types that QEMU intends to support in the long term, QEMU
559 # never lets the RAM below 4 GB exceed 2816 MB.
560 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
562 !if $(SOURCE_DEBUG_ENABLE) == TRUE
563 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
567 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
568 # best (please refer to git-blame for past updates). The values capture a set
569 # of BIN hints that made sense at a particular time, for some (now likely
570 # unknown) workloads / boot paths.
572 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
573 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x12
574 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
575 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
576 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
581 !include NetworkPkg/NetworkPcds.dsc.inc
583 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
585 !if $(SMM_REQUIRE) == TRUE
586 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
589 # IRQs 5, 9, 10, 11 are level-triggered
590 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
592 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
593 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
595 ################################################################################
597 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
599 ################################################################################
603 # ($(SMM_REQUIRE) == FALSE)
604 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
606 !if $(SMM_REQUIRE) == FALSE
607 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
608 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
609 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
610 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
611 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
613 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
614 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
615 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
616 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
617 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
618 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
619 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
620 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
621 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
622 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
623 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
625 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
627 # Set video resolution for text setup.
628 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
629 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
631 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
632 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
633 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
635 # Noexec settings for DXE.
636 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
638 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
639 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
640 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
642 # Set memory encryption mask
643 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
645 # Set Tdx shared bit mask
646 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
648 # Set SEV-ES defaults
649 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
650 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
651 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
653 !if $(SMM_REQUIRE) == TRUE
654 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
655 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
656 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
657 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
660 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
662 !include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
664 # IPv4 and IPv6 PXE Boot support.
665 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
666 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
668 # Set ConfidentialComputing defaults
669 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
671 !if $(CSM_ENABLE) == FALSE
672 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
676 !include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
678 ################################################################################
680 # Components Section - list of all EDK II Modules needed by this Platform.
682 ################################################################################
684 OvmfPkg/ResetVector/ResetVector.inf
689 OvmfPkg/Sec/SecMain.inf {
691 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
697 MdeModulePkg/Core/Pei/PeiMain.inf
698 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
700 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
702 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
704 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
706 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
708 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
710 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
712 OvmfPkg/PlatformPei/PlatformPei.inf
713 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
715 !if $(SMM_REQUIRE) == TRUE
716 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
719 !if $(SMM_REQUIRE) == TRUE
720 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
721 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
722 OvmfPkg/SmmAccess/SmmAccessPei.inf
724 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
726 !include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
731 MdeModulePkg/Core/Dxe/DxeMain.inf {
733 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
734 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
737 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
738 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
739 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
741 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
744 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
746 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
748 !if $(SECURE_BOOT_ENABLE) == TRUE
749 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
751 !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
754 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
755 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
756 UefiCpuPkg/CpuDxe/CpuDxe.inf
758 OvmfPkg/8259InterruptControllerDxe/8259.inf
759 OvmfPkg/8254TimerDxe/8254Timer.inf
761 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
763 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
764 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
765 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
767 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
768 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
769 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
771 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
773 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
775 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
776 MdeModulePkg/Universal/Metronome/Metronome.inf
777 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
778 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
779 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
781 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
783 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
784 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
787 MdeModulePkg/Logo/LogoDxe.inf
788 MdeModulePkg/Application/UiApp/UiApp.inf {
790 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
791 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
792 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
794 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
795 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
798 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
800 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
802 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
803 OvmfPkg/Virtio10Dxe/Virtio10.inf
804 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
805 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
806 OvmfPkg/VirtioRngDxe/VirtioRng.inf
807 !if $(PVSCSI_ENABLE) == TRUE
808 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
810 !if $(MPT_SCSI_ENABLE) == TRUE
811 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
813 !if $(LSI_SCSI_ENABLE) == TRUE
814 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
816 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
817 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
818 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
819 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
820 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
821 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
823 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
825 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
826 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
828 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
829 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
831 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
832 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
833 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
834 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
835 FatPkg/EnhancedFatDxe/Fat.inf
836 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
837 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
838 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
839 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
840 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
841 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
842 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
843 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
844 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
845 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
846 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
847 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
849 !ifndef $(CSM_ENABLE)
850 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
852 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
853 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
858 OvmfPkg/SioBusDxe/SioBusDxe.inf
859 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
860 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
865 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
867 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
869 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
874 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
875 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
876 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
877 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
878 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
883 !include NetworkPkg/NetworkComponents.dsc.inc
884 !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
886 OvmfPkg/VirtioNetDxe/VirtioNet.inf
891 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
892 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
893 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
894 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
895 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
896 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
899 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
901 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
903 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
904 OvmfPkg/Csm/Csm16/Csm16.inf
907 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
908 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
910 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
912 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
914 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
916 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
918 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
921 !if $(BUILD_SHELL) == TRUE
922 ShellPkg/Application/Shell/Shell.inf {
924 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
925 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
926 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
927 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
928 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
929 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
930 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
931 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
932 !if $(NETWORK_IP6_ENABLE) == TRUE
933 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
935 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
936 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
937 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
940 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
941 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
942 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
946 !if $(SECURE_BOOT_ENABLE) == TRUE
947 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
948 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
951 OvmfPkg/PlatformDxe/Platform.inf
952 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
954 !if $(SMM_REQUIRE) == TRUE
955 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
956 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
957 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
960 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
962 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
967 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
970 # Privileged drivers (DXE_SMM_DRIVER modules)
972 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
973 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
974 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
976 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
978 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
980 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
981 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
985 # Variable driver stack (SMM)
987 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
989 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
991 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
992 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
994 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
995 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
997 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
1002 # Variable driver stack (non-SMM)
1004 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1005 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1007 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1009 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1010 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1012 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1019 !include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc
1021 !if $(LOAD_X64_ON_IA32_ENABLE) == TRUE
1022 OvmfPkg/CompatImageLoaderDxe/CompatImageLoaderDxe.inf