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