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/OvmfX64
23 SUPPORTED_ARCHITECTURES = X64
24 BUILD_TARGETS = NOOPT|DEBUG|RELEASE
25 SKUID_IDENTIFIER = DEFAULT
26 FLASH_DEFINITION = OvmfPkg/OvmfPkgX64.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/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 # Define the FILE_GUID of CpuMpPei/CpuDxe for unique-processor version.
83 DEFINE UP_CPU_PEI_GUID = 280251c4-1d09-4035-9062-839acb5f18c1
84 DEFINE UP_CPU_DXE_GUID = 6490f1c5-ebcc-4665-8892-0075b9bb49b7
87 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
88 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
89 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
90 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
91 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
93 !if $(SOURCE_DEBUG_ENABLE) == TRUE
94 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
95 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
96 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
98 RELEASE_*_*_GENFW_FLAGS = --zero
101 # Disable deprecated APIs.
103 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
104 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
105 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
108 # Add TDX_GUEST_SUPPORTED
110 MSFT:*_*_*_CC_FLAGS = /D TDX_GUEST_SUPPORTED
111 INTEL:*_*_*_CC_FLAGS = /D TDX_GUEST_SUPPORTED
112 GCC:*_*_*_CC_FLAGS = -D TDX_GUEST_SUPPORTED
114 !include NetworkPkg/NetworkBuildOptions.dsc.inc
116 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
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 # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
123 # protection of DXE_SMM_DRIVER/SMM_CORE modules
124 [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
125 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
126 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
127 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
128 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
130 ################################################################################
132 # SKU Identification section - list of all SKU IDs supported by this Platform.
134 ################################################################################
138 ################################################################################
140 # Library Class section - list of all Library Classes needed by this Platform.
142 ################################################################################
144 !include MdePkg/MdeLibs.dsc.inc
147 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
148 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
149 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
150 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
151 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
152 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
153 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
154 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
155 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
156 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
157 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
158 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
159 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
160 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
161 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
162 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
163 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
164 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
165 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
166 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
167 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
168 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
169 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
170 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
171 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
172 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
173 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
174 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
175 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
176 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
177 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
178 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
179 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
180 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
181 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
182 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
183 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
184 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
185 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
186 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
187 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
188 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
189 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
190 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
191 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
192 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
193 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
194 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
195 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
196 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
197 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
198 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
199 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
200 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
201 MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf
202 PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
203 DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
205 !if $(SMM_REQUIRE) == FALSE
206 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
207 CcProbeLib|OvmfPkg/Library/CcProbeLib/CcProbeLib.inf
209 CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
211 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
212 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
214 !if $(SOURCE_DEBUG_ENABLE) == TRUE
215 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
216 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
218 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
219 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
222 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
223 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
225 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
226 !if $(NETWORK_TLS_ENABLE) == TRUE
227 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
229 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
231 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
233 !if $(SECURE_BOOT_ENABLE) == TRUE
234 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
235 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
236 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
237 PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
238 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
240 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
242 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
243 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
244 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
245 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
251 !include NetworkPkg/NetworkLibs.dsc.inc
253 !if $(NETWORK_TLS_ENABLE) == TRUE
254 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
257 !if $(BUILD_SHELL) == TRUE
258 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
260 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
262 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
263 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
264 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
266 !include OvmfPkg/OvmfTpmLibs.dsc.inc
268 [LibraryClasses.common]
269 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
270 VmgExitLib|OvmfPkg/Library/VmgExitLib/VmgExitLib.inf
271 TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
272 TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf
274 [LibraryClasses.common.SEC]
275 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
276 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
277 !ifdef $(DEBUG_ON_SERIAL_PORT)
278 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
280 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
282 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
283 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
284 !if $(SOURCE_DEBUG_ENABLE) == TRUE
285 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
287 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
288 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
289 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
290 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
291 !if $(TOOL_CHAIN_TAG) == "XCODE5"
292 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
294 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
296 VmgExitLib|OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf
297 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
299 [LibraryClasses.common.PEI_CORE]
300 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
301 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
302 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
303 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
304 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
305 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
306 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
307 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
308 !ifdef $(DEBUG_ON_SERIAL_PORT)
309 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
311 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
313 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
315 [LibraryClasses.common.PEIM]
316 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
317 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
318 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
319 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
320 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
321 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
322 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
323 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
324 !ifdef $(DEBUG_ON_SERIAL_PORT)
325 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
327 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
329 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
330 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
331 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
332 !if $(SOURCE_DEBUG_ENABLE) == TRUE
333 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
335 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
336 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
337 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
338 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
339 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
340 PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
342 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
344 [LibraryClasses.common.DXE_CORE]
345 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
346 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
347 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
348 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
349 !ifdef $(DEBUG_ON_SERIAL_PORT)
350 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
352 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
354 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
355 !if $(SOURCE_DEBUG_ENABLE) == TRUE
356 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
358 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
359 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
361 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
362 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
363 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
364 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
365 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
366 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
367 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
368 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
369 !ifdef $(DEBUG_ON_SERIAL_PORT)
370 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
372 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
374 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
375 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
376 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
377 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
378 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
379 !if $(SMM_REQUIRE) == TRUE
380 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
383 [LibraryClasses.common.UEFI_DRIVER]
384 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
385 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
386 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
387 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
388 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
389 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
390 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
391 !ifdef $(DEBUG_ON_SERIAL_PORT)
392 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
394 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
396 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
397 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
399 [LibraryClasses.common.DXE_DRIVER]
400 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
401 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
402 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
403 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
404 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
405 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
406 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
407 !ifdef $(DEBUG_ON_SERIAL_PORT)
408 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
410 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
412 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
413 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
414 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
415 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
416 !if $(SMM_REQUIRE) == TRUE
417 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
419 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
421 !if $(SOURCE_DEBUG_ENABLE) == TRUE
422 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
424 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
425 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
426 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
427 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
429 [LibraryClasses.common.UEFI_APPLICATION]
430 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
431 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
432 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
433 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
434 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
435 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
436 !ifdef $(DEBUG_ON_SERIAL_PORT)
437 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
439 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
441 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
443 [LibraryClasses.common.DXE_SMM_DRIVER]
444 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
445 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
446 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
447 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
448 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
449 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
450 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
451 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
452 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
453 !ifdef $(DEBUG_ON_SERIAL_PORT)
454 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
456 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
458 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
459 !if $(SOURCE_DEBUG_ENABLE) == TRUE
460 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
462 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
463 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
464 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
466 [LibraryClasses.common.SMM_CORE]
467 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
468 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
469 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
470 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
471 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
472 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
473 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
474 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
475 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
476 !ifdef $(DEBUG_ON_SERIAL_PORT)
477 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
479 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
481 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
483 ################################################################################
485 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
487 ################################################################################
489 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
490 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
491 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
492 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
493 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
494 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
496 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
498 !if $(SMM_REQUIRE) == TRUE
499 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
500 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
501 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
505 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
506 !if $(SMM_REQUIRE) == FALSE
507 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
509 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
510 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
511 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
512 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
513 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
514 !if $(NETWORK_TLS_ENABLE) == FALSE
515 # match PcdFlashNvStorageVariableSize purely for convenience
516 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
519 !if $(FD_SIZE_IN_KB) == 4096
520 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
521 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
522 !if $(NETWORK_TLS_ENABLE) == FALSE
523 # match PcdFlashNvStorageVariableSize purely for convenience
524 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
527 !if $(NETWORK_TLS_ENABLE) == TRUE
528 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
529 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
532 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
533 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
534 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
536 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
538 # DEBUG_INIT 0x00000001 // Initialization
539 # DEBUG_WARN 0x00000002 // Warnings
540 # DEBUG_LOAD 0x00000004 // Load events
541 # DEBUG_FS 0x00000008 // EFI File system
542 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
543 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
544 # DEBUG_INFO 0x00000040 // Informational debug messages
545 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
546 # DEBUG_VARIABLE 0x00000100 // Variable
547 # DEBUG_BM 0x00000400 // Boot Manager
548 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
549 # DEBUG_NET 0x00004000 // SNP Driver
550 # DEBUG_UNDI 0x00010000 // UNDI Driver
551 # DEBUG_LOADFILE 0x00020000 // LoadFile
552 # DEBUG_EVENT 0x00080000 // Event messages
553 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
554 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
555 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
556 # // significantly impact boot performance
557 # DEBUG_ERROR 0x80000000 // Error
558 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
560 !if $(SOURCE_DEBUG_ENABLE) == TRUE
561 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
563 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
566 # This PCD is used to set the base address of the PCI express hierarchy. It
567 # is only consulted when OVMF runs on Q35. In that case it is programmed into
568 # the PCIEXBAR register.
570 # On Q35 machine types that QEMU intends to support in the long term, QEMU
571 # never lets the RAM below 4 GB exceed 2816 MB.
572 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
574 !if $(SOURCE_DEBUG_ENABLE) == TRUE
575 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
579 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
580 # best (please refer to git-blame for past updates). The values capture a set
581 # of BIN hints that made sense at a particular time, for some (now likely
582 # unknown) workloads / boot paths.
584 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
585 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
586 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
587 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
588 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
591 # TDX need 1G PageTable support
592 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
597 !include NetworkPkg/NetworkPcds.dsc.inc
599 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
601 !if $(SMM_REQUIRE) == TRUE
602 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
605 # IRQs 5, 9, 10, 11 are level-triggered
606 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
608 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
609 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
611 ################################################################################
613 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
615 ################################################################################
619 # ($(SMM_REQUIRE) == FALSE)
620 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
622 !if $(SMM_REQUIRE) == FALSE
623 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
624 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
625 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
626 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
627 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
629 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
630 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
631 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
632 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
633 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
634 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
635 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
636 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
637 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
638 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
639 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
640 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
642 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
644 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
647 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
649 # Set video resolution for text setup.
650 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
651 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
653 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
654 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
655 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
657 # Noexec settings for DXE.
658 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
660 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
661 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
662 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
664 # Set memory encryption mask
665 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
667 # Set Tdx shared bit mask
668 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
670 # Set SEV-ES defaults
671 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
672 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
673 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
675 !if $(SMM_REQUIRE) == TRUE
676 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
677 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
678 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
679 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
682 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
684 !include OvmfPkg/OvmfTpmPcds.dsc.inc
686 # IPv4 and IPv6 PXE Boot support.
687 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
688 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
690 # Set ConfidentialComputing defaults
691 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
693 !if $(CSM_ENABLE) == FALSE
694 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
698 !include OvmfPkg/OvmfTpmPcdsHii.dsc.inc
700 ################################################################################
702 # Components Section - list of all EDK II Modules needed by this Platform.
704 ################################################################################
706 OvmfPkg/ResetVector/ResetVector.inf
711 OvmfPkg/Sec/SecMain.inf {
713 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
714 NULL|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
720 MdeModulePkg/Core/Pei/PeiMain.inf
721 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
723 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
725 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
727 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
729 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
731 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
733 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
735 OvmfPkg/PlatformPei/PlatformPei.inf
736 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
738 !if $(SMM_REQUIRE) == TRUE
739 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
742 !if $(SMM_REQUIRE) == TRUE
743 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
744 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
745 OvmfPkg/SmmAccess/SmmAccessPei.inf
748 UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
751 # Directly use PeiMpInitLib. It depends on PeiMpInitLibMpDepLib which
752 # checks the PPI of gEfiPeiMpInitLibMpDepPpiGuid.
754 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
755 NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibMpDepLib.inf
758 UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
760 FILE_GUID = $(UP_CPU_PEI_GUID)
764 # Directly use MpInitLibUp. It depends on PeiMpInitLibUpDepLib which
765 # checks the PPI of gEfiPeiMpInitLibUpDepPpiGuid.
767 MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
768 NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibUpDepLib.inf
771 !include OvmfPkg/OvmfTpmComponentsPei.dsc.inc
776 MdeModulePkg/Core/Dxe/DxeMain.inf {
778 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
779 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
782 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
783 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
784 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
786 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
789 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
791 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
793 !if $(SECURE_BOOT_ENABLE) == TRUE
794 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
795 !include OvmfPkg/OvmfTpmSecurityStub.dsc.inc
799 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
800 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
802 UefiCpuPkg/CpuDxe/CpuDxe.inf {
805 # Directly use DxeMpInitLib. It depends on DxeMpInitLibMpDepLib which
806 # checks the Protocol of gEfiMpInitLibMpDepProtocolGuid.
808 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
809 NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf
812 UefiCpuPkg/CpuDxe/CpuDxe.inf {
814 FILE_GUID = $(UP_CPU_DXE_GUID)
818 # Directly use MpInitLibUp. It depends on DxeMpInitLibUpDepLib which
819 # checks the Protocol of gEfiMpInitLibUpDepProtocolGuid.
821 MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
822 NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf
826 OvmfPkg/8259InterruptControllerDxe/8259.inf
827 OvmfPkg/8254TimerDxe/8254Timer.inf
829 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
831 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
832 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
833 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
835 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
836 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
837 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
839 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
841 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
843 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
844 MdeModulePkg/Universal/Metronome/Metronome.inf
845 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
846 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
847 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
849 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
851 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
852 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
855 MdeModulePkg/Logo/LogoDxe.inf
856 MdeModulePkg/Application/UiApp/UiApp.inf {
858 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
859 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
860 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
862 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
863 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
866 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
868 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
870 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
871 OvmfPkg/Virtio10Dxe/Virtio10.inf
872 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
873 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
874 OvmfPkg/VirtioRngDxe/VirtioRng.inf
875 !if $(PVSCSI_ENABLE) == TRUE
876 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
878 !if $(MPT_SCSI_ENABLE) == TRUE
879 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
881 !if $(LSI_SCSI_ENABLE) == TRUE
882 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
884 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
885 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
886 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
887 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
888 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
889 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
891 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
893 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
894 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
896 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
897 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
899 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
900 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
901 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
902 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
903 FatPkg/EnhancedFatDxe/Fat.inf
904 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
905 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
906 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
907 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
908 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
909 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
910 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
911 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
912 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
913 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
914 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
915 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
917 !ifndef $(CSM_ENABLE)
918 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
920 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
921 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
926 OvmfPkg/SioBusDxe/SioBusDxe.inf
927 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
928 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
933 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
935 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
937 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
942 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
943 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
944 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
945 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
946 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
951 !include NetworkPkg/NetworkComponents.dsc.inc
953 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {
955 NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf
958 !if $(NETWORK_TLS_ENABLE) == TRUE
959 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
961 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
964 OvmfPkg/VirtioNetDxe/VirtioNet.inf
969 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
970 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
971 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
972 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
973 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
974 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
977 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
979 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
981 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
982 OvmfPkg/Csm/Csm16/Csm16.inf
985 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
986 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
988 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
990 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
992 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
994 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
996 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
999 !if $(BUILD_SHELL) == TRUE
1000 ShellPkg/Application/Shell/Shell.inf {
1002 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
1003 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
1004 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
1005 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
1006 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
1007 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
1008 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
1009 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
1010 !if $(NETWORK_IP6_ENABLE) == TRUE
1011 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
1013 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
1014 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
1015 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
1018 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
1019 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
1020 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
1024 !if $(SECURE_BOOT_ENABLE) == TRUE
1025 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
1026 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
1029 OvmfPkg/PlatformDxe/Platform.inf
1030 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
1032 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
1034 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
1036 OvmfPkg/TdxDxe/TdxDxe.inf
1038 !if $(SMM_REQUIRE) == TRUE
1039 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
1040 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
1041 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
1044 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
1046 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
1051 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
1054 # Privileged drivers (DXE_SMM_DRIVER modules)
1056 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
1057 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
1058 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
1060 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
1062 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
1064 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
1065 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
1069 # Variable driver stack (SMM)
1071 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
1073 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
1075 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
1076 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
1078 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1079 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
1081 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
1086 # Variable driver stack (non-SMM)
1088 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1089 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1091 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1093 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1094 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1096 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1103 !include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc