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