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