]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgX64.dsc
OvmfPkg: Use NestedInterruptTplLib in nested interrupt handlers
[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 CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
438 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
439 NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf
440 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
441 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
442
443 [LibraryClasses.common.UEFI_APPLICATION]
444 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
445 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
446 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
447 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
448 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
449 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
450 !ifdef $(DEBUG_ON_SERIAL_PORT)
451 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
452 !else
453 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
454 !endif
455 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
456
457 [LibraryClasses.common.DXE_SMM_DRIVER]
458 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
459 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
460 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
461 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
462 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
463 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
464 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
465 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
466 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
467 !ifdef $(DEBUG_ON_SERIAL_PORT)
468 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
469 !else
470 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
471 !endif
472 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
473 !if $(SOURCE_DEBUG_ENABLE) == TRUE
474 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
475 !endif
476 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
477 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
478 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
479
480 [LibraryClasses.common.SMM_CORE]
481 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
482 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
483 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
484 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
485 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
486 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
487 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
488 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
489 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
490 !ifdef $(DEBUG_ON_SERIAL_PORT)
491 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
492 !else
493 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
494 !endif
495 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
496
497 ################################################################################
498 #
499 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
500 #
501 ################################################################################
502 [PcdsFeatureFlag]
503 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
504 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
505 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
506 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
507 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
508 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
509 !ifdef $(CSM_ENABLE)
510 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
511 !endif
512 !if $(SMM_REQUIRE) == TRUE
513 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
514 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
515 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
516 !endif
517
518 [PcdsFixedAtBuild]
519 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
520 !if $(SMM_REQUIRE) == FALSE
521 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
522 !endif
523 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
524 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
525 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
526 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
527 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
528 !if $(NETWORK_TLS_ENABLE) == FALSE
529 # match PcdFlashNvStorageVariableSize purely for convenience
530 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
531 !endif
532 !endif
533 !if $(FD_SIZE_IN_KB) == 4096
534 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
535 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
536 !if $(NETWORK_TLS_ENABLE) == FALSE
537 # match PcdFlashNvStorageVariableSize purely for convenience
538 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
539 !endif
540 !endif
541 !if $(NETWORK_TLS_ENABLE) == TRUE
542 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
543 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
544 !endif
545
546 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
547 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
548 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
549
550 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
551
552 # DEBUG_INIT 0x00000001 // Initialization
553 # DEBUG_WARN 0x00000002 // Warnings
554 # DEBUG_LOAD 0x00000004 // Load events
555 # DEBUG_FS 0x00000008 // EFI File system
556 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
557 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
558 # DEBUG_INFO 0x00000040 // Informational debug messages
559 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
560 # DEBUG_VARIABLE 0x00000100 // Variable
561 # DEBUG_BM 0x00000400 // Boot Manager
562 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
563 # DEBUG_NET 0x00004000 // SNP Driver
564 # DEBUG_UNDI 0x00010000 // UNDI Driver
565 # DEBUG_LOADFILE 0x00020000 // LoadFile
566 # DEBUG_EVENT 0x00080000 // Event messages
567 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
568 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
569 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
570 # // significantly impact boot performance
571 # DEBUG_ERROR 0x80000000 // Error
572 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
573
574 !if $(SOURCE_DEBUG_ENABLE) == TRUE
575 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
576 !else
577 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
578 !endif
579
580 # This PCD is used to set the base address of the PCI express hierarchy. It
581 # is only consulted when OVMF runs on Q35. In that case it is programmed into
582 # the PCIEXBAR register.
583 #
584 # On Q35 machine types that QEMU intends to support in the long term, QEMU
585 # never lets the RAM below 4 GB exceed 2816 MB.
586 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
587
588 !if $(SOURCE_DEBUG_ENABLE) == TRUE
589 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
590 !endif
591
592 #
593 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
594 # best (please refer to git-blame for past updates). The values capture a set
595 # of BIN hints that made sense at a particular time, for some (now likely
596 # unknown) workloads / boot paths.
597 #
598 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
599 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x12
600 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
601 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
602 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
603
604 #
605 # TDX need 1G PageTable support
606 gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
607
608 #
609 # Network Pcds
610 #
611 !include NetworkPkg/NetworkPcds.dsc.inc
612
613 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
614
615 !if $(SMM_REQUIRE) == TRUE
616 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
617 !endif
618
619 # IRQs 5, 9, 10, 11 are level-triggered
620 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
621
622 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
623 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
624
625 ################################################################################
626 #
627 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
628 #
629 ################################################################################
630
631 [PcdsDynamicDefault]
632 # only set when
633 # ($(SMM_REQUIRE) == FALSE)
634 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
635
636 !if $(SMM_REQUIRE) == FALSE
637 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
638 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
639 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
640 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
641 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
642 !endif
643 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
644 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
645 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
646 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
647 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
648 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
649 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
650 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
651 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
652 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
653 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
654 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
655 !ifdef $(CSM_ENABLE)
656 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
657 !else
658 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
659 !endif
660
661 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
662
663 # Set video resolution for text setup.
664 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
665 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
666
667 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
668 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
669 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
670
671 # Noexec settings for DXE.
672 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
673
674 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
675 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
676 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
677
678 # Set memory encryption mask
679 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
680
681 # Set Tdx shared bit mask
682 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
683
684 # Set SEV-ES defaults
685 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
686 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
687 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
688
689 !if $(SMM_REQUIRE) == TRUE
690 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
691 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
692 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
693 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
694 !endif
695
696 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
697
698 !include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
699
700 # IPv4 and IPv6 PXE Boot support.
701 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
702 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
703
704 # Set ConfidentialComputing defaults
705 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
706
707 !if $(CSM_ENABLE) == FALSE
708 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
709 !endif
710
711 [PcdsDynamicHii]
712 !include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
713
714 ################################################################################
715 #
716 # Components Section - list of all EDK II Modules needed by this Platform.
717 #
718 ################################################################################
719 [Components]
720 OvmfPkg/ResetVector/ResetVector.inf
721
722 #
723 # SEC Phase modules
724 #
725 OvmfPkg/Sec/SecMain.inf {
726 <LibraryClasses>
727 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
728 NULL|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
729 }
730
731 #
732 # PEI Phase modules
733 #
734 MdeModulePkg/Core/Pei/PeiMain.inf
735 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
736 <LibraryClasses>
737 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
738 }
739 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
740 <LibraryClasses>
741 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
742 }
743 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
744 <LibraryClasses>
745 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
746 }
747 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
748
749 OvmfPkg/PlatformPei/PlatformPei.inf
750 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
751 <LibraryClasses>
752 !if $(SMM_REQUIRE) == TRUE
753 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
754 !endif
755 }
756 !if $(SMM_REQUIRE) == TRUE
757 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
758 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
759 OvmfPkg/SmmAccess/SmmAccessPei.inf
760 !endif
761
762 UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
763 <LibraryClasses>
764 #
765 # Directly use PeiMpInitLib. It depends on PeiMpInitLibMpDepLib which
766 # checks the PPI of gEfiPeiMpInitLibMpDepPpiGuid.
767 #
768 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
769 NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibMpDepLib.inf
770 }
771
772 UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
773 <Defines>
774 FILE_GUID = $(UP_CPU_PEI_GUID)
775
776 <LibraryClasses>
777 #
778 # Directly use MpInitLibUp. It depends on PeiMpInitLibUpDepLib which
779 # checks the PPI of gEfiPeiMpInitLibUpDepPpiGuid.
780 #
781 MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
782 NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibUpDepLib.inf
783 }
784
785 !include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
786
787 #
788 # DXE Phase modules
789 #
790 MdeModulePkg/Core/Dxe/DxeMain.inf {
791 <LibraryClasses>
792 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
793 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
794 }
795
796 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
797 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
798 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
799 <LibraryClasses>
800 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
801 }
802
803 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
804
805 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
806 <LibraryClasses>
807 !if $(SECURE_BOOT_ENABLE) == TRUE
808 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
809 !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
810 !endif
811 }
812
813 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
814 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
815
816 UefiCpuPkg/CpuDxe/CpuDxe.inf {
817 <LibraryClasses>
818 CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
819 #
820 # Directly use DxeMpInitLib. It depends on DxeMpInitLibMpDepLib which
821 # checks the Protocol of gEfiMpInitLibMpDepProtocolGuid.
822 #
823 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
824 NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf
825 }
826
827 UefiCpuPkg/CpuDxe/CpuDxe.inf {
828 <Defines>
829 FILE_GUID = $(UP_CPU_DXE_GUID)
830
831 <LibraryClasses>
832 #
833 # Directly use MpInitLibUp. It depends on DxeMpInitLibUpDepLib which
834 # checks the Protocol of gEfiMpInitLibUpDepProtocolGuid.
835 #
836 MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
837 NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf
838 }
839
840 !ifdef $(CSM_ENABLE)
841 OvmfPkg/8259InterruptControllerDxe/8259.inf
842 OvmfPkg/8254TimerDxe/8254Timer.inf
843 !else
844 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
845 !endif
846 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
847 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
848 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
849 <LibraryClasses>
850 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
851 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
852 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
853 }
854 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
855 <LibraryClasses>
856 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
857 }
858 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
859 MdeModulePkg/Universal/Metronome/Metronome.inf
860 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
861 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
862 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
863 <LibraryClasses>
864 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
865 !ifdef $(CSM_ENABLE)
866 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
867 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
868 !endif
869 }
870 MdeModulePkg/Logo/LogoDxe.inf
871 MdeModulePkg/Application/UiApp/UiApp.inf {
872 <LibraryClasses>
873 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
874 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
875 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
876 !ifdef $(CSM_ENABLE)
877 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
878 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
879 !endif
880 }
881 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
882 <LibraryClasses>
883 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
884 }
885 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
886 OvmfPkg/Virtio10Dxe/Virtio10.inf
887 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
888 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
889 OvmfPkg/VirtioRngDxe/VirtioRng.inf
890 !if $(PVSCSI_ENABLE) == TRUE
891 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
892 !endif
893 !if $(MPT_SCSI_ENABLE) == TRUE
894 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
895 !endif
896 !if $(LSI_SCSI_ENABLE) == TRUE
897 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
898 !endif
899 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
900 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
901 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
902 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
903 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
904 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
905 <LibraryClasses>
906 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
907 }
908 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
909 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
910 <LibraryClasses>
911 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
912 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
913 }
914 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
915 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
916 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
917 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
918 FatPkg/EnhancedFatDxe/Fat.inf
919 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
920 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
921 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
922 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
923 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
924 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
925 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
926 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
927 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
928 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
929 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
930 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
931
932 !ifndef $(CSM_ENABLE)
933 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
934 !endif
935 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
936 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
937
938 #
939 # ISA Support
940 #
941 OvmfPkg/SioBusDxe/SioBusDxe.inf
942 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
943 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
944
945 #
946 # SMBIOS Support
947 #
948 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
949 <LibraryClasses>
950 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
951 }
952 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
953
954 #
955 # ACPI Support
956 #
957 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
958 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
959 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
960 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
961 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
962
963 #
964 # Network Support
965 #
966 !include NetworkPkg/NetworkComponents.dsc.inc
967 !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
968
969 OvmfPkg/VirtioNetDxe/VirtioNet.inf
970
971 #
972 # Usb Support
973 #
974 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
975 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
976 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
977 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
978 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
979 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
980
981 !ifdef $(CSM_ENABLE)
982 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
983 <LibraryClasses>
984 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
985 }
986 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
987 OvmfPkg/Csm/Csm16/Csm16.inf
988 !endif
989
990 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
991 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
992 <PcdsFixedAtBuild>
993 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
994 }
995 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
996 <PcdsFixedAtBuild>
997 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
998 }
999 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
1000 <PcdsFixedAtBuild>
1001 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
1002 }
1003 !endif
1004 !if $(BUILD_SHELL) == TRUE
1005 ShellPkg/Application/Shell/Shell.inf {
1006 <LibraryClasses>
1007 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
1008 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
1009 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
1010 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
1011 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
1012 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
1013 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
1014 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
1015 !if $(NETWORK_IP6_ENABLE) == TRUE
1016 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
1017 !endif
1018 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
1019 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
1020 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
1021
1022 <PcdsFixedAtBuild>
1023 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
1024 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
1025 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
1026 }
1027 !endif
1028
1029 !if $(SECURE_BOOT_ENABLE) == TRUE
1030 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
1031 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
1032 !endif
1033
1034 OvmfPkg/PlatformDxe/Platform.inf
1035 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
1036 <LibraryClasses>
1037 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
1038 }
1039 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
1040
1041 OvmfPkg/TdxDxe/TdxDxe.inf
1042
1043 !if $(SMM_REQUIRE) == TRUE
1044 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
1045 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
1046 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
1047
1048 #
1049 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
1050 #
1051 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
1052
1053 #
1054 # SMM_CORE
1055 #
1056 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
1057
1058 #
1059 # Privileged drivers (DXE_SMM_DRIVER modules)
1060 #
1061 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
1062 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
1063 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
1064 <LibraryClasses>
1065 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
1066 }
1067 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
1068 <LibraryClasses>
1069 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
1070 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
1071 }
1072
1073 #
1074 # Variable driver stack (SMM)
1075 #
1076 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
1077 <LibraryClasses>
1078 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
1079 }
1080 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
1081 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
1082 <LibraryClasses>
1083 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1084 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
1085 }
1086 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
1087
1088 !else
1089
1090 #
1091 # Variable driver stack (non-SMM)
1092 #
1093 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1094 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1095 <LibraryClasses>
1096 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1097 }
1098 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1099 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1100 <LibraryClasses>
1101 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1102 }
1103 !endif
1104
1105 #
1106 # TPM support
1107 #
1108 !include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc