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