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