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