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