VirtualBox

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

Last change on this file since 89983 was 89983, checked in by vboxsync, 4 years ago

Devices/EFI: Merge edk-stable202105 and openssl 1.1.1j and make it build, bugref:4643

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