]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgX64.dsc
OvmfPkg/VmgExitLib: Support nested #VCs
[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 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
133 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
134 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
135 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
136 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
137 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
138 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
139 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
140 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
141 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
142 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
143 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
144 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
145 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
146 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
147 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
148 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
149 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
150 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
151 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
152 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
153 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
154 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
155 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
156 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
157 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
158 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
159 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
160 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
161 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
162 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
163 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
164 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
165 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
166 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
167 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
168 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
169 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
170 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
171 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
172 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
173 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
174 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
175 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
176 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
177 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
178 !if $(SMM_REQUIRE) == FALSE
179 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
180 !endif
181 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
182 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
183
184 !if $(SOURCE_DEBUG_ENABLE) == TRUE
185 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
186 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
187 !else
188 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
189 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
190 !endif
191
192 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
193 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
194
195 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
196 !if $(NETWORK_TLS_ENABLE) == TRUE
197 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
198 !else
199 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
200 !endif
201 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
202
203 !if $(SECURE_BOOT_ENABLE) == TRUE
204 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
205 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
206 !else
207 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
208 !endif
209 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
210 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
211 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
212
213
214 #
215 # Network libraries
216 #
217 !include NetworkPkg/NetworkLibs.dsc.inc
218
219 !if $(NETWORK_TLS_ENABLE) == TRUE
220 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
221 !endif
222
223 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
224 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
225 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
226 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
227 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
228 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
229 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
230
231 !if $(TPM_ENABLE) == TRUE
232 Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
233 Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
234 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
235 Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
236 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
237 !else
238 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
239 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
240 !endif
241
242 [LibraryClasses.common]
243 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
244 VmgExitLib|OvmfPkg/Library/VmgExitLib/VmgExitLib.inf
245
246 [LibraryClasses.common.SEC]
247 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
248 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
249 !ifdef $(DEBUG_ON_SERIAL_PORT)
250 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
251 !else
252 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
253 !endif
254 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
255 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
256 !if $(SOURCE_DEBUG_ENABLE) == TRUE
257 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
258 !endif
259 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
260 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
261 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
262 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
263 !if $(TOOL_CHAIN_TAG) == "XCODE5"
264 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
265 !else
266 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
267 !endif
268 VmgExitLib|OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf
269
270 [LibraryClasses.common.PEI_CORE]
271 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
272 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
273 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
274 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
275 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
276 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
277 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
278 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
279 !ifdef $(DEBUG_ON_SERIAL_PORT)
280 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
281 !else
282 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
283 !endif
284 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
285
286 [LibraryClasses.common.PEIM]
287 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
288 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
289 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
290 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
291 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
292 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
293 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
294 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
295 !ifdef $(DEBUG_ON_SERIAL_PORT)
296 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
297 !else
298 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
299 !endif
300 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
301 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
302 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
303 !if $(SOURCE_DEBUG_ENABLE) == TRUE
304 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
305 !endif
306 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
307 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
308 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
309 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
310 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
311
312 !if $(TPM_ENABLE) == TRUE
313 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
314 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
315 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
316 !endif
317
318 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
319
320 [LibraryClasses.common.DXE_CORE]
321 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
322 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
323 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
324 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
325 !ifdef $(DEBUG_ON_SERIAL_PORT)
326 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
327 !else
328 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
329 !endif
330 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
331 !if $(SOURCE_DEBUG_ENABLE) == TRUE
332 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
333 !endif
334 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
335 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
336
337 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
338 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
339 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
340 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
341 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
342 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
343 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
344 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
345 !ifdef $(DEBUG_ON_SERIAL_PORT)
346 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
347 !else
348 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
349 !endif
350 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
351 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
352 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
353 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
354 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
355
356 [LibraryClasses.common.UEFI_DRIVER]
357 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
358 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
359 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
360 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
361 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
362 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
363 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
364 !ifdef $(DEBUG_ON_SERIAL_PORT)
365 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
366 !else
367 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
368 !endif
369 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
370 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
371
372 [LibraryClasses.common.DXE_DRIVER]
373 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
374 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
375 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
376 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
377 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
378 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
379 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
380 !ifdef $(DEBUG_ON_SERIAL_PORT)
381 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
382 !else
383 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
384 !endif
385 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
386 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
387 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
388 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
389 !if $(SMM_REQUIRE) == TRUE
390 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
391 !else
392 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
393 !endif
394 !if $(SOURCE_DEBUG_ENABLE) == TRUE
395 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
396 !endif
397 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
398 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
399 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
400 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
401 !if $(TPM_ENABLE) == TRUE
402 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
403 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
404 !endif
405
406 [LibraryClasses.common.UEFI_APPLICATION]
407 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
408 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
409 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
410 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
411 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
412 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
413 !ifdef $(DEBUG_ON_SERIAL_PORT)
414 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
415 !else
416 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
417 !endif
418 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
419
420 [LibraryClasses.common.DXE_SMM_DRIVER]
421 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
422 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
423 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
424 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
425 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
426 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
427 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
428 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
429 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
430 !ifdef $(DEBUG_ON_SERIAL_PORT)
431 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
432 !else
433 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
434 !endif
435 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
436 !if $(SOURCE_DEBUG_ENABLE) == TRUE
437 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
438 !endif
439 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
440 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
441
442 [LibraryClasses.common.SMM_CORE]
443 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
444 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
445 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
446 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
447 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
448 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
449 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
450 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
451 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
452 !ifdef $(DEBUG_ON_SERIAL_PORT)
453 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
454 !else
455 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
456 !endif
457 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
458
459 ################################################################################
460 #
461 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
462 #
463 ################################################################################
464 [PcdsFeatureFlag]
465 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
466 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
467 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
468 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
469 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
470 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
471 !ifdef $(CSM_ENABLE)
472 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
473 !endif
474 !if $(SMM_REQUIRE) == TRUE
475 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
476 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
477 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
478 !endif
479
480 [PcdsFixedAtBuild]
481 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
482 !if $(SMM_REQUIRE) == FALSE
483 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
484 !endif
485 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
486 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
487 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
488 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
489 !if $(NETWORK_TLS_ENABLE) == FALSE
490 # match PcdFlashNvStorageVariableSize purely for convenience
491 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
492 !endif
493 !endif
494 !if $(FD_SIZE_IN_KB) == 4096
495 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
496 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
497 !if $(NETWORK_TLS_ENABLE) == FALSE
498 # match PcdFlashNvStorageVariableSize purely for convenience
499 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
500 !endif
501 !endif
502 !if $(NETWORK_TLS_ENABLE) == TRUE
503 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
504 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
505 !endif
506
507 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
508 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
509 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
510
511 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
512
513 # DEBUG_INIT 0x00000001 // Initialization
514 # DEBUG_WARN 0x00000002 // Warnings
515 # DEBUG_LOAD 0x00000004 // Load events
516 # DEBUG_FS 0x00000008 // EFI File system
517 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
518 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
519 # DEBUG_INFO 0x00000040 // Informational debug messages
520 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
521 # DEBUG_VARIABLE 0x00000100 // Variable
522 # DEBUG_BM 0x00000400 // Boot Manager
523 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
524 # DEBUG_NET 0x00004000 // SNP Driver
525 # DEBUG_UNDI 0x00010000 // UNDI Driver
526 # DEBUG_LOADFILE 0x00020000 // LoadFile
527 # DEBUG_EVENT 0x00080000 // Event messages
528 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
529 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
530 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
531 # // significantly impact boot performance
532 # DEBUG_ERROR 0x80000000 // Error
533 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
534
535 !if $(SOURCE_DEBUG_ENABLE) == TRUE
536 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
537 !else
538 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
539 !endif
540
541 # This PCD is used to set the base address of the PCI express hierarchy. It
542 # is only consulted when OVMF runs on Q35. In that case it is programmed into
543 # the PCIEXBAR register.
544 #
545 # On Q35 machine types that QEMU intends to support in the long term, QEMU
546 # never lets the RAM below 4 GB exceed 2816 MB.
547 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
548
549 !if $(SOURCE_DEBUG_ENABLE) == TRUE
550 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
551 !endif
552
553 #
554 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
555 # best (please refer to git-blame for past updates). The values capture a set
556 # of BIN hints that made sense at a particular time, for some (now likely
557 # unknown) workloads / boot paths.
558 #
559 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
560 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
561 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
562 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
563 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
564
565 #
566 # Network Pcds
567 #
568 !include NetworkPkg/NetworkPcds.dsc.inc
569
570 !if $(SMM_REQUIRE) == TRUE
571 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
572 !endif
573
574 # IRQs 5, 9, 10, 11 are level-triggered
575 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
576
577 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
578 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
579
580 ################################################################################
581 #
582 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
583 #
584 ################################################################################
585
586 [PcdsDynamicDefault]
587 # only set when
588 # ($(SMM_REQUIRE) == FALSE)
589 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
590
591 !if $(SMM_REQUIRE) == FALSE
592 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
593 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
594 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
595 !endif
596 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
597 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
598 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
599 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
600 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
601 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
602 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
603 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
604 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
605 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
606 !ifdef $(CSM_ENABLE)
607 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
608 !else
609 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
610 !endif
611
612 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
613
614 # Set video resolution for text setup.
615 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
616 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
617
618 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
619 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
620 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
621
622 # Noexec settings for DXE.
623 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
624
625 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
626 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
627 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
628
629 # Set memory encryption mask
630 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
631
632 # Set SEV-ES defaults
633 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
634 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
635 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
636
637 !if $(SMM_REQUIRE) == TRUE
638 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
639 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
640 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
641 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
642 !endif
643
644 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
645
646 !if $(TPM_ENABLE) == TRUE
647 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
648 !endif
649
650 # IPv4 and IPv6 PXE Boot support.
651 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
652 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
653
654 [PcdsDynamicHii]
655 !if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE
656 gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
657 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
658 !endif
659
660 ################################################################################
661 #
662 # Components Section - list of all EDK II Modules needed by this Platform.
663 #
664 ################################################################################
665 [Components]
666 OvmfPkg/ResetVector/ResetVector.inf
667
668 #
669 # SEC Phase modules
670 #
671 OvmfPkg/Sec/SecMain.inf {
672 <LibraryClasses>
673 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
674 }
675
676 #
677 # PEI Phase modules
678 #
679 MdeModulePkg/Core/Pei/PeiMain.inf
680 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
681 <LibraryClasses>
682 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
683 }
684 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
685 <LibraryClasses>
686 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
687 }
688 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
689 <LibraryClasses>
690 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
691 }
692 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
693
694 OvmfPkg/PlatformPei/PlatformPei.inf
695 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
696 <LibraryClasses>
697 !if $(SMM_REQUIRE) == TRUE
698 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
699 !endif
700 }
701 !if $(SMM_REQUIRE) == TRUE
702 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
703 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
704 OvmfPkg/SmmAccess/SmmAccessPei.inf
705 !endif
706 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
707
708 !if $(TPM_ENABLE) == TRUE
709 OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
710 SecurityPkg/Tcg/TcgPei/TcgPei.inf
711 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
712 <LibraryClasses>
713 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
714 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
715 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
716 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
717 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
718 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
719 }
720 !endif
721
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 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
830 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
831 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
832 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
833 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
834 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
835 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
836 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
837 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
838 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
839 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
840
841 !ifndef $(CSM_ENABLE)
842 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
843 !endif
844 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
845 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
846
847 #
848 # ISA Support
849 #
850 OvmfPkg/SioBusDxe/SioBusDxe.inf
851 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
852 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
853
854 #
855 # SMBIOS Support
856 #
857 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
858 <LibraryClasses>
859 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
860 }
861 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
862
863 #
864 # ACPI Support
865 #
866 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
867 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
868 OvmfPkg/AcpiTables/AcpiTables.inf
869 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
870 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
871 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
872
873 #
874 # Network Support
875 #
876 !include NetworkPkg/NetworkComponents.dsc.inc
877
878 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {
879 <LibraryClasses>
880 NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf
881 }
882
883 !if $(NETWORK_TLS_ENABLE) == TRUE
884 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
885 <LibraryClasses>
886 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
887 }
888 !endif
889 OvmfPkg/VirtioNetDxe/VirtioNet.inf
890
891 #
892 # Usb Support
893 #
894 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
895 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
896 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
897 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
898 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
899 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
900
901 !ifdef $(CSM_ENABLE)
902 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
903 <LibraryClasses>
904 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
905 }
906 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
907 OvmfPkg/Csm/Csm16/Csm16.inf
908 !endif
909
910 !if $(TOOL_CHAIN_TAG) != "XCODE5"
911 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
912 <PcdsFixedAtBuild>
913 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
914 }
915 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
916 <PcdsFixedAtBuild>
917 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
918 }
919 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
920 <PcdsFixedAtBuild>
921 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
922 }
923 !endif
924 ShellPkg/Application/Shell/Shell.inf {
925 <LibraryClasses>
926 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
927 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
928 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
929 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
930 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
931 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
932 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
933 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
934 !if $(NETWORK_IP6_ENABLE) == TRUE
935 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
936 !endif
937 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
938 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
939 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
940
941 <PcdsFixedAtBuild>
942 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
943 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
944 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
945 }
946
947 !if $(SECURE_BOOT_ENABLE) == TRUE
948 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
949 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
950 !endif
951
952 OvmfPkg/PlatformDxe/Platform.inf
953 OvmfPkg/AmdSevDxe/AmdSevDxe.inf
954 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
955
956 !if $(SMM_REQUIRE) == TRUE
957 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
958 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
959 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
960
961 #
962 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
963 #
964 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
965
966 #
967 # SMM_CORE
968 #
969 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
970
971 #
972 # Privileged drivers (DXE_SMM_DRIVER modules)
973 #
974 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
975 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
976 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
977 <LibraryClasses>
978 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
979 }
980 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
981 <LibraryClasses>
982 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
983 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
984 }
985
986 #
987 # Variable driver stack (SMM)
988 #
989 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
990 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
991 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
992 <LibraryClasses>
993 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
994 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
995 }
996 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
997
998 !else
999
1000 #
1001 # Variable driver stack (non-SMM)
1002 #
1003 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1004 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1005 <LibraryClasses>
1006 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1007 }
1008 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1009 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1010 <LibraryClasses>
1011 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1012 }
1013 !endif
1014
1015 #
1016 # TPM support
1017 #
1018 !if $(TPM_ENABLE) == TRUE
1019 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
1020 <LibraryClasses>
1021 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
1022 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
1023 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
1024 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
1025 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
1026 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
1027 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
1028 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
1029 }
1030 !if $(TPM_CONFIG_ENABLE) == TRUE
1031 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
1032 !endif
1033 SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {
1034 <LibraryClasses>
1035 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
1036 }
1037 !endif