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