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