]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgIa32X64.dsc
OvmfPkg/UefiCpuPkg/UefiPayloadPkg: Rename VmgExitLib to CcExitLib
[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/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/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/TdxMailboxLib.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/PlatformDebugLibIoPort.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/PlatformDebugLibIoPort.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 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
418 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
419 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
420
421 [LibraryClasses.common.UEFI_APPLICATION]
422 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
423 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
424 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
425 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
426 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
427 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
428 !ifdef $(DEBUG_ON_SERIAL_PORT)
429 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
430 !else
431 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
432 !endif
433 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
434
435 [LibraryClasses.common.DXE_SMM_DRIVER]
436 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
437 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
438 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
439 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
440 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
441 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
442 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
443 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
444 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
445 !ifdef $(DEBUG_ON_SERIAL_PORT)
446 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
447 !else
448 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
449 !endif
450 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
451 !if $(SOURCE_DEBUG_ENABLE) == TRUE
452 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
453 !endif
454 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
455 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
456 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
457
458 [LibraryClasses.common.SMM_CORE]
459 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
460 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
461 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
462 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
463 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
464 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
465 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
466 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
467 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
468 !ifdef $(DEBUG_ON_SERIAL_PORT)
469 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
470 !else
471 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
472 !endif
473 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
474
475 ################################################################################
476 #
477 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
478 #
479 ################################################################################
480 [PcdsFeatureFlag]
481 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
482 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
483 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
484 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
485 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
486 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
487 !ifdef $(CSM_ENABLE)
488 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
489 !endif
490 !if $(SMM_REQUIRE) == TRUE
491 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
492 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
493 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
494 !endif
495
496 [PcdsFixedAtBuild]
497 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
498 !if $(SMM_REQUIRE) == FALSE
499 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
500 !endif
501 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
502 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
503 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
504 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
505 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
506 !if $(NETWORK_TLS_ENABLE) == FALSE
507 # match PcdFlashNvStorageVariableSize purely for convenience
508 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
509 !endif
510 !endif
511 !if $(FD_SIZE_IN_KB) == 4096
512 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
513 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
514 !if $(NETWORK_TLS_ENABLE) == FALSE
515 # match PcdFlashNvStorageVariableSize purely for convenience
516 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
517 !endif
518 !endif
519 !if $(NETWORK_TLS_ENABLE) == TRUE
520 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
521 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
522 !endif
523
524 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
525 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
526 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
527
528 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
529
530 # DEBUG_INIT 0x00000001 // Initialization
531 # DEBUG_WARN 0x00000002 // Warnings
532 # DEBUG_LOAD 0x00000004 // Load events
533 # DEBUG_FS 0x00000008 // EFI File system
534 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
535 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
536 # DEBUG_INFO 0x00000040 // Informational debug messages
537 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
538 # DEBUG_VARIABLE 0x00000100 // Variable
539 # DEBUG_BM 0x00000400 // Boot Manager
540 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
541 # DEBUG_NET 0x00004000 // SNP Driver
542 # DEBUG_UNDI 0x00010000 // UNDI Driver
543 # DEBUG_LOADFILE 0x00020000 // LoadFile
544 # DEBUG_EVENT 0x00080000 // Event messages
545 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
546 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
547 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
548 # // significantly impact boot performance
549 # DEBUG_ERROR 0x80000000 // Error
550 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
551
552 !if $(SOURCE_DEBUG_ENABLE) == TRUE
553 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
554 !else
555 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
556 !endif
557
558 # This PCD is used to set the base address of the PCI express hierarchy. It
559 # is only consulted when OVMF runs on Q35. In that case it is programmed into
560 # the PCIEXBAR register.
561 #
562 # On Q35 machine types that QEMU intends to support in the long term, QEMU
563 # never lets the RAM below 4 GB exceed 2816 MB.
564 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
565
566 !if $(SOURCE_DEBUG_ENABLE) == TRUE
567 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
568 !endif
569
570 [PcdsFixedAtBuild.IA32]
571 #
572 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
573 # best (please refer to git-blame for past updates). The values capture a set
574 # of BIN hints that made sense at a particular time, for some (now likely
575 # unknown) workloads / boot paths.
576 #
577 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
578 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x12
579 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
580 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
581 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
582
583 [PcdsFixedAtBuild.X64]
584 #
585 # Network Pcds
586 #
587 !include NetworkPkg/NetworkPcds.dsc.inc
588
589 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
590
591 !if $(SMM_REQUIRE) == TRUE
592 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
593 !endif
594
595 # IRQs 5, 9, 10, 11 are level-triggered
596 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
597
598 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
599 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
600
601 ################################################################################
602 #
603 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
604 #
605 ################################################################################
606
607 [PcdsDynamicDefault]
608 # only set when
609 # ($(SMM_REQUIRE) == FALSE)
610 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
611
612 !if $(SMM_REQUIRE) == FALSE
613 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
614 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
615 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
616 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
617 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
618 !endif
619 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
620 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
621 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
622 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
623 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
624 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
625 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
626 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
627 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
628 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
629 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
630 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
631 !ifdef $(CSM_ENABLE)
632 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
633 !else
634 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
635 !endif
636
637 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
638
639 # Set video resolution for text setup.
640 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
641 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
642
643 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
644 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
645 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
646
647 # Noexec settings for DXE.
648 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
649
650 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
651 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
652 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
653
654 # Set memory encryption mask
655 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
656 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
657
658 # Set SEV-ES defaults
659 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
660 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
661 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
662
663 !if $(SMM_REQUIRE) == TRUE
664 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
665 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
666 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
667 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
668 !endif
669
670 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
671
672 !include OvmfPkg/OvmfTpmPcds.dsc.inc
673
674 # Set ConfidentialComputing defaults
675 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
676
677 !if $(CSM_ENABLE) == FALSE
678 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
679 !endif
680
681 [PcdsDynamicDefault.X64]
682 # IPv4 and IPv6 PXE Boot support.
683 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
684 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
685
686 [PcdsDynamicHii]
687 !include OvmfPkg/OvmfTpmPcdsHii.dsc.inc
688
689 ################################################################################
690 #
691 # Components Section - list of all EDK II Modules needed by this Platform.
692 #
693 ################################################################################
694 [Components.IA32]
695 OvmfPkg/ResetVector/ResetVector.inf
696
697 #
698 # SEC Phase modules
699 #
700 OvmfPkg/Sec/SecMain.inf {
701 <LibraryClasses>
702 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
703 }
704
705 #
706 # PEI Phase modules
707 #
708 MdeModulePkg/Core/Pei/PeiMain.inf
709 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
710 <LibraryClasses>
711 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
712 }
713 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
714 <LibraryClasses>
715 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
716 }
717 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
718 <LibraryClasses>
719 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
720 }
721 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
722
723 OvmfPkg/PlatformPei/PlatformPei.inf
724 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
725 <LibraryClasses>
726 !if $(SMM_REQUIRE) == TRUE
727 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
728 !endif
729 }
730 !if $(SMM_REQUIRE) == TRUE
731 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
732 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
733 OvmfPkg/SmmAccess/SmmAccessPei.inf
734 !endif
735 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
736
737 !include OvmfPkg/OvmfTpmComponentsPei.dsc.inc
738
739 [Components.X64]
740 #
741 # DXE Phase modules
742 #
743 MdeModulePkg/Core/Dxe/DxeMain.inf {
744 <LibraryClasses>
745 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
746 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
747 }
748
749 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
750 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
751 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
752 <LibraryClasses>
753 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
754 }
755
756 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
757
758 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
759 <LibraryClasses>
760 !if $(SECURE_BOOT_ENABLE) == TRUE
761 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
762 !endif
763 !include OvmfPkg/OvmfTpmSecurityStub.dsc.inc
764 }
765
766 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
767 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
768 UefiCpuPkg/CpuDxe/CpuDxe.inf
769 !ifdef $(CSM_ENABLE)
770 OvmfPkg/8259InterruptControllerDxe/8259.inf
771 OvmfPkg/8254TimerDxe/8254Timer.inf
772 !else
773 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
774 !endif
775 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
776 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
777 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
778 <LibraryClasses>
779 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
780 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
781 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
782 }
783 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
784 <LibraryClasses>
785 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
786 }
787 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
788 MdeModulePkg/Universal/Metronome/Metronome.inf
789 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
790 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
791 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
792 <LibraryClasses>
793 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
794 !ifdef $(CSM_ENABLE)
795 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
796 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
797 !endif
798 }
799 MdeModulePkg/Logo/LogoDxe.inf
800 MdeModulePkg/Application/UiApp/UiApp.inf {
801 <LibraryClasses>
802 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
803 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
804 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
805 !ifdef $(CSM_ENABLE)
806 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
807 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
808 !endif
809 }
810 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
811 <LibraryClasses>
812 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
813 }
814 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
815 OvmfPkg/Virtio10Dxe/Virtio10.inf
816 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
817 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
818 OvmfPkg/VirtioRngDxe/VirtioRng.inf
819 !if $(PVSCSI_ENABLE) == TRUE
820 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
821 !endif
822 !if $(MPT_SCSI_ENABLE) == TRUE
823 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
824 !endif
825 !if $(LSI_SCSI_ENABLE) == TRUE
826 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
827 !endif
828 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
829 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
830 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
831 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
832 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
833 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
834 <LibraryClasses>
835 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
836 }
837 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
838 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
839 <LibraryClasses>
840 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
841 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
842 }
843 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
844 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
845 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
846 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
847 FatPkg/EnhancedFatDxe/Fat.inf
848 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
849 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
850 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
851 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
852 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
853 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
854 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
855 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
856 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
857 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
858 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
859 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
860
861 !ifndef $(CSM_ENABLE)
862 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
863 !endif
864 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
865 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
866
867 #
868 # ISA Support
869 #
870 OvmfPkg/SioBusDxe/SioBusDxe.inf
871 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
872 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
873
874 #
875 # SMBIOS Support
876 #
877 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
878 <LibraryClasses>
879 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
880 }
881 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
882
883 #
884 # ACPI Support
885 #
886 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
887 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
888 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
889 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
890 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
891
892 #
893 # Network Support
894 #
895 !include NetworkPkg/NetworkComponents.dsc.inc
896 !include OvmfPkg/NetworkComponents.dsc.inc
897
898 OvmfPkg/VirtioNetDxe/VirtioNet.inf
899
900 #
901 # Usb Support
902 #
903 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
904 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
905 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
906 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
907 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
908 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
909
910 !ifdef $(CSM_ENABLE)
911 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
912 <LibraryClasses>
913 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
914 }
915 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
916 OvmfPkg/Csm/Csm16/Csm16.inf
917 !endif
918
919 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
920 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
921 <PcdsFixedAtBuild>
922 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
923 }
924 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
925 <PcdsFixedAtBuild>
926 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
927 }
928 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
929 <PcdsFixedAtBuild>
930 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
931 }
932 !endif
933 !if $(BUILD_SHELL) == TRUE
934 ShellPkg/Application/Shell/Shell.inf {
935 <LibraryClasses>
936 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
937 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
938 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
939 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
940 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
941 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
942 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
943 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
944 !if $(NETWORK_IP6_ENABLE) == TRUE
945 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
946 !endif
947 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
948 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
949 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
950
951 <PcdsFixedAtBuild>
952 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
953 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
954 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
955 }
956 !endif
957
958 !if $(SECURE_BOOT_ENABLE) == TRUE
959 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
960 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
961 !endif
962
963 OvmfPkg/PlatformDxe/Platform.inf
964 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
965 <LibraryClasses>
966 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
967 }
968 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
969
970 !if $(SMM_REQUIRE) == TRUE
971 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
972 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
973 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
974
975 #
976 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
977 #
978 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
979
980 #
981 # SMM_CORE
982 #
983 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
984
985 #
986 # Privileged drivers (DXE_SMM_DRIVER modules)
987 #
988 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
989 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
990 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
991 <LibraryClasses>
992 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
993 }
994 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
995 <LibraryClasses>
996 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
997 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
998 }
999
1000 #
1001 # Variable driver stack (SMM)
1002 #
1003 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
1004 <LibraryClasses>
1005 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
1006 }
1007 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
1008 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
1009 <LibraryClasses>
1010 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1011 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
1012 }
1013 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
1014
1015 !else
1016
1017 #
1018 # Variable driver stack (non-SMM)
1019 #
1020 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1021 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1022 <LibraryClasses>
1023 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1024 }
1025 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1026 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1027 <LibraryClasses>
1028 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1029 }
1030 !endif
1031
1032 #
1033 # TPM support
1034 #
1035 !include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc