VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/OvmfPkgIa32.dsc@ 99404

Last change on this file since 99404 was 99404, checked in by vboxsync, 20 months ago

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

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