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