VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/OvmfPkgIa32.dsc@ 89989

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

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