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