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