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