VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/CloudHv/CloudHvX64.dsc@ 105670

Last change on this file since 105670 was 105670, checked in by vboxsync, 7 months ago

Devices/EFI/FirmwareNew: Merge edk2-stable-202405 and make it build on aarch64, bugref:4643

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