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