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
35 DEFINE CC_MEASUREMENT_ENABLE = FALSE
37 !include OvmfPkg/Include/Dsc/OvmfTpmDefines.dsc.inc
40 # Shell can be useful for debugging but should not be enabled for production
42 DEFINE BUILD_SHELL = TRUE
47 DEFINE NETWORK_TLS_ENABLE = FALSE
48 DEFINE NETWORK_IP6_ENABLE = FALSE
49 DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
50 DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
51 DEFINE NETWORK_ISCSI_ENABLE = TRUE
53 !include NetworkPkg/NetworkDefines.dsc.inc
58 DEFINE PVSCSI_ENABLE = FALSE
59 DEFINE MPT_SCSI_ENABLE = FALSE
60 DEFINE LSI_SCSI_ENABLE = FALSE
63 # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
64 # one of the supported values, in place of any of the convenience macros, is
68 DEFINE FD_SIZE_IN_KB = 1024
71 DEFINE FD_SIZE_IN_KB = 2048
74 DEFINE FD_SIZE_IN_KB = 4096
76 DEFINE FD_SIZE_IN_KB = 4096
82 # Define the FILE_GUID of CpuMpPei/CpuDxe for unique-processor version.
84 DEFINE UP_CPU_PEI_GUID = 280251c4-1d09-4035-9062-839acb5f18c1
85 DEFINE UP_CPU_DXE_GUID = 6490f1c5-ebcc-4665-8892-0075b9bb49b7
88 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
89 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
90 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
91 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
92 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
94 !if $(SOURCE_DEBUG_ENABLE) == TRUE
95 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
96 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
97 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
99 RELEASE_*_*_GENFW_FLAGS = --zero
102 # Disable deprecated APIs.
104 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
105 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
106 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
109 # Add TDX_GUEST_SUPPORTED
111 MSFT:*_*_*_CC_FLAGS = /D TDX_GUEST_SUPPORTED
112 INTEL:*_*_*_CC_FLAGS = /D TDX_GUEST_SUPPORTED
113 GCC:*_*_*_CC_FLAGS = -D TDX_GUEST_SUPPORTED
116 # SECURE_BOOT_FEATURE_ENABLED
118 !if $(SECURE_BOOT_ENABLE) == TRUE
119 MSFT:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
120 INTEL:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
121 GCC:*_*_*_CC_FLAGS = -D SECURE_BOOT_FEATURE_ENABLED
124 !include NetworkPkg/NetworkBuildOptions.dsc.inc
126 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
127 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
128 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
129 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
130 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
132 # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
133 # protection of DXE_SMM_DRIVER/SMM_CORE modules
134 [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
135 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
136 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
137 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
138 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
140 ################################################################################
142 # SKU Identification section - list of all SKU IDs supported by this Platform.
144 ################################################################################
148 ################################################################################
150 # Library Class section - list of all Library Classes needed by this Platform.
152 ################################################################################
154 !include MdePkg/MdeLibs.dsc.inc
157 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
158 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
159 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
160 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
161 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
162 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
163 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
164 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
165 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
166 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
167 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
168 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
169 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
170 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
171 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
172 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
173 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
174 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
175 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
176 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
177 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
178 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
179 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
180 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
181 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
182 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
183 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
184 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
185 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
186 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
187 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
188 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
189 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
190 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
191 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
192 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
193 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
194 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
195 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
196 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
197 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
198 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
199 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
200 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
201 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
202 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
203 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
204 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
205 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
206 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
207 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
208 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
209 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
210 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
211 MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf
212 PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
213 DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
215 !if $(SMM_REQUIRE) == FALSE
216 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
217 CcProbeLib|OvmfPkg/Library/CcProbeLib/DxeCcProbeLib.inf
219 CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
221 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
222 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
224 !if $(SOURCE_DEBUG_ENABLE) == TRUE
225 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
226 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
228 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
229 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
232 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
233 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
235 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
236 !if $(NETWORK_TLS_ENABLE) == TRUE
237 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
239 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
241 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
243 !if $(SECURE_BOOT_ENABLE) == TRUE
244 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
245 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
246 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
247 PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
248 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
250 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
252 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
253 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
254 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
255 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
261 !include NetworkPkg/NetworkLibs.dsc.inc
263 !if $(NETWORK_TLS_ENABLE) == TRUE
264 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
267 !if $(BUILD_SHELL) == TRUE
268 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
270 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
272 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
273 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
274 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
276 !include OvmfPkg/Include/Dsc/OvmfTpmLibs.dsc.inc
278 [LibraryClasses.common]
279 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
280 CcExitLib|OvmfPkg/Library/CcExitLib/CcExitLib.inf
281 TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
282 TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf
284 [LibraryClasses.common.SEC]
285 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
286 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
287 !ifdef $(DEBUG_ON_SERIAL_PORT)
288 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
290 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
292 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
293 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
294 !if $(SOURCE_DEBUG_ENABLE) == TRUE
295 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
297 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
298 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
299 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
300 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
301 !if $(TOOL_CHAIN_TAG) == "XCODE5"
302 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
304 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
306 CcExitLib|OvmfPkg/Library/CcExitLib/SecCcExitLib.inf
307 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
308 CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
310 [LibraryClasses.common.PEI_CORE]
311 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
312 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
313 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
314 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
315 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
316 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
317 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
318 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
319 !ifdef $(DEBUG_ON_SERIAL_PORT)
320 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
322 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
324 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
325 CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
327 [LibraryClasses.common.PEIM]
328 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
329 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
330 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
331 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
332 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
333 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
334 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
335 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
336 !ifdef $(DEBUG_ON_SERIAL_PORT)
337 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
339 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
341 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
342 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
343 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
344 !if $(SOURCE_DEBUG_ENABLE) == TRUE
345 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
347 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
348 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
349 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
350 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
351 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
352 PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
354 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
355 CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
357 [LibraryClasses.common.DXE_CORE]
358 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
359 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
360 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
361 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
362 !ifdef $(DEBUG_ON_SERIAL_PORT)
363 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
365 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
367 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
368 !if $(SOURCE_DEBUG_ENABLE) == TRUE
369 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
371 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
372 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
374 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
375 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
376 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
377 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
378 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
379 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
380 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
381 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
382 !ifdef $(DEBUG_ON_SERIAL_PORT)
383 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
385 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
387 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
388 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
389 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
390 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
391 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
392 !if $(SMM_REQUIRE) == TRUE
393 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
396 [LibraryClasses.common.UEFI_DRIVER]
397 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
398 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
399 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
400 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
401 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
402 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
403 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
404 !ifdef $(DEBUG_ON_SERIAL_PORT)
405 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
407 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
409 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
410 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
412 [LibraryClasses.common.DXE_DRIVER]
413 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
414 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
415 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
416 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
417 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
418 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
419 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
420 !ifdef $(DEBUG_ON_SERIAL_PORT)
421 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
423 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
425 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
426 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
427 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
428 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
429 !if $(SMM_REQUIRE) == TRUE
430 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
432 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
434 !if $(SOURCE_DEBUG_ENABLE) == TRUE
435 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
437 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
438 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
439 NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf
440 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
441 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
443 [LibraryClasses.common.UEFI_APPLICATION]
444 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
445 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
446 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
447 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
448 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
449 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
450 !ifdef $(DEBUG_ON_SERIAL_PORT)
451 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
453 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
455 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
457 [LibraryClasses.common.DXE_SMM_DRIVER]
458 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
459 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
460 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
461 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
462 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
463 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
464 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
465 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
466 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
467 !ifdef $(DEBUG_ON_SERIAL_PORT)
468 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
470 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
472 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
473 !if $(SOURCE_DEBUG_ENABLE) == TRUE
474 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
476 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
477 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
478 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
480 [LibraryClasses.common.SMM_CORE]
481 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
482 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
483 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
484 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
485 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
486 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
487 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
488 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
489 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
490 !ifdef $(DEBUG_ON_SERIAL_PORT)
491 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
493 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
495 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
497 ################################################################################
499 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
501 ################################################################################
503 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
504 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
505 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
506 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
507 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
508 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
510 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
512 !if $(SMM_REQUIRE) == TRUE
513 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
514 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
515 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
519 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
520 !if $(SMM_REQUIRE) == FALSE
521 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
523 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
524 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
525 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
526 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
527 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
528 !if $(NETWORK_TLS_ENABLE) == FALSE
529 # match PcdFlashNvStorageVariableSize purely for convenience
530 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
533 !if $(FD_SIZE_IN_KB) == 4096
534 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
535 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
536 !if $(NETWORK_TLS_ENABLE) == FALSE
537 # match PcdFlashNvStorageVariableSize purely for convenience
538 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
541 !if $(NETWORK_TLS_ENABLE) == TRUE
542 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
543 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
546 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
547 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
548 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
550 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
552 # DEBUG_INIT 0x00000001 // Initialization
553 # DEBUG_WARN 0x00000002 // Warnings
554 # DEBUG_LOAD 0x00000004 // Load events
555 # DEBUG_FS 0x00000008 // EFI File system
556 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
557 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
558 # DEBUG_INFO 0x00000040 // Informational debug messages
559 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
560 # DEBUG_VARIABLE 0x00000100 // Variable
561 # DEBUG_BM 0x00000400 // Boot Manager
562 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
563 # DEBUG_NET 0x00004000 // SNP Driver
564 # DEBUG_UNDI 0x00010000 // UNDI Driver
565 # DEBUG_LOADFILE 0x00020000 // LoadFile
566 # DEBUG_EVENT 0x00080000 // Event messages
567 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
568 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
569 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
570 # // significantly impact boot performance
571 # DEBUG_ERROR 0x80000000 // Error
572 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
574 !if $(SOURCE_DEBUG_ENABLE) == TRUE
575 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
577 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
580 # This PCD is used to set the base address of the PCI express hierarchy. It
581 # is only consulted when OVMF runs on Q35. In that case it is programmed into
582 # the PCIEXBAR register.
584 # On Q35 machine types that QEMU intends to support in the long term, QEMU
585 # never lets the RAM below 4 GB exceed 2816 MB.
586 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
588 !if $(SOURCE_DEBUG_ENABLE) == TRUE
589 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
593 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
594 # best (please refer to git-blame for past updates). The values capture a set
595 # of BIN hints that made sense at a particular time, for some (now likely
596 # unknown) workloads / boot paths.
598 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
599 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x12
600 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
601 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
602 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
605 # TDX need 1G PageTable support
606 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
611 !include NetworkPkg/NetworkPcds.dsc.inc
613 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
615 !if $(SMM_REQUIRE) == TRUE
616 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
619 # IRQs 5, 9, 10, 11 are level-triggered
620 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
622 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
623 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
625 ################################################################################
627 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
629 ################################################################################
633 # ($(SMM_REQUIRE) == FALSE)
634 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
636 !if $(SMM_REQUIRE) == FALSE
637 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
638 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
639 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
640 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
641 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
643 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
644 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
645 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
646 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
647 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
648 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
649 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
650 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
651 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
652 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
653 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
654 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
656 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
658 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
661 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
663 # Set video resolution for text setup.
664 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
665 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
667 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
668 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
669 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
671 # Noexec settings for DXE.
672 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
674 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
675 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
676 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
678 # Set memory encryption mask
679 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
681 # Set Tdx shared bit mask
682 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
684 # Set SEV-ES defaults
685 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
686 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
687 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
689 !if $(SMM_REQUIRE) == TRUE
690 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
691 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
692 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
693 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
696 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
698 !include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
700 # IPv4 and IPv6 PXE Boot support.
701 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
702 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
704 # Set ConfidentialComputing defaults
705 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
707 !if $(CSM_ENABLE) == FALSE
708 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
712 !include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
714 ################################################################################
716 # Components Section - list of all EDK II Modules needed by this Platform.
718 ################################################################################
720 OvmfPkg/ResetVector/ResetVector.inf
725 OvmfPkg/Sec/SecMain.inf {
727 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
728 NULL|OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelperLib.inf
729 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SecCryptLib.inf
735 MdeModulePkg/Core/Pei/PeiMain.inf
736 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
738 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
740 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
742 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
744 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
746 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
748 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
750 OvmfPkg/PlatformPei/PlatformPei.inf {
752 NULL|OvmfPkg/IntelTdx/TdxHelperLib/PeiTdxHelperLib.inf
754 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
756 !if $(SMM_REQUIRE) == TRUE
757 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
760 !if $(SMM_REQUIRE) == TRUE
761 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
762 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
763 OvmfPkg/SmmAccess/SmmAccessPei.inf
766 UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
769 # Directly use PeiMpInitLib. It depends on PeiMpInitLibMpDepLib which
770 # checks the PPI of gEfiPeiMpInitLibMpDepPpiGuid.
772 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
773 NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibMpDepLib.inf
776 UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
778 FILE_GUID = $(UP_CPU_PEI_GUID)
782 # Directly use MpInitLibUp. It depends on PeiMpInitLibUpDepLib which
783 # checks the PPI of gEfiPeiMpInitLibUpDepPpiGuid.
785 MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
786 NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibUpDepLib.inf
789 !include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
794 MdeModulePkg/Core/Dxe/DxeMain.inf {
796 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
797 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
800 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
801 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
802 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
804 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
807 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
809 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
811 !if $(SECURE_BOOT_ENABLE) == TRUE
812 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
814 !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
817 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
818 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
820 UefiCpuPkg/CpuDxe/CpuDxe.inf {
823 # Directly use DxeMpInitLib. It depends on DxeMpInitLibMpDepLib which
824 # checks the Protocol of gEfiMpInitLibMpDepProtocolGuid.
826 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
827 NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf
830 UefiCpuPkg/CpuDxe/CpuDxe.inf {
832 FILE_GUID = $(UP_CPU_DXE_GUID)
836 # Directly use MpInitLibUp. It depends on DxeMpInitLibUpDepLib which
837 # checks the Protocol of gEfiMpInitLibUpDepProtocolGuid.
839 MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
840 NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf
844 OvmfPkg/8259InterruptControllerDxe/8259.inf
845 OvmfPkg/8254TimerDxe/8254Timer.inf
847 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
849 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
850 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
851 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
853 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
854 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
855 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
857 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
859 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
861 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
862 MdeModulePkg/Universal/Metronome/Metronome.inf
863 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
864 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
865 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
867 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
869 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
870 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
873 MdeModulePkg/Logo/LogoDxe.inf
874 MdeModulePkg/Application/UiApp/UiApp.inf {
876 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
877 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
878 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
880 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
881 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
884 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
886 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
888 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
889 OvmfPkg/Virtio10Dxe/Virtio10.inf
890 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
891 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
892 OvmfPkg/VirtioRngDxe/VirtioRng.inf
893 !if $(PVSCSI_ENABLE) == TRUE
894 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
896 !if $(MPT_SCSI_ENABLE) == TRUE
897 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
899 !if $(LSI_SCSI_ENABLE) == TRUE
900 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
902 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
903 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
904 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
905 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
906 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
907 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
909 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
911 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
912 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
914 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
915 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
917 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
918 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
919 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
920 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
921 FatPkg/EnhancedFatDxe/Fat.inf
922 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
923 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
924 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
925 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
926 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
927 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
928 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
929 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
930 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
931 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
932 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
933 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
935 !ifndef $(CSM_ENABLE)
936 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
938 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
939 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
944 OvmfPkg/SioBusDxe/SioBusDxe.inf
945 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
946 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
951 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
953 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
955 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
960 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
961 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
962 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
963 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
964 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
969 !include NetworkPkg/NetworkComponents.dsc.inc
970 !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
972 OvmfPkg/VirtioNetDxe/VirtioNet.inf
977 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
978 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
979 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
980 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
981 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
982 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
985 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
987 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
989 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
990 OvmfPkg/Csm/Csm16/Csm16.inf
993 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
994 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
996 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
998 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
1000 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
1002 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
1004 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
1007 !if $(BUILD_SHELL) == TRUE
1008 ShellPkg/Application/Shell/Shell.inf {
1010 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
1011 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
1012 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
1013 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
1014 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
1015 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
1016 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
1017 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
1018 !if $(NETWORK_IP6_ENABLE) == TRUE
1019 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
1021 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
1022 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
1023 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
1026 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
1027 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
1028 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
1032 !if $(SECURE_BOOT_ENABLE) == TRUE
1033 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
1034 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
1037 OvmfPkg/PlatformDxe/Platform.inf
1038 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
1040 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
1042 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
1044 OvmfPkg/TdxDxe/TdxDxe.inf
1046 !if $(SMM_REQUIRE) == TRUE
1047 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
1048 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
1049 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
1052 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
1054 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
1059 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
1062 # Privileged drivers (DXE_SMM_DRIVER modules)
1064 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
1065 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
1066 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
1068 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
1070 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
1072 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
1073 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
1077 # Variable driver stack (SMM)
1079 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
1081 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
1083 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
1084 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
1086 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1087 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
1089 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
1094 # Variable driver stack (non-SMM)
1096 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1097 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1099 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1101 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1102 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1104 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1109 # Cc Measurement Protocol for Td guest
1111 !if $(CC_MEASUREMENT_ENABLE) == TRUE
1112 SecurityPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.inf {
1114 HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
1115 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
1122 !include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc