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