2 # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
4 # Copyright (c) 2006 - 2023, 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/Ovmf3264
23 SUPPORTED_ARCHITECTURES = IA32|X64
24 BUILD_TARGETS = NOOPT|DEBUG|RELEASE
25 SKUID_IDENTIFIER = DEFAULT
26 FLASH_DEFINITION = OvmfPkg/OvmfPkgIa32X64.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
36 !include OvmfPkg/Include/Dsc/OvmfTpmDefines.dsc.inc
39 # Shell can be useful for debugging but should not be enabled for production
41 DEFINE BUILD_SHELL = TRUE
46 DEFINE NETWORK_TLS_ENABLE = FALSE
47 DEFINE NETWORK_IP6_ENABLE = FALSE
48 DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
49 DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
50 DEFINE NETWORK_ISCSI_ENABLE = TRUE
52 !include NetworkPkg/NetworkDefines.dsc.inc
57 DEFINE PVSCSI_ENABLE = FALSE
58 DEFINE MPT_SCSI_ENABLE = FALSE
59 DEFINE LSI_SCSI_ENABLE = FALSE
62 # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
63 # one of the supported values, in place of any of the convenience macros, is
67 DEFINE FD_SIZE_IN_KB = 1024
70 DEFINE FD_SIZE_IN_KB = 2048
73 DEFINE FD_SIZE_IN_KB = 4096
75 DEFINE FD_SIZE_IN_KB = 4096
81 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
82 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
83 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
84 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
85 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
87 !if $(SOURCE_DEBUG_ENABLE) == TRUE
88 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
89 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
90 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
92 RELEASE_*_*_GENFW_FLAGS = --zero
95 # Disable deprecated APIs.
97 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
98 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
99 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
102 # SECURE_BOOT_FEATURE_ENABLED
104 !if $(SECURE_BOOT_ENABLE) == TRUE
105 MSFT:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
106 INTEL:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
107 GCC:*_*_*_CC_FLAGS = -D SECURE_BOOT_FEATURE_ENABLED
110 !include NetworkPkg/NetworkBuildOptions.dsc.inc
112 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
113 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
114 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
115 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
116 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
118 # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
119 # protection of DXE_SMM_DRIVER/SMM_CORE modules
120 [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
121 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
122 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
123 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
124 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
126 ################################################################################
128 # SKU Identification section - list of all SKU IDs supported by this Platform.
130 ################################################################################
134 ################################################################################
136 # Library Class section - list of all Library Classes needed by this Platform.
138 ################################################################################
140 !include MdePkg/MdeLibs.dsc.inc
143 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
144 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
145 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
146 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
147 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
148 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
149 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
150 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
151 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
152 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
153 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
154 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
155 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
156 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
157 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
158 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
159 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
160 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
161 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
162 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
163 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
164 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
165 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
166 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
167 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
168 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
169 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
170 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
171 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
172 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
173 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
174 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
175 CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
176 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
177 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
178 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
179 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
180 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
181 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
182 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
183 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
184 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
185 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
186 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
187 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
188 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
189 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
190 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
191 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
192 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
193 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
194 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
195 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
196 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
197 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
198 MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLibNull.inf
199 PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
200 DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
201 !if $(SMM_REQUIRE) == FALSE
202 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
204 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
205 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
207 !if $(SOURCE_DEBUG_ENABLE) == TRUE
208 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
209 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
211 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
212 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
215 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
216 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
218 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
219 !if $(NETWORK_TLS_ENABLE) == TRUE
220 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
222 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
224 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
226 !if $(SECURE_BOOT_ENABLE) == TRUE
227 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
228 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
229 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
230 PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
231 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
233 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
235 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
236 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
237 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
238 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
244 !include NetworkPkg/NetworkLibs.dsc.inc
246 !if $(NETWORK_TLS_ENABLE) == TRUE
247 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
250 !if $(BUILD_SHELL) == TRUE
251 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
253 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
255 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
256 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
257 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
259 !include OvmfPkg/Include/Dsc/OvmfTpmLibs.dsc.inc
261 [LibraryClasses.common]
262 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
263 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
264 TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
265 TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLibNull.inf
267 [LibraryClasses.common.SEC]
268 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
269 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
270 !ifdef $(DEBUG_ON_SERIAL_PORT)
271 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
273 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
275 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
276 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
277 !if $(SOURCE_DEBUG_ENABLE) == TRUE
278 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
280 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
281 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
282 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
283 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
284 !if $(TOOL_CHAIN_TAG) == "XCODE5"
285 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
287 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
289 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
291 [LibraryClasses.common.PEI_CORE]
292 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
293 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
294 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
295 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
296 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
297 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
298 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
299 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
300 !ifdef $(DEBUG_ON_SERIAL_PORT)
301 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
303 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
305 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
307 [LibraryClasses.common.PEIM]
308 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
309 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
310 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
311 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
312 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
313 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
314 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
315 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
316 !ifdef $(DEBUG_ON_SERIAL_PORT)
317 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
319 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
321 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
322 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
323 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
324 !if $(SOURCE_DEBUG_ENABLE) == TRUE
325 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
327 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
328 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
329 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
330 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
331 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
332 PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
334 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
336 [LibraryClasses.common.DXE_CORE]
337 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
338 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
339 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
340 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
341 !ifdef $(DEBUG_ON_SERIAL_PORT)
342 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
344 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
346 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
347 !if $(SOURCE_DEBUG_ENABLE) == TRUE
348 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
350 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
351 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
353 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
354 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
355 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
356 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
357 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
358 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
359 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
360 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
361 !ifdef $(DEBUG_ON_SERIAL_PORT)
362 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
364 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
366 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
367 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
368 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
369 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
370 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
371 !if $(SMM_REQUIRE) == TRUE
372 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
375 [LibraryClasses.common.UEFI_DRIVER]
376 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
377 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
378 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
379 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
380 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
381 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
382 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
383 !ifdef $(DEBUG_ON_SERIAL_PORT)
384 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
386 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
388 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
389 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
391 [LibraryClasses.common.DXE_DRIVER]
392 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
393 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
394 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
395 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
396 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
397 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
398 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
399 !ifdef $(DEBUG_ON_SERIAL_PORT)
400 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
402 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
404 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
405 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
406 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
407 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
408 !if $(SMM_REQUIRE) == TRUE
409 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
411 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
413 !if $(SOURCE_DEBUG_ENABLE) == TRUE
414 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
416 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
417 CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
418 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
419 NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf
420 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
421 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
423 [LibraryClasses.common.UEFI_APPLICATION]
424 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
425 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
426 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
427 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
428 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
429 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
430 !ifdef $(DEBUG_ON_SERIAL_PORT)
431 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
433 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
435 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
437 [LibraryClasses.common.DXE_SMM_DRIVER]
438 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
439 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
440 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
441 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
442 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
443 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
444 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
445 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
446 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
447 !ifdef $(DEBUG_ON_SERIAL_PORT)
448 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
450 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
452 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
453 !if $(SOURCE_DEBUG_ENABLE) == TRUE
454 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
456 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
457 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
458 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
460 [LibraryClasses.common.SMM_CORE]
461 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
462 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
463 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
464 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
465 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
466 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
467 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
468 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
469 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
470 !ifdef $(DEBUG_ON_SERIAL_PORT)
471 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
473 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
475 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
477 ################################################################################
479 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
481 ################################################################################
483 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
484 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
485 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
486 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
487 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
488 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
490 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
492 !if $(SMM_REQUIRE) == TRUE
493 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
494 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
495 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
497 !if $(SECURE_BOOT_ENABLE) == TRUE
498 gEfiMdeModulePkgTokenSpaceGuid.PcdRequireSelfSignedPk|TRUE
502 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
503 !if $(SMM_REQUIRE) == FALSE
504 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
506 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
507 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
508 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
509 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
510 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
511 !if $(NETWORK_TLS_ENABLE) == FALSE
512 # match PcdFlashNvStorageVariableSize purely for convenience
513 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
516 !if $(FD_SIZE_IN_KB) == 4096
517 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
518 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
519 !if $(NETWORK_TLS_ENABLE) == FALSE
520 # match PcdFlashNvStorageVariableSize purely for convenience
521 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
524 !if $(NETWORK_TLS_ENABLE) == TRUE
525 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
526 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
529 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
530 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
531 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
533 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
535 # DEBUG_INIT 0x00000001 // Initialization
536 # DEBUG_WARN 0x00000002 // Warnings
537 # DEBUG_LOAD 0x00000004 // Load events
538 # DEBUG_FS 0x00000008 // EFI File system
539 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
540 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
541 # DEBUG_INFO 0x00000040 // Informational debug messages
542 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
543 # DEBUG_VARIABLE 0x00000100 // Variable
544 # DEBUG_BM 0x00000400 // Boot Manager
545 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
546 # DEBUG_NET 0x00004000 // SNP Driver
547 # DEBUG_UNDI 0x00010000 // UNDI Driver
548 # DEBUG_LOADFILE 0x00020000 // LoadFile
549 # DEBUG_EVENT 0x00080000 // Event messages
550 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
551 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
552 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
553 # // significantly impact boot performance
554 # DEBUG_ERROR 0x80000000 // Error
555 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
557 !if $(SOURCE_DEBUG_ENABLE) == TRUE
558 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
560 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
563 # This PCD is used to set the base address of the PCI express hierarchy. It
564 # is only consulted when OVMF runs on Q35. In that case it is programmed into
565 # the PCIEXBAR register.
567 # On Q35 machine types that QEMU intends to support in the long term, QEMU
568 # never lets the RAM below 4 GB exceed 2816 MB.
569 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
571 !if $(SOURCE_DEBUG_ENABLE) == TRUE
572 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
575 [PcdsFixedAtBuild.IA32]
577 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
578 # best (please refer to git-blame for past updates). The values capture a set
579 # of BIN hints that made sense at a particular time, for some (now likely
580 # unknown) workloads / boot paths.
582 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
583 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x12
584 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
585 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
586 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
588 [PcdsFixedAtBuild.X64]
592 !include NetworkPkg/NetworkPcds.dsc.inc
594 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
596 !if $(SMM_REQUIRE) == TRUE
597 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
600 # IRQs 5, 9, 10, 11 are level-triggered
601 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
603 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
604 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
606 ################################################################################
608 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
610 ################################################################################
614 # ($(SMM_REQUIRE) == FALSE)
615 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
617 !if $(SMM_REQUIRE) == FALSE
618 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
619 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
620 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
621 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
622 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
624 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
625 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
626 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
627 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
628 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
629 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
630 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
631 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
632 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
633 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
634 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
635 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
637 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
639 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
642 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
644 # Set video resolution for text setup.
645 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
646 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
648 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
649 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
650 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
652 # Noexec settings for DXE.
653 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
655 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
656 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
657 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
659 # Set memory encryption mask
660 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
661 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
663 # Set SEV-ES defaults
664 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
665 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
666 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
668 !if $(SMM_REQUIRE) == TRUE
669 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
670 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
671 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
672 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
675 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
677 !include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
679 # Set ConfidentialComputing defaults
680 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
682 !if $(CSM_ENABLE) == FALSE
683 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
686 [PcdsDynamicDefault.X64]
687 # IPv4 and IPv6 PXE Boot support.
688 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
689 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
692 !include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
694 ################################################################################
696 # Components Section - list of all EDK II Modules needed by this Platform.
698 ################################################################################
700 OvmfPkg/ResetVector/ResetVector.inf
705 OvmfPkg/Sec/SecMain.inf {
707 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
713 MdeModulePkg/Core/Pei/PeiMain.inf
714 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
716 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
718 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
720 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
722 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
724 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
726 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
728 OvmfPkg/PlatformPei/PlatformPei.inf
729 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
731 !if $(SMM_REQUIRE) == TRUE
732 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
735 !if $(SMM_REQUIRE) == TRUE
736 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
737 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
738 OvmfPkg/SmmAccess/SmmAccessPei.inf
740 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
742 !include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
748 MdeModulePkg/Core/Dxe/DxeMain.inf {
750 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
751 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
754 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
755 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
756 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
758 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
761 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
763 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
765 !if $(SECURE_BOOT_ENABLE) == TRUE
766 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
768 !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
771 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
772 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
773 UefiCpuPkg/CpuDxe/CpuDxe.inf
775 OvmfPkg/8259InterruptControllerDxe/8259.inf
776 OvmfPkg/8254TimerDxe/8254Timer.inf
778 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
780 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
781 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
782 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
784 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
785 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
786 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
788 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
790 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
792 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
793 MdeModulePkg/Universal/Metronome/Metronome.inf
794 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
795 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
796 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
798 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
800 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
801 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
804 MdeModulePkg/Logo/LogoDxe.inf
805 MdeModulePkg/Application/UiApp/UiApp.inf {
807 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
808 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
809 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
811 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
812 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
815 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
817 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
819 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
820 OvmfPkg/Virtio10Dxe/Virtio10.inf
821 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
822 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
823 OvmfPkg/VirtioRngDxe/VirtioRng.inf
824 !if $(PVSCSI_ENABLE) == TRUE
825 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
827 !if $(MPT_SCSI_ENABLE) == TRUE
828 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
830 !if $(LSI_SCSI_ENABLE) == TRUE
831 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
833 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
834 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
835 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
836 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
837 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
838 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
840 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
842 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
843 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
845 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
846 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
848 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
849 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
850 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
851 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
852 FatPkg/EnhancedFatDxe/Fat.inf
853 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
854 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
855 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
856 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
857 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
858 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
859 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
860 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
861 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
862 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
863 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
864 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
866 !ifndef $(CSM_ENABLE)
867 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
869 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
870 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
875 OvmfPkg/SioBusDxe/SioBusDxe.inf
876 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
877 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
882 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
884 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
886 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
891 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
892 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
893 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
894 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
895 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
900 !include NetworkPkg/NetworkComponents.dsc.inc
901 !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
903 OvmfPkg/VirtioNetDxe/VirtioNet.inf
908 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
909 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
910 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
911 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
912 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
913 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
916 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
918 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
920 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
921 OvmfPkg/Csm/Csm16/Csm16.inf
924 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
925 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
927 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
929 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
931 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
933 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
935 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
938 !if $(BUILD_SHELL) == TRUE
939 ShellPkg/Application/Shell/Shell.inf {
941 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
942 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
943 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
944 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
945 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
946 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
947 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
948 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
949 !if $(NETWORK_IP6_ENABLE) == TRUE
950 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
952 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
953 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
954 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
957 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
958 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
959 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
963 !if $(SECURE_BOOT_ENABLE) == TRUE
964 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
965 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
968 OvmfPkg/PlatformDxe/Platform.inf
969 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
971 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
973 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
975 !if $(SMM_REQUIRE) == TRUE
976 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
977 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
978 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
981 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
983 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
988 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
991 # Privileged drivers (DXE_SMM_DRIVER modules)
993 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
994 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
995 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
997 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
999 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
1001 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
1002 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
1006 # Variable driver stack (SMM)
1008 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
1010 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
1012 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
1013 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
1015 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1016 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
1018 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
1023 # Variable driver stack (non-SMM)
1025 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1026 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1028 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1030 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1031 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1033 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1040 !include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc