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
115 # SECURE_BOOT_FEATURE_ENABLED
117 !if $(SECURE_BOOT_ENABLE) == TRUE
118 MSFT:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
119 INTEL:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
120 GCC:*_*_*_CC_FLAGS = -D SECURE_BOOT_FEATURE_ENABLED
123 !include NetworkPkg/NetworkBuildOptions.dsc.inc
125 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
126 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
127 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
128 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
129 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
131 # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
132 # protection of DXE_SMM_DRIVER/SMM_CORE modules
133 [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
134 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
135 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
136 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
137 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
139 ################################################################################
141 # SKU Identification section - list of all SKU IDs supported by this Platform.
143 ################################################################################
147 ################################################################################
149 # Library Class section - list of all Library Classes needed by this Platform.
151 ################################################################################
153 !include MdePkg/MdeLibs.dsc.inc
156 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
157 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
158 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
159 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
160 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
161 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
162 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
163 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
164 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
165 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
166 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
167 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
168 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
169 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
170 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
171 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
172 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
173 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
174 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
175 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
176 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
177 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
178 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
179 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
180 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
181 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
182 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
183 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
184 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
185 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
186 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
187 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
188 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
189 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
190 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
191 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
192 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
193 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
194 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
195 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
196 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
197 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
198 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
199 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
200 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
201 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
202 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
203 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
204 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
205 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
206 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
207 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
208 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
209 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
210 MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf
211 PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
212 DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
214 !if $(SMM_REQUIRE) == FALSE
215 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
216 CcProbeLib|OvmfPkg/Library/CcProbeLib/DxeCcProbeLib.inf
218 CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
220 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
221 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
223 !if $(SOURCE_DEBUG_ENABLE) == TRUE
224 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
225 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
227 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
228 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
231 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
232 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
234 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
235 !if $(NETWORK_TLS_ENABLE) == TRUE
236 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
238 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
240 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
242 !if $(SECURE_BOOT_ENABLE) == TRUE
243 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
244 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
245 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
246 PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
247 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
249 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
251 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
252 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
253 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
254 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
260 !include NetworkPkg/NetworkLibs.dsc.inc
262 !if $(NETWORK_TLS_ENABLE) == TRUE
263 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
266 !if $(BUILD_SHELL) == TRUE
267 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
269 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
271 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
272 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
273 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
275 !include OvmfPkg/OvmfTpmLibs.dsc.inc
277 [LibraryClasses.common]
278 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
279 VmgExitLib|OvmfPkg/Library/VmgExitLib/VmgExitLib.inf
280 TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
281 TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf
283 [LibraryClasses.common.SEC]
284 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
285 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
286 !ifdef $(DEBUG_ON_SERIAL_PORT)
287 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
289 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
291 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
292 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
293 !if $(SOURCE_DEBUG_ENABLE) == TRUE
294 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
296 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
297 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
298 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
299 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
300 !if $(TOOL_CHAIN_TAG) == "XCODE5"
301 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
303 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
305 VmgExitLib|OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf
306 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
307 CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
309 [LibraryClasses.common.PEI_CORE]
310 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
311 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
312 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
313 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
314 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
315 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
316 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
317 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
318 !ifdef $(DEBUG_ON_SERIAL_PORT)
319 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
321 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
323 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
324 CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
326 [LibraryClasses.common.PEIM]
327 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
328 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
329 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
330 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
331 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
332 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
333 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
334 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
335 !ifdef $(DEBUG_ON_SERIAL_PORT)
336 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
338 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
340 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
341 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
342 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
343 !if $(SOURCE_DEBUG_ENABLE) == TRUE
344 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
346 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
347 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
348 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
349 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
350 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
351 PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
353 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
354 CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
356 [LibraryClasses.common.DXE_CORE]
357 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
358 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
359 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
360 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
361 !ifdef $(DEBUG_ON_SERIAL_PORT)
362 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
364 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
366 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
367 !if $(SOURCE_DEBUG_ENABLE) == TRUE
368 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
370 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
371 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
373 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
374 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
375 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
376 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
377 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
378 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
379 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
380 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
381 !ifdef $(DEBUG_ON_SERIAL_PORT)
382 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
384 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
386 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
387 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
388 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
389 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
390 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
391 !if $(SMM_REQUIRE) == TRUE
392 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
395 [LibraryClasses.common.UEFI_DRIVER]
396 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
397 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
398 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
399 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
400 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
401 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
402 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
403 !ifdef $(DEBUG_ON_SERIAL_PORT)
404 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
406 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
408 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
409 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
411 [LibraryClasses.common.DXE_DRIVER]
412 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
413 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
414 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
415 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
416 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
417 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
418 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
419 !ifdef $(DEBUG_ON_SERIAL_PORT)
420 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
422 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
424 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
425 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
426 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
427 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
428 !if $(SMM_REQUIRE) == TRUE
429 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
431 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
433 !if $(SOURCE_DEBUG_ENABLE) == TRUE
434 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
436 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
437 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
438 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
439 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
441 [LibraryClasses.common.UEFI_APPLICATION]
442 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
443 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
444 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
445 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
446 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
447 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
448 !ifdef $(DEBUG_ON_SERIAL_PORT)
449 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
451 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
453 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
455 [LibraryClasses.common.DXE_SMM_DRIVER]
456 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
457 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
458 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
459 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
460 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
461 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
462 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
463 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
464 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
465 !ifdef $(DEBUG_ON_SERIAL_PORT)
466 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
468 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
470 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
471 !if $(SOURCE_DEBUG_ENABLE) == TRUE
472 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
474 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
475 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
476 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
478 [LibraryClasses.common.SMM_CORE]
479 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
480 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
481 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
482 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
483 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
484 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
485 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
486 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
487 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
488 !ifdef $(DEBUG_ON_SERIAL_PORT)
489 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
491 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
493 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
495 ################################################################################
497 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
499 ################################################################################
501 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
502 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
503 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
504 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
505 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
506 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
508 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
510 !if $(SMM_REQUIRE) == TRUE
511 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
512 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
513 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
517 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
518 !if $(SMM_REQUIRE) == FALSE
519 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
521 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
522 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
523 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
524 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
525 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
526 !if $(NETWORK_TLS_ENABLE) == FALSE
527 # match PcdFlashNvStorageVariableSize purely for convenience
528 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
531 !if $(FD_SIZE_IN_KB) == 4096
532 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
533 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
534 !if $(NETWORK_TLS_ENABLE) == FALSE
535 # match PcdFlashNvStorageVariableSize purely for convenience
536 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
539 !if $(NETWORK_TLS_ENABLE) == TRUE
540 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
541 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
544 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
545 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
546 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
548 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
550 # DEBUG_INIT 0x00000001 // Initialization
551 # DEBUG_WARN 0x00000002 // Warnings
552 # DEBUG_LOAD 0x00000004 // Load events
553 # DEBUG_FS 0x00000008 // EFI File system
554 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
555 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
556 # DEBUG_INFO 0x00000040 // Informational debug messages
557 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
558 # DEBUG_VARIABLE 0x00000100 // Variable
559 # DEBUG_BM 0x00000400 // Boot Manager
560 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
561 # DEBUG_NET 0x00004000 // SNP Driver
562 # DEBUG_UNDI 0x00010000 // UNDI Driver
563 # DEBUG_LOADFILE 0x00020000 // LoadFile
564 # DEBUG_EVENT 0x00080000 // Event messages
565 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
566 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
567 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
568 # // significantly impact boot performance
569 # DEBUG_ERROR 0x80000000 // Error
570 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
572 !if $(SOURCE_DEBUG_ENABLE) == TRUE
573 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
575 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
578 # This PCD is used to set the base address of the PCI express hierarchy. It
579 # is only consulted when OVMF runs on Q35. In that case it is programmed into
580 # the PCIEXBAR register.
582 # On Q35 machine types that QEMU intends to support in the long term, QEMU
583 # never lets the RAM below 4 GB exceed 2816 MB.
584 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
586 !if $(SOURCE_DEBUG_ENABLE) == TRUE
587 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
591 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
592 # best (please refer to git-blame for past updates). The values capture a set
593 # of BIN hints that made sense at a particular time, for some (now likely
594 # unknown) workloads / boot paths.
596 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
597 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x12
598 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
599 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
600 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
603 # TDX need 1G PageTable support
604 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
609 !include NetworkPkg/NetworkPcds.dsc.inc
611 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
613 !if $(SMM_REQUIRE) == TRUE
614 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
617 # IRQs 5, 9, 10, 11 are level-triggered
618 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
620 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
621 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
623 ################################################################################
625 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
627 ################################################################################
631 # ($(SMM_REQUIRE) == FALSE)
632 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
634 !if $(SMM_REQUIRE) == FALSE
635 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
636 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
637 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
638 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
639 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
641 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
642 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
643 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
644 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
645 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
646 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
647 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
648 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
649 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
650 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
651 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
652 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
654 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
656 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
659 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
661 # Set video resolution for text setup.
662 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
663 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
665 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
666 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
667 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
669 # Noexec settings for DXE.
670 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
672 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
673 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
674 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
676 # Set memory encryption mask
677 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
679 # Set Tdx shared bit mask
680 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
682 # Set SEV-ES defaults
683 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
684 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
685 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
687 !if $(SMM_REQUIRE) == TRUE
688 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
689 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
690 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
691 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
694 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
696 !include OvmfPkg/OvmfTpmPcds.dsc.inc
698 # IPv4 and IPv6 PXE Boot support.
699 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
700 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
702 # Set ConfidentialComputing defaults
703 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
705 !if $(CSM_ENABLE) == FALSE
706 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
710 !include OvmfPkg/OvmfTpmPcdsHii.dsc.inc
712 ################################################################################
714 # Components Section - list of all EDK II Modules needed by this Platform.
716 ################################################################################
718 OvmfPkg/ResetVector/ResetVector.inf
723 OvmfPkg/Sec/SecMain.inf {
725 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
726 NULL|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
732 MdeModulePkg/Core/Pei/PeiMain.inf
733 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
735 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
737 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
739 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
741 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
743 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
745 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
747 OvmfPkg/PlatformPei/PlatformPei.inf
748 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
750 !if $(SMM_REQUIRE) == TRUE
751 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
754 !if $(SMM_REQUIRE) == TRUE
755 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
756 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
757 OvmfPkg/SmmAccess/SmmAccessPei.inf
760 UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
763 # Directly use PeiMpInitLib. It depends on PeiMpInitLibMpDepLib which
764 # checks the PPI of gEfiPeiMpInitLibMpDepPpiGuid.
766 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
767 NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibMpDepLib.inf
770 UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
772 FILE_GUID = $(UP_CPU_PEI_GUID)
776 # Directly use MpInitLibUp. It depends on PeiMpInitLibUpDepLib which
777 # checks the PPI of gEfiPeiMpInitLibUpDepPpiGuid.
779 MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
780 NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibUpDepLib.inf
783 !include OvmfPkg/OvmfTpmComponentsPei.dsc.inc
788 MdeModulePkg/Core/Dxe/DxeMain.inf {
790 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
791 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
794 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
795 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
796 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
798 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
801 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
803 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
805 !if $(SECURE_BOOT_ENABLE) == TRUE
806 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
807 !include OvmfPkg/OvmfTpmSecurityStub.dsc.inc
811 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
812 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
814 UefiCpuPkg/CpuDxe/CpuDxe.inf {
817 # Directly use DxeMpInitLib. It depends on DxeMpInitLibMpDepLib which
818 # checks the Protocol of gEfiMpInitLibMpDepProtocolGuid.
820 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
821 NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf
824 UefiCpuPkg/CpuDxe/CpuDxe.inf {
826 FILE_GUID = $(UP_CPU_DXE_GUID)
830 # Directly use MpInitLibUp. It depends on DxeMpInitLibUpDepLib which
831 # checks the Protocol of gEfiMpInitLibUpDepProtocolGuid.
833 MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
834 NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf
838 OvmfPkg/8259InterruptControllerDxe/8259.inf
839 OvmfPkg/8254TimerDxe/8254Timer.inf
841 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
843 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
844 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
845 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
847 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
848 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
849 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
851 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
853 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
855 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
856 MdeModulePkg/Universal/Metronome/Metronome.inf
857 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
858 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
859 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
861 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
863 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
864 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
867 MdeModulePkg/Logo/LogoDxe.inf
868 MdeModulePkg/Application/UiApp/UiApp.inf {
870 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
871 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
872 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
874 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
875 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
878 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
880 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
882 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
883 OvmfPkg/Virtio10Dxe/Virtio10.inf
884 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
885 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
886 OvmfPkg/VirtioRngDxe/VirtioRng.inf
887 !if $(PVSCSI_ENABLE) == TRUE
888 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
890 !if $(MPT_SCSI_ENABLE) == TRUE
891 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
893 !if $(LSI_SCSI_ENABLE) == TRUE
894 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
896 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
897 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
898 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
899 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
900 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
901 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
903 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
905 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
906 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
908 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
909 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
911 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
912 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
913 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
914 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
915 FatPkg/EnhancedFatDxe/Fat.inf
916 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
917 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
918 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
919 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
920 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
921 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
922 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
923 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
924 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
925 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
926 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
927 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
929 !ifndef $(CSM_ENABLE)
930 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
932 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
933 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
938 OvmfPkg/SioBusDxe/SioBusDxe.inf
939 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
940 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
945 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
947 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
949 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
954 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
955 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
956 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
957 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
958 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
963 !include NetworkPkg/NetworkComponents.dsc.inc
964 !include OvmfPkg/NetworkComponents.dsc.inc
966 OvmfPkg/VirtioNetDxe/VirtioNet.inf
971 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
972 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
973 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
974 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
975 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
976 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
979 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
981 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
983 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
984 OvmfPkg/Csm/Csm16/Csm16.inf
987 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
988 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
990 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
992 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
994 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
996 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
998 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
1001 !if $(BUILD_SHELL) == TRUE
1002 ShellPkg/Application/Shell/Shell.inf {
1004 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
1005 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
1006 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
1007 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
1008 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
1009 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
1010 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
1011 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
1012 !if $(NETWORK_IP6_ENABLE) == TRUE
1013 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
1015 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
1016 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
1017 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
1020 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
1021 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
1022 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
1026 !if $(SECURE_BOOT_ENABLE) == TRUE
1027 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
1028 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
1031 OvmfPkg/PlatformDxe/Platform.inf
1032 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
1034 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
1036 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
1038 OvmfPkg/TdxDxe/TdxDxe.inf
1040 !if $(SMM_REQUIRE) == TRUE
1041 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
1042 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
1043 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
1046 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
1048 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
1053 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
1056 # Privileged drivers (DXE_SMM_DRIVER modules)
1058 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
1059 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
1060 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
1062 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
1064 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
1066 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
1067 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
1071 # Variable driver stack (SMM)
1073 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
1075 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
1077 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
1078 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
1080 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1081 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
1083 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
1088 # Variable driver stack (non-SMM)
1090 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1091 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1093 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1095 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1096 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1098 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1105 !include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc