]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgIa32X64.dsc
OvmfPkg/OvmfPkgIa32X64.dsc: Enable MD5 while enable iSCSI
[mirror_edk2.git] / OvmfPkg / OvmfPkgIa32X64.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/Ovmf3264
23 SUPPORTED_ARCHITECTURES = IA32|X64
24 BUILD_TARGETS = NOOPT|DEBUG|RELEASE
25 SKUID_IDENTIFIER = DEFAULT
26 FLASH_DEFINITION = OvmfPkg/OvmfPkgIa32X64.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|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.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|TRUE
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 [PcdsFixedAtBuild.IA32]
550 #
551 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
552 # best (please refer to git-blame for past updates). The values capture a set
553 # of BIN hints that made sense at a particular time, for some (now likely
554 # unknown) workloads / boot paths.
555 #
556 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
557 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
558 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
559 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
560 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
561
562 [PcdsFixedAtBuild.X64]
563 #
564 # Network Pcds
565 #
566 !include NetworkPkg/NetworkPcds.dsc.inc
567
568 !if $(SMM_REQUIRE) == TRUE
569 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
570 !endif
571
572 # IRQs 5, 9, 10, 11 are level-triggered
573 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
574
575 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
576 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
577
578 ################################################################################
579 #
580 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
581 #
582 ################################################################################
583
584 [PcdsDynamicDefault]
585 # only set when
586 # ($(SMM_REQUIRE) == FALSE)
587 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
588
589 !if $(SMM_REQUIRE) == FALSE
590 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
591 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
592 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
593 !endif
594 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
595 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
596 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
597 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
598 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
599 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
600 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
601 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
602 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
603 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
604 !ifdef $(CSM_ENABLE)
605 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
606 !else
607 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
608 !endif
609
610 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
611
612 # Set video resolution for text setup.
613 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
614 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
615
616 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
617 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
618 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
619
620 # Noexec settings for DXE.
621 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
622
623 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
624 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
625 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
626
627 # Set memory encryption mask
628 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
629
630 # Set SEV-ES defaults
631 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
632 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
633 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
634
635 !if $(SMM_REQUIRE) == TRUE
636 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
637 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
638 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
639 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
640 !endif
641
642 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
643
644 !if $(TPM_ENABLE) == TRUE
645 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
646 !endif
647
648 [PcdsDynamicDefault.X64]
649 # IPv4 and IPv6 PXE Boot support.
650 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
651 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
652
653 [PcdsDynamicHii]
654 !if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE
655 gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
656 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
657 !endif
658
659 ################################################################################
660 #
661 # Components Section - list of all EDK II Modules needed by this Platform.
662 #
663 ################################################################################
664 [Components.IA32]
665 OvmfPkg/ResetVector/ResetVector.inf
666
667 #
668 # SEC Phase modules
669 #
670 OvmfPkg/Sec/SecMain.inf {
671 <LibraryClasses>
672 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
673 }
674
675 #
676 # PEI Phase modules
677 #
678 MdeModulePkg/Core/Pei/PeiMain.inf
679 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
680 <LibraryClasses>
681 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
682 }
683 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
684 <LibraryClasses>
685 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
686 }
687 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
688 <LibraryClasses>
689 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
690 }
691 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
692
693 OvmfPkg/PlatformPei/PlatformPei.inf
694 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
695 <LibraryClasses>
696 !if $(SMM_REQUIRE) == TRUE
697 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
698 !endif
699 }
700 !if $(SMM_REQUIRE) == TRUE
701 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
702 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
703 OvmfPkg/SmmAccess/SmmAccessPei.inf
704 !endif
705 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
706
707 !if $(TPM_ENABLE) == TRUE
708 OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
709 SecurityPkg/Tcg/TcgPei/TcgPei.inf
710 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
711 <LibraryClasses>
712 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
713 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
714 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
715 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
716 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
717 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
718 }
719 !endif
720
721 [Components.X64]
722 #
723 # DXE Phase modules
724 #
725 MdeModulePkg/Core/Dxe/DxeMain.inf {
726 <LibraryClasses>
727 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
728 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
729 }
730
731 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
732 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
733 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
734 <LibraryClasses>
735 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
736 }
737
738 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
739
740 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
741 <LibraryClasses>
742 !if $(SECURE_BOOT_ENABLE) == TRUE
743 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
744 !endif
745 !if $(TPM_ENABLE) == TRUE
746 NULL|SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
747 NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
748 !endif
749 }
750
751 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
752 OvmfPkg/8259InterruptControllerDxe/8259.inf
753 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
754 UefiCpuPkg/CpuDxe/CpuDxe.inf
755 OvmfPkg/8254TimerDxe/8254Timer.inf
756 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
757 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
758 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
759 <LibraryClasses>
760 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
761 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
762 }
763 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
764 <LibraryClasses>
765 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
766 }
767 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
768 MdeModulePkg/Universal/Metronome/Metronome.inf
769 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
770 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
771 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
772 <LibraryClasses>
773 !ifdef $(CSM_ENABLE)
774 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
775 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
776 !endif
777 }
778 MdeModulePkg/Logo/LogoDxe.inf
779 MdeModulePkg/Application/UiApp/UiApp.inf {
780 <LibraryClasses>
781 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
782 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
783 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
784 !ifdef $(CSM_ENABLE)
785 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
786 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
787 !endif
788 }
789 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf
790 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
791 OvmfPkg/Virtio10Dxe/Virtio10.inf
792 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
793 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
794 OvmfPkg/VirtioRngDxe/VirtioRng.inf
795 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
796 OvmfPkg/XenBusDxe/XenBusDxe.inf
797 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
798 !if $(PVSCSI_ENABLE) == TRUE
799 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
800 !endif
801 !if $(MPT_SCSI_ENABLE) == TRUE
802 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
803 !endif
804 !if $(LSI_SCSI_ENABLE) == TRUE
805 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
806 !endif
807 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
808 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
809 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
810 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
811 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
812 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
813 <LibraryClasses>
814 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
815 }
816 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
817 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
818 <LibraryClasses>
819 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
820 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
821 }
822 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
823 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
824 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
825 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
826 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
827 FatPkg/EnhancedFatDxe/Fat.inf
828 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
829 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
830 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
831 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
832 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
833 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
834 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
835 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
836 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
837 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
838 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
839
840 !ifndef $(CSM_ENABLE)
841 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
842 !endif
843 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
844 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
845
846 #
847 # ISA Support
848 #
849 OvmfPkg/SioBusDxe/SioBusDxe.inf
850 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
851 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
852
853 #
854 # SMBIOS Support
855 #
856 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
857 <LibraryClasses>
858 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
859 }
860 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
861
862 #
863 # ACPI Support
864 #
865 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
866 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
867 OvmfPkg/AcpiTables/AcpiTables.inf
868 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
869 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
870 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
871
872 #
873 # Network Support
874 #
875 !include NetworkPkg/NetworkComponents.dsc.inc
876
877 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {
878 <LibraryClasses>
879 NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf
880 }
881
882 !if $(NETWORK_TLS_ENABLE) == TRUE
883 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
884 <LibraryClasses>
885 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
886 }
887 !endif
888 OvmfPkg/VirtioNetDxe/VirtioNet.inf
889
890 #
891 # Usb Support
892 #
893 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
894 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
895 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
896 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
897 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
898 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
899
900 !ifdef $(CSM_ENABLE)
901 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
902 <LibraryClasses>
903 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
904 }
905 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
906 OvmfPkg/Csm/Csm16/Csm16.inf
907 !endif
908
909 !if $(TOOL_CHAIN_TAG) != "XCODE5"
910 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
911 <PcdsFixedAtBuild>
912 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
913 }
914 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
915 <PcdsFixedAtBuild>
916 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
917 }
918 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
919 <PcdsFixedAtBuild>
920 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
921 }
922 !endif
923 ShellPkg/Application/Shell/Shell.inf {
924 <LibraryClasses>
925 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
926 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
927 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
928 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
929 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
930 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
931 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
932 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
933 !if $(NETWORK_IP6_ENABLE) == TRUE
934 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
935 !endif
936 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
937 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
938 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
939
940 <PcdsFixedAtBuild>
941 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
942 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
943 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
944 }
945
946 !if $(SECURE_BOOT_ENABLE) == TRUE
947 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
948 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
949 !endif
950
951 OvmfPkg/PlatformDxe/Platform.inf
952 OvmfPkg/AmdSevDxe/AmdSevDxe.inf
953 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
954
955 !if $(SMM_REQUIRE) == TRUE
956 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
957 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
958 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
959
960 #
961 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
962 #
963 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
964
965 #
966 # SMM_CORE
967 #
968 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
969
970 #
971 # Privileged drivers (DXE_SMM_DRIVER modules)
972 #
973 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
974 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
975 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
976 <LibraryClasses>
977 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
978 }
979 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
980 <LibraryClasses>
981 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
982 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
983 }
984
985 #
986 # Variable driver stack (SMM)
987 #
988 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
989 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
990 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
991 <LibraryClasses>
992 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
993 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
994 }
995 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
996
997 !else
998
999 #
1000 # Variable driver stack (non-SMM)
1001 #
1002 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1003 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1004 <LibraryClasses>
1005 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1006 }
1007 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1008 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1009 <LibraryClasses>
1010 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1011 }
1012 !endif
1013
1014 #
1015 # TPM support
1016 #
1017 !if $(TPM_ENABLE) == TRUE
1018 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
1019 <LibraryClasses>
1020 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
1021 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
1022 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
1023 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
1024 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
1025 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
1026 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
1027 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
1028 }
1029 !if $(TPM_CONFIG_ENABLE) == TRUE
1030 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
1031 !endif
1032 SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {
1033 <LibraryClasses>
1034 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
1035 }
1036 !endif