VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/OvmfPkgX64.dsc

Last change on this file was 108794, checked in by vboxsync, 4 weeks ago

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

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

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette