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