]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgX64.dsc
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / OvmfPkgX64.dsc
1 ## @file
2 # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
3 #
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.
7 #
8 # SPDX-License-Identifier: BSD-2-Clause-Patent
9 #
10 ##
11
12 ################################################################################
13 #
14 # Defines Section - statements that will be processed to create a Makefile.
15 #
16 ################################################################################
17 [Defines]
18 PLATFORM_NAME = Ovmf
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
27
28 #
29 # Defines for default states. These can be changed on the command line.
30 # -D FLAG=VALUE
31 #
32 DEFINE SECURE_BOOT_ENABLE = FALSE
33 DEFINE SMM_REQUIRE = FALSE
34 DEFINE SOURCE_DEBUG_ENABLE = FALSE
35
36 !include OvmfPkg/OvmfTpmDefines.dsc.inc
37
38 #
39 # Network definition
40 #
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
46
47 !include NetworkPkg/NetworkDefines.dsc.inc
48
49 #
50 # Device drivers
51 #
52 DEFINE PVSCSI_ENABLE = TRUE
53 DEFINE MPT_SCSI_ENABLE = TRUE
54 DEFINE LSI_SCSI_ENABLE = FALSE
55
56 #
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
59 # permitted.
60 #
61 !ifdef $(FD_SIZE_1MB)
62 DEFINE FD_SIZE_IN_KB = 1024
63 !else
64 !ifdef $(FD_SIZE_2MB)
65 DEFINE FD_SIZE_IN_KB = 2048
66 !else
67 !ifdef $(FD_SIZE_4MB)
68 DEFINE FD_SIZE_IN_KB = 4096
69 !else
70 DEFINE FD_SIZE_IN_KB = 4096
71 !endif
72 !endif
73 !endif
74
75 #
76 # Define the FILE_GUID of CpuMpPei/CpuDxe for unique-processor version.
77 #
78 DEFINE UP_CPU_PEI_GUID = 280251c4-1d09-4035-9062-839acb5f18c1
79 DEFINE UP_CPU_DXE_GUID = 6490f1c5-ebcc-4665-8892-0075b9bb49b7
80
81 [BuildOptions]
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
87 !endif
88 !if $(SOURCE_DEBUG_ENABLE) == TRUE
89 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
90 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
91 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
92 !endif
93 RELEASE_*_*_GENFW_FLAGS = --zero
94
95 #
96 # Disable deprecated APIs.
97 #
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
101
102 #
103 # Add TDX_GUEST_SUPPORTED
104 #
105 MSFT:*_*_*_CC_FLAGS = /D TDX_GUEST_SUPPORTED
106 INTEL:*_*_*_CC_FLAGS = /D TDX_GUEST_SUPPORTED
107 GCC:*_*_*_CC_FLAGS = -D TDX_GUEST_SUPPORTED
108
109 !include NetworkPkg/NetworkBuildOptions.dsc.inc
110
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
116
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
124
125 ################################################################################
126 #
127 # SKU Identification section - list of all SKU IDs supported by this Platform.
128 #
129 ################################################################################
130 [SkuIds]
131 0|DEFAULT
132
133 ################################################################################
134 #
135 # Library Class section - list of all Library Classes needed by this Platform.
136 #
137 ################################################################################
138
139 !include MdePkg/MdeLibs.dsc.inc
140
141 [LibraryClasses]
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 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
175 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
176 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
177 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
178 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
179 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
180 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
181 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
182 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
183 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
184 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
185 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
186 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
187 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
188 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
189 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
190 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
191 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
192 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
193 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
194 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
195 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
196 MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf
197 PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
198 DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
199
200 !if $(SMM_REQUIRE) == FALSE
201 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
202 CcProbeLib|OvmfPkg/Library/CcProbeLib/CcProbeLib.inf
203 !else
204 CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
205 !endif
206 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
207 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
208
209 !if $(SOURCE_DEBUG_ENABLE) == TRUE
210 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
211 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
212 !else
213 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
214 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
215 !endif
216
217 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
218 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
219
220 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
221 !if $(NETWORK_TLS_ENABLE) == TRUE
222 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
223 !else
224 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
225 !endif
226 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
227
228 !if $(SECURE_BOOT_ENABLE) == TRUE
229 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
230 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
231 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
232 PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
233 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
234 !else
235 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
236 !endif
237 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
238 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
239 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
240 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
241
242
243 #
244 # Network libraries
245 #
246 !include NetworkPkg/NetworkLibs.dsc.inc
247
248 !if $(NETWORK_TLS_ENABLE) == TRUE
249 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
250 !endif
251
252 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
253 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
254 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
255 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
256 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
257
258 !include OvmfPkg/OvmfTpmLibs.dsc.inc
259
260 [LibraryClasses.common]
261 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
262 VmgExitLib|OvmfPkg/Library/VmgExitLib/VmgExitLib.inf
263 TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
264 TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf
265
266 [LibraryClasses.common.SEC]
267 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
268 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
269 !ifdef $(DEBUG_ON_SERIAL_PORT)
270 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
271 !else
272 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
273 !endif
274 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
275 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
276 !if $(SOURCE_DEBUG_ENABLE) == TRUE
277 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
278 !endif
279 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
280 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
281 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
282 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
283 !if $(TOOL_CHAIN_TAG) == "XCODE5"
284 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
285 !else
286 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
287 !endif
288 VmgExitLib|OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf
289 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
290
291 [LibraryClasses.common.PEI_CORE]
292 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
293 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
294 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
295 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
296 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
297 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
298 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
299 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
300 !ifdef $(DEBUG_ON_SERIAL_PORT)
301 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
302 !else
303 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
304 !endif
305 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
306
307 [LibraryClasses.common.PEIM]
308 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
309 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
310 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
311 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
312 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
313 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
314 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
315 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
316 !ifdef $(DEBUG_ON_SERIAL_PORT)
317 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
318 !else
319 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
320 !endif
321 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
322 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
323 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
324 !if $(SOURCE_DEBUG_ENABLE) == TRUE
325 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
326 !endif
327 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
328 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
329 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
330 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
331 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
332 PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
333
334 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
335
336 [LibraryClasses.common.DXE_CORE]
337 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
338 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
339 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
340 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
341 !ifdef $(DEBUG_ON_SERIAL_PORT)
342 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
343 !else
344 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
345 !endif
346 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
347 !if $(SOURCE_DEBUG_ENABLE) == TRUE
348 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
349 !endif
350 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
351 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
352
353 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
354 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
355 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
356 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
357 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
358 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
359 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
360 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
361 !ifdef $(DEBUG_ON_SERIAL_PORT)
362 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
363 !else
364 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
365 !endif
366 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
367 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
368 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
369 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
370 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
371 !if $(SMM_REQUIRE) == TRUE
372 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
373 !endif
374
375 [LibraryClasses.common.UEFI_DRIVER]
376 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
377 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
378 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
379 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
380 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
381 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
382 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
383 !ifdef $(DEBUG_ON_SERIAL_PORT)
384 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
385 !else
386 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
387 !endif
388 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
389 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
390
391 [LibraryClasses.common.DXE_DRIVER]
392 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
393 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
394 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
395 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
396 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
397 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
398 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
399 !ifdef $(DEBUG_ON_SERIAL_PORT)
400 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
401 !else
402 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
403 !endif
404 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
405 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
406 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
407 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
408 !if $(SMM_REQUIRE) == TRUE
409 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
410 !else
411 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
412 !endif
413 !if $(SOURCE_DEBUG_ENABLE) == TRUE
414 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
415 !endif
416 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
417 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
418 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
419 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
420
421 [LibraryClasses.common.UEFI_APPLICATION]
422 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
423 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
424 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
425 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
426 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
427 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
428 !ifdef $(DEBUG_ON_SERIAL_PORT)
429 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
430 !else
431 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
432 !endif
433 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
434
435 [LibraryClasses.common.DXE_SMM_DRIVER]
436 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
437 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
438 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
439 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
440 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
441 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
442 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
443 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
444 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
445 !ifdef $(DEBUG_ON_SERIAL_PORT)
446 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
447 !else
448 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
449 !endif
450 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
451 !if $(SOURCE_DEBUG_ENABLE) == TRUE
452 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
453 !endif
454 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
455 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
456 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
457
458 [LibraryClasses.common.SMM_CORE]
459 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
460 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
461 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
462 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
463 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
464 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
465 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
466 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
467 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
468 !ifdef $(DEBUG_ON_SERIAL_PORT)
469 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
470 !else
471 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
472 !endif
473 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
474
475 ################################################################################
476 #
477 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
478 #
479 ################################################################################
480 [PcdsFeatureFlag]
481 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
482 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
483 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
484 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
485 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
486 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
487 !ifdef $(CSM_ENABLE)
488 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
489 !endif
490 !if $(SMM_REQUIRE) == TRUE
491 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
492 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
493 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
494 !endif
495
496 [PcdsFixedAtBuild]
497 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
498 !if $(SMM_REQUIRE) == FALSE
499 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
500 !endif
501 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
502 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
503 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
504 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
505 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
506 !if $(NETWORK_TLS_ENABLE) == FALSE
507 # match PcdFlashNvStorageVariableSize purely for convenience
508 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
509 !endif
510 !endif
511 !if $(FD_SIZE_IN_KB) == 4096
512 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
513 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
514 !if $(NETWORK_TLS_ENABLE) == FALSE
515 # match PcdFlashNvStorageVariableSize purely for convenience
516 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
517 !endif
518 !endif
519 !if $(NETWORK_TLS_ENABLE) == TRUE
520 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
521 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
522 !endif
523
524 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
525 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
526 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
527
528 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
529
530 # DEBUG_INIT 0x00000001 // Initialization
531 # DEBUG_WARN 0x00000002 // Warnings
532 # DEBUG_LOAD 0x00000004 // Load events
533 # DEBUG_FS 0x00000008 // EFI File system
534 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
535 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
536 # DEBUG_INFO 0x00000040 // Informational debug messages
537 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
538 # DEBUG_VARIABLE 0x00000100 // Variable
539 # DEBUG_BM 0x00000400 // Boot Manager
540 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
541 # DEBUG_NET 0x00004000 // SNP Driver
542 # DEBUG_UNDI 0x00010000 // UNDI Driver
543 # DEBUG_LOADFILE 0x00020000 // LoadFile
544 # DEBUG_EVENT 0x00080000 // Event messages
545 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
546 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
547 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
548 # // significantly impact boot performance
549 # DEBUG_ERROR 0x80000000 // Error
550 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
551
552 !if $(SOURCE_DEBUG_ENABLE) == TRUE
553 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
554 !else
555 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
556 !endif
557
558 # This PCD is used to set the base address of the PCI express hierarchy. It
559 # is only consulted when OVMF runs on Q35. In that case it is programmed into
560 # the PCIEXBAR register.
561 #
562 # On Q35 machine types that QEMU intends to support in the long term, QEMU
563 # never lets the RAM below 4 GB exceed 2816 MB.
564 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
565
566 !if $(SOURCE_DEBUG_ENABLE) == TRUE
567 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
568 !endif
569
570 #
571 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
572 # best (please refer to git-blame for past updates). The values capture a set
573 # of BIN hints that made sense at a particular time, for some (now likely
574 # unknown) workloads / boot paths.
575 #
576 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
577 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
578 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
579 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
580 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
581
582 #
583 # TDX need 1G PageTable support
584 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
585
586 #
587 # Network Pcds
588 #
589 !include NetworkPkg/NetworkPcds.dsc.inc
590
591 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
592
593 !if $(SMM_REQUIRE) == TRUE
594 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
595 !endif
596
597 # IRQs 5, 9, 10, 11 are level-triggered
598 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
599
600 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
601 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
602
603 ################################################################################
604 #
605 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
606 #
607 ################################################################################
608
609 [PcdsDynamicDefault]
610 # only set when
611 # ($(SMM_REQUIRE) == FALSE)
612 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
613
614 !if $(SMM_REQUIRE) == FALSE
615 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
616 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
617 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
618 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
619 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
620 !endif
621 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
622 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
623 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
624 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
625 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
626 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
627 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
628 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
629 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
630 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
631 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
632 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
633 !ifdef $(CSM_ENABLE)
634 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
635 !else
636 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
637 !endif
638
639 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
640
641 # Set video resolution for text setup.
642 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
643 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
644
645 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
646 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
647 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
648
649 # Noexec settings for DXE.
650 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
651
652 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
653 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
654 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
655
656 # Set memory encryption mask
657 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
658
659 # Set Tdx shared bit mask
660 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
661
662 # Set SEV-ES defaults
663 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
664 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
665 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
666
667 !if $(SMM_REQUIRE) == TRUE
668 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
669 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
670 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
671 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
672 !endif
673
674 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
675
676 !include OvmfPkg/OvmfTpmPcds.dsc.inc
677
678 # IPv4 and IPv6 PXE Boot support.
679 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
680 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
681
682 # Set ConfidentialComputing defaults
683 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
684
685 !if $(CSM_ENABLE) == FALSE
686 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
687 !endif
688
689 [PcdsDynamicHii]
690 !include OvmfPkg/OvmfTpmPcdsHii.dsc.inc
691
692 ################################################################################
693 #
694 # Components Section - list of all EDK II Modules needed by this Platform.
695 #
696 ################################################################################
697 [Components]
698 OvmfPkg/ResetVector/ResetVector.inf
699
700 #
701 # SEC Phase modules
702 #
703 OvmfPkg/Sec/SecMain.inf {
704 <LibraryClasses>
705 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
706 NULL|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
707 }
708
709 #
710 # PEI Phase modules
711 #
712 MdeModulePkg/Core/Pei/PeiMain.inf
713 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
714 <LibraryClasses>
715 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
716 }
717 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
718 <LibraryClasses>
719 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
720 }
721 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
722 <LibraryClasses>
723 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
724 }
725 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
726
727 OvmfPkg/PlatformPei/PlatformPei.inf
728 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
729 <LibraryClasses>
730 !if $(SMM_REQUIRE) == TRUE
731 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
732 !endif
733 }
734 !if $(SMM_REQUIRE) == TRUE
735 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
736 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
737 OvmfPkg/SmmAccess/SmmAccessPei.inf
738 !endif
739
740 UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
741 <LibraryClasses>
742 #
743 # Directly use PeiMpInitLib. It depends on PeiMpInitLibMpDepLib which
744 # checks the PPI of gEfiPeiMpInitLibMpDepPpiGuid.
745 #
746 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
747 NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibMpDepLib.inf
748 }
749
750 UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
751 <Defines>
752 FILE_GUID = $(UP_CPU_PEI_GUID)
753
754 <LibraryClasses>
755 #
756 # Directly use MpInitLibUp. It depends on PeiMpInitLibUpDepLib which
757 # checks the PPI of gEfiPeiMpInitLibUpDepPpiGuid.
758 #
759 MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
760 NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibUpDepLib.inf
761 }
762
763 !include OvmfPkg/OvmfTpmComponentsPei.dsc.inc
764
765 #
766 # DXE Phase modules
767 #
768 MdeModulePkg/Core/Dxe/DxeMain.inf {
769 <LibraryClasses>
770 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
771 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
772 }
773
774 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
775 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
776 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
777 <LibraryClasses>
778 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
779 }
780
781 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
782
783 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
784 <LibraryClasses>
785 !if $(SECURE_BOOT_ENABLE) == TRUE
786 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
787 !include OvmfPkg/OvmfTpmSecurityStub.dsc.inc
788 !endif
789 }
790
791 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
792 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
793
794 UefiCpuPkg/CpuDxe/CpuDxe.inf {
795 <LibraryClasses>
796 #
797 # Directly use DxeMpInitLib. It depends on DxeMpInitLibMpDepLib which
798 # checks the Protocol of gEfiMpInitLibMpDepProtocolGuid.
799 #
800 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
801 NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf
802 }
803
804 UefiCpuPkg/CpuDxe/CpuDxe.inf {
805 <Defines>
806 FILE_GUID = $(UP_CPU_DXE_GUID)
807
808 <LibraryClasses>
809 #
810 # Directly use MpInitLibUp. It depends on DxeMpInitLibUpDepLib which
811 # checks the Protocol of gEfiMpInitLibUpDepProtocolGuid.
812 #
813 MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
814 NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf
815 }
816
817 !ifdef $(CSM_ENABLE)
818 OvmfPkg/8259InterruptControllerDxe/8259.inf
819 OvmfPkg/8254TimerDxe/8254Timer.inf
820 !else
821 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
822 !endif
823 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
824 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
825 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
826 <LibraryClasses>
827 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
828 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
829 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
830 }
831 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
832 <LibraryClasses>
833 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
834 }
835 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
836 MdeModulePkg/Universal/Metronome/Metronome.inf
837 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
838 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
839 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
840 <LibraryClasses>
841 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
842 !ifdef $(CSM_ENABLE)
843 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
844 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
845 !endif
846 }
847 MdeModulePkg/Logo/LogoDxe.inf
848 MdeModulePkg/Application/UiApp/UiApp.inf {
849 <LibraryClasses>
850 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
851 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
852 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
853 !ifdef $(CSM_ENABLE)
854 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
855 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
856 !endif
857 }
858 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
859 <LibraryClasses>
860 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
861 }
862 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
863 OvmfPkg/Virtio10Dxe/Virtio10.inf
864 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
865 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
866 OvmfPkg/VirtioRngDxe/VirtioRng.inf
867 !if $(PVSCSI_ENABLE) == TRUE
868 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
869 !endif
870 !if $(MPT_SCSI_ENABLE) == TRUE
871 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
872 !endif
873 !if $(LSI_SCSI_ENABLE) == TRUE
874 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
875 !endif
876 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
877 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
878 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
879 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
880 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
881 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
882 <LibraryClasses>
883 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
884 }
885 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
886 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
887 <LibraryClasses>
888 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
889 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
890 }
891 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
892 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
893 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
894 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
895 FatPkg/EnhancedFatDxe/Fat.inf
896 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
897 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
898 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
899 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
900 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
901 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
902 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
903 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
904 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
905 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
906 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
907 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
908
909 !ifndef $(CSM_ENABLE)
910 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
911 !endif
912 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
913 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
914
915 #
916 # ISA Support
917 #
918 OvmfPkg/SioBusDxe/SioBusDxe.inf
919 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
920 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
921
922 #
923 # SMBIOS Support
924 #
925 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
926 <LibraryClasses>
927 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
928 }
929 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
930
931 #
932 # ACPI Support
933 #
934 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
935 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
936 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
937 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
938 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
939
940 #
941 # Network Support
942 #
943 !include NetworkPkg/NetworkComponents.dsc.inc
944
945 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {
946 <LibraryClasses>
947 NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf
948 }
949
950 !if $(NETWORK_TLS_ENABLE) == TRUE
951 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
952 <LibraryClasses>
953 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
954 }
955 !endif
956 OvmfPkg/VirtioNetDxe/VirtioNet.inf
957
958 #
959 # Usb Support
960 #
961 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
962 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
963 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
964 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
965 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
966 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
967
968 !ifdef $(CSM_ENABLE)
969 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
970 <LibraryClasses>
971 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
972 }
973 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
974 OvmfPkg/Csm/Csm16/Csm16.inf
975 !endif
976
977 !if $(TOOL_CHAIN_TAG) != "XCODE5"
978 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
979 <PcdsFixedAtBuild>
980 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
981 }
982 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
983 <PcdsFixedAtBuild>
984 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
985 }
986 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
987 <PcdsFixedAtBuild>
988 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
989 }
990 !endif
991 ShellPkg/Application/Shell/Shell.inf {
992 <LibraryClasses>
993 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
994 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
995 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
996 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
997 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
998 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
999 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
1000 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
1001 !if $(NETWORK_IP6_ENABLE) == TRUE
1002 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
1003 !endif
1004 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
1005 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
1006 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
1007
1008 <PcdsFixedAtBuild>
1009 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
1010 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
1011 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
1012 }
1013
1014 !if $(SECURE_BOOT_ENABLE) == TRUE
1015 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
1016 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
1017 !endif
1018
1019 OvmfPkg/PlatformDxe/Platform.inf
1020 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
1021 <LibraryClasses>
1022 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
1023 }
1024 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
1025
1026 OvmfPkg/TdxDxe/TdxDxe.inf
1027
1028 !if $(SMM_REQUIRE) == TRUE
1029 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
1030 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
1031 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
1032
1033 #
1034 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
1035 #
1036 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
1037
1038 #
1039 # SMM_CORE
1040 #
1041 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
1042
1043 #
1044 # Privileged drivers (DXE_SMM_DRIVER modules)
1045 #
1046 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
1047 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
1048 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
1049 <LibraryClasses>
1050 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
1051 }
1052 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
1053 <LibraryClasses>
1054 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
1055 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
1056 }
1057
1058 #
1059 # Variable driver stack (SMM)
1060 #
1061 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
1062 <LibraryClasses>
1063 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
1064 }
1065 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
1066 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
1067 <LibraryClasses>
1068 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1069 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
1070 }
1071 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
1072
1073 !else
1074
1075 #
1076 # Variable driver stack (non-SMM)
1077 #
1078 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1079 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1080 <LibraryClasses>
1081 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1082 }
1083 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1084 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1085 <LibraryClasses>
1086 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1087 }
1088 !endif
1089
1090 #
1091 # TPM support
1092 #
1093 !include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc