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