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