VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/OvmfPkgIa32X64.dsc@ 109019

Last change on this file since 109019 was 108794, checked in by vboxsync, 4 weeks ago

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

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