VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/OvmfPkgX64.dsc@ 100836

Last change on this file since 100836 was 99404, checked in by vboxsync, 2 years ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

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