]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgIa32.dsc
OvmfPkg/VmgExitLib: Add support for INVD NAE events
[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 !if $(SMM_REQUIRE) == TRUE
611 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
612 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
613 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
614 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
615 !endif
616
617 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
618
619 !if $(TPM_ENABLE) == TRUE
620 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
621 !endif
622
623 # IPv4 and IPv6 PXE Boot support.
624 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
625 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
626
627 [PcdsDynamicHii]
628 !if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE
629 gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
630 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
631 !endif
632
633 ################################################################################
634 #
635 # Components Section - list of all EDK II Modules needed by this Platform.
636 #
637 ################################################################################
638 [Components]
639 OvmfPkg/ResetVector/ResetVector.inf
640
641 #
642 # SEC Phase modules
643 #
644 OvmfPkg/Sec/SecMain.inf {
645 <LibraryClasses>
646 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
647 }
648
649 #
650 # PEI Phase modules
651 #
652 MdeModulePkg/Core/Pei/PeiMain.inf
653 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
654 <LibraryClasses>
655 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
656 }
657 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
658 <LibraryClasses>
659 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
660 }
661 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
662 <LibraryClasses>
663 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
664 }
665 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
666
667 OvmfPkg/PlatformPei/PlatformPei.inf
668 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
669 <LibraryClasses>
670 !if $(SMM_REQUIRE) == TRUE
671 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
672 !endif
673 }
674 !if $(SMM_REQUIRE) == TRUE
675 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
676 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
677 OvmfPkg/SmmAccess/SmmAccessPei.inf
678 !endif
679 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
680
681 !if $(TPM_ENABLE) == TRUE
682 OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
683 SecurityPkg/Tcg/TcgPei/TcgPei.inf
684 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
685 <LibraryClasses>
686 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
687 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
688 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
689 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
690 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
691 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
692 }
693 !endif
694
695 #
696 # DXE Phase modules
697 #
698 MdeModulePkg/Core/Dxe/DxeMain.inf {
699 <LibraryClasses>
700 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
701 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
702 }
703
704 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
705 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
706 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
707 <LibraryClasses>
708 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
709 }
710
711 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
712
713 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
714 <LibraryClasses>
715 !if $(SECURE_BOOT_ENABLE) == TRUE
716 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
717 !endif
718 !if $(TPM_ENABLE) == TRUE
719 NULL|SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
720 NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
721 !endif
722 }
723
724 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
725 OvmfPkg/8259InterruptControllerDxe/8259.inf
726 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
727 UefiCpuPkg/CpuDxe/CpuDxe.inf
728 OvmfPkg/8254TimerDxe/8254Timer.inf
729 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
730 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
731 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
732 <LibraryClasses>
733 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
734 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
735 }
736 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
737 <LibraryClasses>
738 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
739 }
740 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
741 MdeModulePkg/Universal/Metronome/Metronome.inf
742 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
743 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
744 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
745 <LibraryClasses>
746 !ifdef $(CSM_ENABLE)
747 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
748 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
749 !endif
750 }
751 MdeModulePkg/Logo/LogoDxe.inf
752 MdeModulePkg/Application/UiApp/UiApp.inf {
753 <LibraryClasses>
754 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
755 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
756 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
757 !ifdef $(CSM_ENABLE)
758 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
759 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
760 !endif
761 }
762 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf
763 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
764 OvmfPkg/Virtio10Dxe/Virtio10.inf
765 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
766 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
767 OvmfPkg/VirtioRngDxe/VirtioRng.inf
768 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
769 OvmfPkg/XenBusDxe/XenBusDxe.inf
770 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
771 !if $(PVSCSI_ENABLE) == TRUE
772 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
773 !endif
774 !if $(MPT_SCSI_ENABLE) == TRUE
775 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
776 !endif
777 !if $(LSI_SCSI_ENABLE) == TRUE
778 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
779 !endif
780 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
781 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
782 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
783 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
784 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
785 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
786 <LibraryClasses>
787 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
788 }
789 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
790 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
791 <LibraryClasses>
792 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
793 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
794 }
795 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
796 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
797 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
798 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
799 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
800 FatPkg/EnhancedFatDxe/Fat.inf
801 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
802 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
803 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
804 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
805 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
806 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
807 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
808 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
809 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
810 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
811 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
812
813 !ifndef $(CSM_ENABLE)
814 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
815 !endif
816 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
817 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
818
819 #
820 # ISA Support
821 #
822 OvmfPkg/SioBusDxe/SioBusDxe.inf
823 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
824 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
825
826 #
827 # SMBIOS Support
828 #
829 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
830 <LibraryClasses>
831 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
832 }
833 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
834
835 #
836 # ACPI Support
837 #
838 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
839 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
840 OvmfPkg/AcpiTables/AcpiTables.inf
841 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
842 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
843 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
844
845 #
846 # Network Support
847 #
848 !include NetworkPkg/NetworkComponents.dsc.inc
849
850 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {
851 <LibraryClasses>
852 NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf
853 }
854
855 !if $(NETWORK_TLS_ENABLE) == TRUE
856 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
857 <LibraryClasses>
858 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
859 }
860 !endif
861 OvmfPkg/VirtioNetDxe/VirtioNet.inf
862
863 #
864 # Usb Support
865 #
866 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
867 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
868 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
869 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
870 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
871 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
872
873 !ifdef $(CSM_ENABLE)
874 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
875 <LibraryClasses>
876 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
877 }
878 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
879 OvmfPkg/Csm/Csm16/Csm16.inf
880 !endif
881
882 !if $(TOOL_CHAIN_TAG) != "XCODE5"
883 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
884 <PcdsFixedAtBuild>
885 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
886 }
887 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
888 <PcdsFixedAtBuild>
889 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
890 }
891 !endif
892 ShellPkg/Application/Shell/Shell.inf {
893 <LibraryClasses>
894 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
895 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
896 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
897 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
898 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
899 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
900 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
901 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
902 !if $(NETWORK_IP6_ENABLE) == TRUE
903 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
904 !endif
905 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
906 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
907 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
908
909 <PcdsFixedAtBuild>
910 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
911 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
912 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
913 }
914
915 !if $(SECURE_BOOT_ENABLE) == TRUE
916 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
917 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
918 !endif
919
920 OvmfPkg/PlatformDxe/Platform.inf
921 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
922
923 !if $(SMM_REQUIRE) == TRUE
924 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
925 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
926 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
927
928 #
929 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
930 #
931 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
932
933 #
934 # SMM_CORE
935 #
936 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
937
938 #
939 # Privileged drivers (DXE_SMM_DRIVER modules)
940 #
941 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
942 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
943 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
944 <LibraryClasses>
945 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
946 }
947 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
948 <LibraryClasses>
949 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
950 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
951 }
952
953 #
954 # Variable driver stack (SMM)
955 #
956 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
957 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
958 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
959 <LibraryClasses>
960 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
961 }
962 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
963
964 !else
965
966 #
967 # Variable driver stack (non-SMM)
968 #
969 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
970 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
971 <LibraryClasses>
972 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
973 }
974 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
975 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
976 <LibraryClasses>
977 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
978 }
979 !endif
980
981 #
982 # TPM support
983 #
984 !if $(TPM_ENABLE) == TRUE
985 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
986 <LibraryClasses>
987 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
988 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
989 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
990 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
991 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
992 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
993 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
994 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
995 }
996 !if $(TPM_CONFIG_ENABLE) == TRUE
997 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
998 !endif
999 SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {
1000 <LibraryClasses>
1001 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
1002 }
1003 !endif
1004
1005 !if $(LOAD_X64_ON_IA32_ENABLE) == TRUE
1006 OvmfPkg/CompatImageLoaderDxe/CompatImageLoaderDxe.inf
1007 !endif