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