VirtualBox

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

Last change on this file since 108801 was 108801, checked in by vboxsync, 3 weeks ago

Devices/EFI/FirmwareNew: Fix bug introduced while resolving merge conflicts, 64-bit MMIO doesn't make sense for 32-bit platforms, bugref:4643

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

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