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