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