]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/CloudHv/CloudHvX64.dsc
OvmfPkg: Use NestedInterruptTplLib in nested interrupt handlers
[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/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
485 [PcdsFixedAtBuild]
486 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
487 !if $(SMM_REQUIRE) == FALSE
488 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
489 !endif
490 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
491 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
492 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
493 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
494 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
495 !if $(NETWORK_TLS_ENABLE) == FALSE
496 # match PcdFlashNvStorageVariableSize purely for convenience
497 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
498 !endif
499 !endif
500 !if $(FD_SIZE_IN_KB) == 4096
501 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
502 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
503 !if $(NETWORK_TLS_ENABLE) == FALSE
504 # match PcdFlashNvStorageVariableSize purely for convenience
505 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
506 !endif
507 !endif
508 !if $(NETWORK_TLS_ENABLE) == TRUE
509 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
510 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
511 !endif
512
513 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
514 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
515 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
516
517 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
518
519 # DEBUG_INIT 0x00000001 // Initialization
520 # DEBUG_WARN 0x00000002 // Warnings
521 # DEBUG_LOAD 0x00000004 // Load events
522 # DEBUG_FS 0x00000008 // EFI File system
523 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
524 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
525 # DEBUG_INFO 0x00000040 // Informational debug messages
526 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
527 # DEBUG_VARIABLE 0x00000100 // Variable
528 # DEBUG_BM 0x00000400 // Boot Manager
529 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
530 # DEBUG_NET 0x00004000 // SNP Driver
531 # DEBUG_UNDI 0x00010000 // UNDI Driver
532 # DEBUG_LOADFILE 0x00020000 // LoadFile
533 # DEBUG_EVENT 0x00080000 // Event messages
534 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
535 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
536 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
537 # // significantly impact boot performance
538 # DEBUG_ERROR 0x80000000 // Error
539 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
540
541 !if $(SOURCE_DEBUG_ENABLE) == TRUE
542 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
543 !else
544 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
545 !endif
546
547 !if $(SOURCE_DEBUG_ENABLE) == TRUE
548 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
549 !endif
550
551 #
552 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
553 # best (please refer to git-blame for past updates). The values capture a set
554 # of BIN hints that made sense at a particular time, for some (now likely
555 # unknown) workloads / boot paths.
556 #
557 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
558 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
559 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
560 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
561 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
562
563 #
564 # Network Pcds
565 #
566 !include NetworkPkg/NetworkPcds.dsc.inc
567
568 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
569
570 !if $(SMM_REQUIRE) == TRUE
571 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
572 !endif
573
574 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
575 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
576
577 ################################################################################
578 #
579 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
580 #
581 ################################################################################
582
583 [PcdsDynamicDefault]
584 # only set when
585 # ($(SMM_REQUIRE) == FALSE)
586 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
587
588 !if $(SMM_REQUIRE) == FALSE
589 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
590 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
591 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
592 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
593 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
594 !endif
595 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
596 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
597 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
598 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
599 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
600 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
601 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
602 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
603
604 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
605 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
606
607 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
608 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
609 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
610
611 # Noexec settings for DXE.
612 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
613
614 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
615 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
616 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
617
618 # Set memory encryption mask
619 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
620
621 # Set Tdx shared bit mask
622 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
623
624 # Set SEV-ES defaults
625 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
626 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
627 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
628
629 !if $(SMM_REQUIRE) == TRUE
630 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
631 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
632 !endif
633
634 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
635
636 !include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
637
638 # IPv4 and IPv6 PXE Boot support.
639 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
640 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
641
642 # Set ConfidentialComputing defaults
643 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
644
645 [PcdsDynamicHii]
646 !include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
647
648 ################################################################################
649 #
650 # Components Section - list of all EDK II Modules needed by this Platform.
651 #
652 ################################################################################
653 [Components]
654 OvmfPkg/XenResetVector/XenResetVector.inf
655
656 #
657 # SEC Phase modules
658 #
659 OvmfPkg/Sec/SecMain.inf {
660 <LibraryClasses>
661 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
662 }
663
664 #
665 # PEI Phase modules
666 #
667 MdeModulePkg/Core/Pei/PeiMain.inf
668 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
669 <LibraryClasses>
670 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
671 }
672 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
673 <LibraryClasses>
674 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
675 }
676 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
677 <LibraryClasses>
678 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
679 }
680 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
681
682 OvmfPkg/PlatformPei/PlatformPei.inf
683 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
684 <LibraryClasses>
685 !if $(SMM_REQUIRE) == TRUE
686 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
687 !endif
688 }
689 !if $(SMM_REQUIRE) == TRUE
690 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
691 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
692 OvmfPkg/SmmAccess/SmmAccessPei.inf
693 !endif
694 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
695
696 !include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
697
698 #
699 # DXE Phase modules
700 #
701 MdeModulePkg/Core/Dxe/DxeMain.inf {
702 <LibraryClasses>
703 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
704 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
705 }
706
707 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
708 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
709 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
710 <LibraryClasses>
711 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
712 }
713
714 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
715
716 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
717 <LibraryClasses>
718 !if $(SECURE_BOOT_ENABLE) == TRUE
719 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
720 !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
721 !endif
722 }
723
724 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
725 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
726 UefiCpuPkg/CpuDxe/CpuDxe.inf
727 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
728 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
729 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
730 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
731 <LibraryClasses>
732 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
733 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
734 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
735 }
736 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
737 <LibraryClasses>
738 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
739 }
740 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
741 MdeModulePkg/Universal/Metronome/Metronome.inf
742 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
743 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
744 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
745 <LibraryClasses>
746 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
747 }
748 MdeModulePkg/Logo/LogoDxe.inf
749 MdeModulePkg/Application/UiApp/UiApp.inf {
750 <LibraryClasses>
751 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
752 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
753 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
754 }
755 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
756 <LibraryClasses>
757 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
758 }
759 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
760 OvmfPkg/Virtio10Dxe/Virtio10.inf
761 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
762 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
763 OvmfPkg/VirtioRngDxe/VirtioRng.inf
764 !if $(PVSCSI_ENABLE) == TRUE
765 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
766 !endif
767 !if $(MPT_SCSI_ENABLE) == TRUE
768 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
769 !endif
770 !if $(LSI_SCSI_ENABLE) == TRUE
771 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
772 !endif
773 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
774 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
775 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
776 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
777 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
778 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
779 <LibraryClasses>
780 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
781 }
782 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
783 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
784 <LibraryClasses>
785 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
786 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
787 }
788 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
789 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
790 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
791 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
792 FatPkg/EnhancedFatDxe/Fat.inf
793 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
794 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
795 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
796 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
797 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
798 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
799 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
800 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
801 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
802 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
803 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
804 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
805
806 #
807 # Serial Support
808 #
809 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
810
811 #
812 # SMBIOS Support
813 #
814 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
815 <LibraryClasses>
816 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
817 }
818 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
819
820 #
821 # ACPI Support
822 #
823 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
824 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
825 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
826 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
827 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
828
829 #
830 # Network Support
831 #
832 !include NetworkPkg/NetworkComponents.dsc.inc
833 !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
834
835 OvmfPkg/VirtioNetDxe/VirtioNet.inf
836
837 !if $(TOOL_CHAIN_TAG) != "XCODE5"
838 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
839 <PcdsFixedAtBuild>
840 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
841 }
842 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
843 <PcdsFixedAtBuild>
844 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
845 }
846 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
847 <PcdsFixedAtBuild>
848 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
849 }
850 !endif
851 ShellPkg/Application/Shell/Shell.inf {
852 <LibraryClasses>
853 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
854 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
855 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
856 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
857 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
858 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
859 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
860 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
861 !if $(NETWORK_IP6_ENABLE) == TRUE
862 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
863 !endif
864 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
865 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
866 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
867
868 <PcdsFixedAtBuild>
869 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
870 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
871 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
872 }
873
874 !if $(SECURE_BOOT_ENABLE) == TRUE
875 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
876 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
877 !endif
878
879 OvmfPkg/PlatformDxe/Platform.inf
880 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
881 <LibraryClasses>
882 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
883 }
884 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
885
886 !if $(SMM_REQUIRE) == TRUE
887 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
888 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
889 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
890
891 #
892 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
893 #
894 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
895
896 #
897 # SMM_CORE
898 #
899 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
900
901 #
902 # Privileged drivers (DXE_SMM_DRIVER modules)
903 #
904 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
905 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
906 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
907 <LibraryClasses>
908 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
909 }
910 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
911 <LibraryClasses>
912 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
913 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
914 }
915
916 #
917 # Variable driver stack (SMM)
918 #
919 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
920 <LibraryClasses>
921 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
922 }
923 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
924 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
925 <LibraryClasses>
926 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
927 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
928 }
929 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
930
931 !else
932
933 #
934 # Variable driver stack (non-SMM)
935 #
936 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
937 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
938 <LibraryClasses>
939 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
940 }
941 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
942 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
943 <LibraryClasses>
944 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
945 }
946 !endif
947
948 #
949 # TPM support
950 #
951 !include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc