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