VirtualBox

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

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

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

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

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