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