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