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