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