VirtualBox

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

Last change on this file since 98412 was 93492, checked in by vboxsync, 3 years ago

EFI: Revert r139958 as it breaks booting from FreeBSD ISO images with EFI enabled, ticketref:19910 (will break ticketref:19862 but there is network boot support now making the iPXE ISO image approach superfluous)

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