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
41 DEFINE NETWORK_TLS_ENABLE = FALSE
42 DEFINE NETWORK_IP6_ENABLE = FALSE
43 DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
44 DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
45 DEFINE NETWORK_ISCSI_ENABLE = TRUE
47 !include NetworkPkg/NetworkDefines.dsc.inc
52 DEFINE PVSCSI_ENABLE = TRUE
53 DEFINE MPT_SCSI_ENABLE = TRUE
54 DEFINE LSI_SCSI_ENABLE = FALSE
57 # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
58 # one of the supported values, in place of any of the convenience macros, is
62 DEFINE FD_SIZE_IN_KB = 1024
65 DEFINE FD_SIZE_IN_KB = 2048
68 DEFINE FD_SIZE_IN_KB = 4096
70 DEFINE FD_SIZE_IN_KB = 4096
76 # Define the FILE_GUID of CpuMpPei/CpuDxe for unique-processor version.
78 DEFINE UP_CPU_PEI_GUID = 280251c4-1d09-4035-9062-839acb5f18c1
79 DEFINE UP_CPU_DXE_GUID = 6490f1c5-ebcc-4665-8892-0075b9bb49b7
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 !if $(SOURCE_DEBUG_ENABLE) == TRUE
89 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
90 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
91 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
93 RELEASE_*_*_GENFW_FLAGS = --zero
96 # Disable deprecated APIs.
98 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
99 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
100 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
103 # Add TDX_GUEST_SUPPORTED
105 MSFT:*_*_*_CC_FLAGS = /D TDX_GUEST_SUPPORTED
106 INTEL:*_*_*_CC_FLAGS = /D TDX_GUEST_SUPPORTED
107 GCC:*_*_*_CC_FLAGS = -D TDX_GUEST_SUPPORTED
109 !include NetworkPkg/NetworkBuildOptions.dsc.inc
111 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
112 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
113 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
114 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
115 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
117 # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
118 # protection of DXE_SMM_DRIVER/SMM_CORE modules
119 [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
120 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
121 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
122 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
123 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
125 ################################################################################
127 # SKU Identification section - list of all SKU IDs supported by this Platform.
129 ################################################################################
133 ################################################################################
135 # Library Class section - list of all Library Classes needed by this Platform.
137 ################################################################################
139 !include MdePkg/MdeLibs.dsc.inc
142 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
143 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
144 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
145 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
146 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
147 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
148 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
149 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
150 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
151 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
152 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
153 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
154 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
155 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
156 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
157 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
158 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
159 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
160 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
161 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
162 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
163 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
164 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
165 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
166 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
167 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
168 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
169 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
170 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
171 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
172 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
173 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
174 CcProbeLib|OvmfPkg/Library/CcProbeLib/CcProbeLib.inf
175 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
176 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
177 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
178 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
179 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
180 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
181 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
182 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
183 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
184 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
185 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
186 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
187 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
188 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
189 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
190 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
191 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
192 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
193 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
194 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
195 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
196 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
197 MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf
199 !if $(SMM_REQUIRE) == FALSE
200 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
202 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
203 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
205 !if $(SOURCE_DEBUG_ENABLE) == TRUE
206 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
207 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
209 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
210 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
213 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
214 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
216 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
217 !if $(NETWORK_TLS_ENABLE) == TRUE
218 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
220 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
222 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
224 !if $(SECURE_BOOT_ENABLE) == TRUE
225 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
226 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
227 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
228 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
230 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
232 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
233 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
234 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
240 !include NetworkPkg/NetworkLibs.dsc.inc
242 !if $(NETWORK_TLS_ENABLE) == TRUE
243 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
246 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
247 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
248 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
249 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
250 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
252 !include OvmfPkg/OvmfTpmLibs.dsc.inc
254 [LibraryClasses.common]
255 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
256 VmgExitLib|OvmfPkg/Library/VmgExitLib/VmgExitLib.inf
257 TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
258 TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf
260 [LibraryClasses.common.SEC]
261 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
262 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
263 !ifdef $(DEBUG_ON_SERIAL_PORT)
264 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
266 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
268 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
269 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
270 !if $(SOURCE_DEBUG_ENABLE) == TRUE
271 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
273 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
274 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
275 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
276 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
277 !if $(TOOL_CHAIN_TAG) == "XCODE5"
278 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
280 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
282 VmgExitLib|OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf
283 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
285 [LibraryClasses.common.PEI_CORE]
286 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
287 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
288 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
289 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
290 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
291 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
292 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
293 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
294 !ifdef $(DEBUG_ON_SERIAL_PORT)
295 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
297 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
299 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
301 [LibraryClasses.common.PEIM]
302 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
303 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
304 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
305 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
306 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
307 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
308 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
309 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
310 !ifdef $(DEBUG_ON_SERIAL_PORT)
311 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
313 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
315 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
316 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
317 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
318 !if $(SOURCE_DEBUG_ENABLE) == TRUE
319 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
321 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
322 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
323 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
324 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
325 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
326 PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
328 !include OvmfPkg/OvmfTpmLibsPeim.dsc.inc
330 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
332 [LibraryClasses.common.DXE_CORE]
333 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
334 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
335 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
336 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
337 !ifdef $(DEBUG_ON_SERIAL_PORT)
338 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
340 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
342 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
343 !if $(SOURCE_DEBUG_ENABLE) == TRUE
344 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
346 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
347 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
349 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
350 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
351 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
352 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
353 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
354 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
355 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
356 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
357 !ifdef $(DEBUG_ON_SERIAL_PORT)
358 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
360 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
362 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
363 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
364 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
365 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
366 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
367 !if $(SMM_REQUIRE) == TRUE
368 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
371 [LibraryClasses.common.UEFI_DRIVER]
372 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
373 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
374 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
375 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
376 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
377 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
378 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
379 !ifdef $(DEBUG_ON_SERIAL_PORT)
380 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
382 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
384 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
385 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
387 [LibraryClasses.common.DXE_DRIVER]
388 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
389 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
390 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
391 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
392 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
393 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
394 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
395 !ifdef $(DEBUG_ON_SERIAL_PORT)
396 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
398 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
400 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
401 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
402 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
403 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
404 !if $(SMM_REQUIRE) == TRUE
405 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
407 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
409 !if $(SOURCE_DEBUG_ENABLE) == TRUE
410 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
412 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
413 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
414 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
415 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
417 !include OvmfPkg/OvmfTpmLibsDxe.dsc.inc
419 [LibraryClasses.common.UEFI_APPLICATION]
420 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
421 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
422 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
423 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
424 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
425 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
426 !ifdef $(DEBUG_ON_SERIAL_PORT)
427 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
429 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
431 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
433 [LibraryClasses.common.DXE_SMM_DRIVER]
434 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
435 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
436 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
437 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
438 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
439 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
440 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
441 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
442 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
443 !ifdef $(DEBUG_ON_SERIAL_PORT)
444 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
446 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
448 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
449 !if $(SOURCE_DEBUG_ENABLE) == TRUE
450 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
452 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
453 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
454 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
456 [LibraryClasses.common.SMM_CORE]
457 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
458 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
459 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
460 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
461 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
462 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
463 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
464 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
465 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
466 !ifdef $(DEBUG_ON_SERIAL_PORT)
467 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
469 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
471 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
473 ################################################################################
475 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
477 ################################################################################
479 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
480 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
481 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
482 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
483 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
484 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
486 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
488 !if $(SMM_REQUIRE) == TRUE
489 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
490 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
491 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
495 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
496 !if $(SMM_REQUIRE) == FALSE
497 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
499 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
500 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
501 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
502 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
503 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
504 !if $(NETWORK_TLS_ENABLE) == FALSE
505 # match PcdFlashNvStorageVariableSize purely for convenience
506 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
509 !if $(FD_SIZE_IN_KB) == 4096
510 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
511 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
512 !if $(NETWORK_TLS_ENABLE) == FALSE
513 # match PcdFlashNvStorageVariableSize purely for convenience
514 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
517 !if $(NETWORK_TLS_ENABLE) == TRUE
518 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
519 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
522 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
523 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
524 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
526 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
528 # DEBUG_INIT 0x00000001 // Initialization
529 # DEBUG_WARN 0x00000002 // Warnings
530 # DEBUG_LOAD 0x00000004 // Load events
531 # DEBUG_FS 0x00000008 // EFI File system
532 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
533 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
534 # DEBUG_INFO 0x00000040 // Informational debug messages
535 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
536 # DEBUG_VARIABLE 0x00000100 // Variable
537 # DEBUG_BM 0x00000400 // Boot Manager
538 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
539 # DEBUG_NET 0x00004000 // SNP Driver
540 # DEBUG_UNDI 0x00010000 // UNDI Driver
541 # DEBUG_LOADFILE 0x00020000 // LoadFile
542 # DEBUG_EVENT 0x00080000 // Event messages
543 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
544 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
545 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
546 # // significantly impact boot performance
547 # DEBUG_ERROR 0x80000000 // Error
548 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
550 !if $(SOURCE_DEBUG_ENABLE) == TRUE
551 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
553 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
556 # This PCD is used to set the base address of the PCI express hierarchy. It
557 # is only consulted when OVMF runs on Q35. In that case it is programmed into
558 # the PCIEXBAR register.
560 # On Q35 machine types that QEMU intends to support in the long term, QEMU
561 # never lets the RAM below 4 GB exceed 2816 MB.
562 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
564 !if $(SOURCE_DEBUG_ENABLE) == TRUE
565 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
569 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
570 # best (please refer to git-blame for past updates). The values capture a set
571 # of BIN hints that made sense at a particular time, for some (now likely
572 # unknown) workloads / boot paths.
574 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
575 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
576 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
577 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
578 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
581 # TDX need 1G PageTable support
582 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
587 !include NetworkPkg/NetworkPcds.dsc.inc
589 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
591 !if $(SMM_REQUIRE) == TRUE
592 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
595 # IRQs 5, 9, 10, 11 are level-triggered
596 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
598 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
599 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
601 ################################################################################
603 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
605 ################################################################################
609 # ($(SMM_REQUIRE) == FALSE)
610 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
612 !if $(SMM_REQUIRE) == FALSE
613 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
614 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
615 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
616 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
617 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
619 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
620 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
621 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
622 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
623 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
624 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
625 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
626 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
627 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
628 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
629 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
630 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
632 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
634 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
637 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
639 # Set video resolution for text setup.
640 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
641 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
643 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
644 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
645 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
647 # Noexec settings for DXE.
648 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
650 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
651 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
652 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
654 # Set memory encryption mask
655 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
657 # Set Tdx shared bit mask
658 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
660 # Set SEV-ES defaults
661 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
662 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
663 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
665 !if $(SMM_REQUIRE) == TRUE
666 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
667 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
668 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
669 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
672 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
674 !include OvmfPkg/OvmfTpmPcds.dsc.inc
676 # IPv4 and IPv6 PXE Boot support.
677 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
678 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
680 # Set ConfidentialComputing defaults
681 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
683 !if $(CSM_ENABLE) == FALSE
684 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|100000000
688 !include OvmfPkg/OvmfTpmPcdsHii.dsc.inc
690 ################################################################################
692 # Components Section - list of all EDK II Modules needed by this Platform.
694 ################################################################################
696 OvmfPkg/ResetVector/ResetVector.inf
701 OvmfPkg/Sec/SecMain.inf {
703 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
704 NULL|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
710 MdeModulePkg/Core/Pei/PeiMain.inf
711 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
713 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
715 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
717 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
719 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
721 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
723 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
725 OvmfPkg/PlatformPei/PlatformPei.inf
726 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
728 !if $(SMM_REQUIRE) == TRUE
729 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
732 !if $(SMM_REQUIRE) == TRUE
733 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
734 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
735 OvmfPkg/SmmAccess/SmmAccessPei.inf
738 UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
741 # Directly use PeiMpInitLib. It depends on PeiMpInitLibMpDepLib which
742 # checks the PPI of gEfiPeiMpInitLibMpDepPpiGuid.
744 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
745 NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibMpDepLib.inf
748 UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
750 FILE_GUID = $(UP_CPU_PEI_GUID)
754 # Directly use MpInitLibUp. It depends on PeiMpInitLibUpDepLib which
755 # checks the PPI of gEfiPeiMpInitLibUpDepPpiGuid.
757 MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
758 NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibUpDepLib.inf
761 !include OvmfPkg/OvmfTpmComponentsPei.dsc.inc
766 MdeModulePkg/Core/Dxe/DxeMain.inf {
768 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
769 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
772 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
773 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
774 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
776 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
779 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
781 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
783 !if $(SECURE_BOOT_ENABLE) == TRUE
784 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
785 !include OvmfPkg/OvmfTpmSecurityStub.dsc.inc
789 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
790 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
792 UefiCpuPkg/CpuDxe/CpuDxe.inf {
795 # Directly use DxeMpInitLib. It depends on DxeMpInitLibMpDepLib which
796 # checks the Protocol of gEfiMpInitLibMpDepProtocolGuid.
798 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
799 NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf
802 UefiCpuPkg/CpuDxe/CpuDxe.inf {
804 FILE_GUID = $(UP_CPU_DXE_GUID)
808 # Directly use MpInitLibUp. It depends on DxeMpInitLibUpDepLib which
809 # checks the Protocol of gEfiMpInitLibUpDepProtocolGuid.
811 MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
812 NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf
816 OvmfPkg/8259InterruptControllerDxe/8259.inf
817 OvmfPkg/8254TimerDxe/8254Timer.inf
819 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
821 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
822 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
823 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
825 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
826 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
827 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
829 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
831 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
833 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
834 MdeModulePkg/Universal/Metronome/Metronome.inf
835 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
836 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
837 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
839 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
841 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
842 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
845 MdeModulePkg/Logo/LogoDxe.inf
846 MdeModulePkg/Application/UiApp/UiApp.inf {
848 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
849 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
850 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
852 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
853 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
856 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
858 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
860 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
861 OvmfPkg/Virtio10Dxe/Virtio10.inf
862 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
863 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
864 OvmfPkg/VirtioRngDxe/VirtioRng.inf
865 !if $(PVSCSI_ENABLE) == TRUE
866 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
868 !if $(MPT_SCSI_ENABLE) == TRUE
869 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
871 !if $(LSI_SCSI_ENABLE) == TRUE
872 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
874 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
875 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
876 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
877 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
878 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
879 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
881 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
883 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
884 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
886 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
887 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
889 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
890 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
891 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
892 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
893 FatPkg/EnhancedFatDxe/Fat.inf
894 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
895 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
896 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
897 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
898 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
899 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
900 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
901 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
902 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
903 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
904 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
905 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
907 !ifndef $(CSM_ENABLE)
908 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
910 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
911 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
916 OvmfPkg/SioBusDxe/SioBusDxe.inf
917 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
918 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
923 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
925 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
927 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
932 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
933 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
934 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
935 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
936 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
941 !include NetworkPkg/NetworkComponents.dsc.inc
943 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {
945 NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf
948 !if $(NETWORK_TLS_ENABLE) == TRUE
949 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
951 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
954 OvmfPkg/VirtioNetDxe/VirtioNet.inf
959 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
960 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
961 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
962 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
963 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
964 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
967 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
969 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
971 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
972 OvmfPkg/Csm/Csm16/Csm16.inf
975 !if $(TOOL_CHAIN_TAG) != "XCODE5"
976 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
978 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
980 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
982 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
984 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
986 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
989 ShellPkg/Application/Shell/Shell.inf {
991 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
992 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
993 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
994 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
995 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
996 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
997 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
998 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
999 !if $(NETWORK_IP6_ENABLE) == TRUE
1000 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
1002 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
1003 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
1004 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
1007 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
1008 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
1009 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
1012 !if $(SECURE_BOOT_ENABLE) == TRUE
1013 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
1014 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
1017 OvmfPkg/PlatformDxe/Platform.inf
1018 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
1020 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
1022 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
1024 OvmfPkg/TdxDxe/TdxDxe.inf
1026 !if $(SMM_REQUIRE) == TRUE
1027 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
1028 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
1029 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
1032 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
1034 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
1039 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
1042 # Privileged drivers (DXE_SMM_DRIVER modules)
1044 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
1045 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
1046 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
1048 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
1050 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
1052 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
1053 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
1057 # Variable driver stack (SMM)
1059 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
1061 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
1063 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
1064 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
1066 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1067 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
1069 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
1074 # Variable driver stack (non-SMM)
1076 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1077 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1079 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1081 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1082 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1084 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1091 !include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc