]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgIa32.dsc
OvmfPkg: raise PcdShellFileOperationSize to 128KB
[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/DxeMemEncryptSevLib.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 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
314
315 [LibraryClasses.common.DXE_CORE]
316 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
317 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
318 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
319 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
320 !ifdef $(DEBUG_ON_SERIAL_PORT)
321 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
322 !else
323 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
324 !endif
325 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
326 !if $(SOURCE_DEBUG_ENABLE) == TRUE
327 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
328 !endif
329 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
330 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
331
332 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
333 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
334 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
335 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
336 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
337 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
338 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
339 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
340 !ifdef $(DEBUG_ON_SERIAL_PORT)
341 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
342 !else
343 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
344 !endif
345 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
346 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
347 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
348 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
349 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
350
351 [LibraryClasses.common.UEFI_DRIVER]
352 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
353 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
354 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
355 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
356 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
357 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
358 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
359 !ifdef $(DEBUG_ON_SERIAL_PORT)
360 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
361 !else
362 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
363 !endif
364 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
365 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
366
367 [LibraryClasses.common.DXE_DRIVER]
368 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
369 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
370 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
371 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
372 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
373 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
374 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
375 !ifdef $(DEBUG_ON_SERIAL_PORT)
376 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
377 !else
378 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
379 !endif
380 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
381 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
382 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
383 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
384 !if $(SMM_REQUIRE) == TRUE
385 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
386 !else
387 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
388 !endif
389 !if $(SOURCE_DEBUG_ENABLE) == TRUE
390 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
391 !endif
392 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
393 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
394 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
395 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
396 !if $(TPM_ENABLE) == TRUE
397 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
398 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
399 !endif
400
401 [LibraryClasses.common.UEFI_APPLICATION]
402 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
403 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
404 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
405 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
406 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
407 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
408 !ifdef $(DEBUG_ON_SERIAL_PORT)
409 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
410 !else
411 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
412 !endif
413 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
414
415 [LibraryClasses.common.DXE_SMM_DRIVER]
416 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
417 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
418 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
419 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
420 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
421 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
422 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
423 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
424 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
425 !ifdef $(DEBUG_ON_SERIAL_PORT)
426 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
427 !else
428 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
429 !endif
430 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
431 !if $(SOURCE_DEBUG_ENABLE) == TRUE
432 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
433 !endif
434 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
435 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
436
437 [LibraryClasses.common.SMM_CORE]
438 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
439 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
440 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
441 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
442 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
443 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
444 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
445 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
446 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
447 !ifdef $(DEBUG_ON_SERIAL_PORT)
448 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
449 !else
450 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
451 !endif
452 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
453
454 ################################################################################
455 #
456 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
457 #
458 ################################################################################
459 [PcdsFeatureFlag]
460 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
461 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
462 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
463 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
464 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
465 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
466 !ifdef $(CSM_ENABLE)
467 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
468 !endif
469 !if $(SMM_REQUIRE) == TRUE
470 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
471 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
472 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
473 !endif
474
475 [PcdsFixedAtBuild]
476 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
477 !if $(SMM_REQUIRE) == FALSE
478 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
479 !endif
480 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
481 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
482 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
483 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
484 !if $(NETWORK_TLS_ENABLE) == FALSE
485 # match PcdFlashNvStorageVariableSize purely for convenience
486 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
487 !endif
488 !endif
489 !if $(FD_SIZE_IN_KB) == 4096
490 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
491 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
492 !if $(NETWORK_TLS_ENABLE) == FALSE
493 # match PcdFlashNvStorageVariableSize purely for convenience
494 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
495 !endif
496 !endif
497 !if $(NETWORK_TLS_ENABLE) == TRUE
498 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
499 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
500 !endif
501
502 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
503 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
504 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
505
506 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
507
508 # DEBUG_INIT 0x00000001 // Initialization
509 # DEBUG_WARN 0x00000002 // Warnings
510 # DEBUG_LOAD 0x00000004 // Load events
511 # DEBUG_FS 0x00000008 // EFI File system
512 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
513 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
514 # DEBUG_INFO 0x00000040 // Informational debug messages
515 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
516 # DEBUG_VARIABLE 0x00000100 // Variable
517 # DEBUG_BM 0x00000400 // Boot Manager
518 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
519 # DEBUG_NET 0x00004000 // SNP Driver
520 # DEBUG_UNDI 0x00010000 // UNDI Driver
521 # DEBUG_LOADFILE 0x00020000 // LoadFile
522 # DEBUG_EVENT 0x00080000 // Event messages
523 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
524 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
525 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
526 # // significantly impact boot performance
527 # DEBUG_ERROR 0x80000000 // Error
528 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
529
530 !if $(SOURCE_DEBUG_ENABLE) == TRUE
531 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
532 !else
533 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
534 !endif
535
536 # This PCD is used to set the base address of the PCI express hierarchy. It
537 # is only consulted when OVMF runs on Q35. In that case it is programmed into
538 # the PCIEXBAR register.
539 #
540 # On Q35 machine types that QEMU intends to support in the long term, QEMU
541 # never lets the RAM below 4 GB exceed 2816 MB.
542 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
543
544 !if $(SOURCE_DEBUG_ENABLE) == TRUE
545 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
546 !endif
547
548 #
549 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
550 # best (please refer to git-blame for past updates). The values capture a set
551 # of BIN hints that made sense at a particular time, for some (now likely
552 # unknown) workloads / boot paths.
553 #
554 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
555 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
556 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
557 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
558 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
559
560 #
561 # Network Pcds
562 #
563 !include NetworkPkg/NetworkPcds.dsc.inc
564
565 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
566
567 !if $(SMM_REQUIRE) == TRUE
568 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
569 !endif
570
571 # IRQs 5, 9, 10, 11 are level-triggered
572 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
573
574 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
575 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
576
577 ################################################################################
578 #
579 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
580 #
581 ################################################################################
582
583 [PcdsDynamicDefault]
584 # only set when
585 # ($(SMM_REQUIRE) == FALSE)
586 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
587
588 !if $(SMM_REQUIRE) == FALSE
589 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
590 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
591 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
592 !endif
593 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
594 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
595 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
596 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
597 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
598 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
599 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
600 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
601 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
602
603 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
604
605 # Set video resolution for text setup.
606 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
607 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
608
609 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
610 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
611 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
612
613 # Noexec settings for DXE.
614 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
615
616 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
617 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
618 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
619
620 # Set memory encryption mask
621 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
622
623 # Set SEV-ES defaults
624 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
625 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
626 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
627
628 !if $(SMM_REQUIRE) == TRUE
629 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
630 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
631 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
632 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
633 !endif
634
635 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
636
637 !if $(TPM_ENABLE) == TRUE
638 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
639 !endif
640
641 # IPv4 and IPv6 PXE Boot support.
642 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
643 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
644
645 [PcdsDynamicHii]
646 !if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE
647 gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
648 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
649 !endif
650
651 ################################################################################
652 #
653 # Components Section - list of all EDK II Modules needed by this Platform.
654 #
655 ################################################################################
656 [Components]
657 OvmfPkg/ResetVector/ResetVector.inf
658
659 #
660 # SEC Phase modules
661 #
662 OvmfPkg/Sec/SecMain.inf {
663 <LibraryClasses>
664 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
665 }
666
667 #
668 # PEI Phase modules
669 #
670 MdeModulePkg/Core/Pei/PeiMain.inf
671 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
672 <LibraryClasses>
673 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
674 }
675 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
676 <LibraryClasses>
677 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
678 }
679 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
680 <LibraryClasses>
681 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
682 }
683 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
684
685 OvmfPkg/PlatformPei/PlatformPei.inf
686 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
687 <LibraryClasses>
688 !if $(SMM_REQUIRE) == TRUE
689 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
690 !endif
691 }
692 !if $(SMM_REQUIRE) == TRUE
693 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
694 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
695 OvmfPkg/SmmAccess/SmmAccessPei.inf
696 !endif
697 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
698
699 !if $(TPM_ENABLE) == TRUE
700 OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
701 SecurityPkg/Tcg/TcgPei/TcgPei.inf
702 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
703 <LibraryClasses>
704 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
705 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
706 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
707 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
708 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
709 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
710 }
711 !endif
712
713 #
714 # DXE Phase modules
715 #
716 MdeModulePkg/Core/Dxe/DxeMain.inf {
717 <LibraryClasses>
718 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
719 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
720 }
721
722 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
723 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
724 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
725 <LibraryClasses>
726 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
727 }
728
729 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
730
731 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
732 <LibraryClasses>
733 !if $(SECURE_BOOT_ENABLE) == TRUE
734 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
735 !endif
736 !if $(TPM_ENABLE) == TRUE
737 NULL|SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
738 NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
739 !endif
740 }
741
742 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
743 OvmfPkg/8259InterruptControllerDxe/8259.inf
744 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
745 UefiCpuPkg/CpuDxe/CpuDxe.inf
746 OvmfPkg/8254TimerDxe/8254Timer.inf
747 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
748 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
749 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
750 <LibraryClasses>
751 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
752 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
753 }
754 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
755 <LibraryClasses>
756 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
757 }
758 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
759 MdeModulePkg/Universal/Metronome/Metronome.inf
760 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
761 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
762 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
763 <LibraryClasses>
764 !ifdef $(CSM_ENABLE)
765 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
766 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
767 !endif
768 }
769 MdeModulePkg/Logo/LogoDxe.inf
770 MdeModulePkg/Application/UiApp/UiApp.inf {
771 <LibraryClasses>
772 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
773 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
774 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
775 !ifdef $(CSM_ENABLE)
776 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
777 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
778 !endif
779 }
780 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf
781 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
782 OvmfPkg/Virtio10Dxe/Virtio10.inf
783 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
784 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
785 OvmfPkg/VirtioRngDxe/VirtioRng.inf
786 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
787 OvmfPkg/XenBusDxe/XenBusDxe.inf
788 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
789 !if $(PVSCSI_ENABLE) == TRUE
790 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
791 !endif
792 !if $(MPT_SCSI_ENABLE) == TRUE
793 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
794 !endif
795 !if $(LSI_SCSI_ENABLE) == TRUE
796 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
797 !endif
798 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
799 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
800 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
801 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
802 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
803 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
804 <LibraryClasses>
805 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
806 }
807 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
808 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
809 <LibraryClasses>
810 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
811 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
812 }
813 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
814 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
815 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
816 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
817 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
818 FatPkg/EnhancedFatDxe/Fat.inf
819 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
820 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
821 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
822 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
823 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
824 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
825 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
826 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
827 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
828 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
829 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
830 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
831
832 !ifndef $(CSM_ENABLE)
833 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
834 !endif
835 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
836 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
837
838 #
839 # ISA Support
840 #
841 OvmfPkg/SioBusDxe/SioBusDxe.inf
842 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
843 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
844
845 #
846 # SMBIOS Support
847 #
848 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
849 <LibraryClasses>
850 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
851 }
852 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
853
854 #
855 # ACPI Support
856 #
857 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
858 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
859 OvmfPkg/AcpiTables/AcpiTables.inf
860 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
861 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
862 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
863
864 #
865 # Network Support
866 #
867 !include NetworkPkg/NetworkComponents.dsc.inc
868
869 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {
870 <LibraryClasses>
871 NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf
872 }
873
874 !if $(NETWORK_TLS_ENABLE) == TRUE
875 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
876 <LibraryClasses>
877 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
878 }
879 !endif
880 OvmfPkg/VirtioNetDxe/VirtioNet.inf
881
882 #
883 # Usb Support
884 #
885 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
886 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
887 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
888 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
889 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
890 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
891
892 !ifdef $(CSM_ENABLE)
893 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
894 <LibraryClasses>
895 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
896 }
897 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
898 OvmfPkg/Csm/Csm16/Csm16.inf
899 !endif
900
901 !if $(TOOL_CHAIN_TAG) != "XCODE5"
902 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
903 <PcdsFixedAtBuild>
904 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
905 }
906 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
907 <PcdsFixedAtBuild>
908 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
909 }
910 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
911 <PcdsFixedAtBuild>
912 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
913 }
914 !endif
915 ShellPkg/Application/Shell/Shell.inf {
916 <LibraryClasses>
917 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
918 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
919 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
920 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
921 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
922 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
923 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
924 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
925 !if $(NETWORK_IP6_ENABLE) == TRUE
926 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
927 !endif
928 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
929 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
930 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
931
932 <PcdsFixedAtBuild>
933 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
934 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
935 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
936 }
937
938 !if $(SECURE_BOOT_ENABLE) == TRUE
939 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
940 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
941 !endif
942
943 OvmfPkg/PlatformDxe/Platform.inf
944 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
945
946 !if $(SMM_REQUIRE) == TRUE
947 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
948 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
949 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
950
951 #
952 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
953 #
954 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
955
956 #
957 # SMM_CORE
958 #
959 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
960
961 #
962 # Privileged drivers (DXE_SMM_DRIVER modules)
963 #
964 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
965 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
966 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
967 <LibraryClasses>
968 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
969 }
970 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
971 <LibraryClasses>
972 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
973 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
974 }
975
976 #
977 # Variable driver stack (SMM)
978 #
979 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
980 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
981 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
982 <LibraryClasses>
983 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
984 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
985 }
986 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
987
988 !else
989
990 #
991 # Variable driver stack (non-SMM)
992 #
993 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
994 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
995 <LibraryClasses>
996 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
997 }
998 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
999 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1000 <LibraryClasses>
1001 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1002 }
1003 !endif
1004
1005 #
1006 # TPM support
1007 #
1008 !if $(TPM_ENABLE) == TRUE
1009 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
1010 <LibraryClasses>
1011 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
1012 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
1013 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
1014 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
1015 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
1016 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
1017 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
1018 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
1019 }
1020 !if $(TPM_CONFIG_ENABLE) == TRUE
1021 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
1022 !endif
1023 SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {
1024 <LibraryClasses>
1025 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
1026 }
1027 !endif
1028
1029 !if $(LOAD_X64_ON_IA32_ENABLE) == TRUE
1030 OvmfPkg/CompatImageLoaderDxe/CompatImageLoaderDxe.inf
1031 !endif