]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgX64.dsc
OvmfPkg: Add CcProbeLib in *.dsc
[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.PcdAcpiS3Enable|FALSE
616 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
617 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
618 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
619 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
620 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
621 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
622 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
623 !ifdef $(CSM_ENABLE)
624 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
625 !else
626 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
627 !endif
628
629 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
630
631 # Set video resolution for text setup.
632 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
633 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
634
635 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
636 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
637 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
638
639 # Noexec settings for DXE.
640 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
641
642 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
643 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
644 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
645
646 # Set memory encryption mask
647 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
648
649 # Set Tdx shared bit mask
650 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
651
652 # Set SEV-ES defaults
653 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
654 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
655 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
656
657 !if $(SMM_REQUIRE) == TRUE
658 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
659 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
660 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
661 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
662 !endif
663
664 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
665
666 !include OvmfPkg/OvmfTpmPcds.dsc.inc
667
668 # IPv4 and IPv6 PXE Boot support.
669 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
670 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
671
672 # Set ConfidentialComputing defaults
673 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
674
675 !if $(CSM_ENABLE) == FALSE
676 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|100000000
677 !endif
678
679 [PcdsDynamicHii]
680 !include OvmfPkg/OvmfTpmPcdsHii.dsc.inc
681
682 ################################################################################
683 #
684 # Components Section - list of all EDK II Modules needed by this Platform.
685 #
686 ################################################################################
687 [Components]
688 OvmfPkg/ResetVector/ResetVector.inf
689
690 #
691 # SEC Phase modules
692 #
693 OvmfPkg/Sec/SecMain.inf {
694 <LibraryClasses>
695 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
696 NULL|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
697 }
698
699 #
700 # PEI Phase modules
701 #
702 MdeModulePkg/Core/Pei/PeiMain.inf
703 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
704 <LibraryClasses>
705 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
706 }
707 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
708 <LibraryClasses>
709 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
710 }
711 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
712 <LibraryClasses>
713 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
714 }
715 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
716
717 OvmfPkg/PlatformPei/PlatformPei.inf
718 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
719 <LibraryClasses>
720 !if $(SMM_REQUIRE) == TRUE
721 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
722 !endif
723 }
724 !if $(SMM_REQUIRE) == TRUE
725 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
726 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
727 OvmfPkg/SmmAccess/SmmAccessPei.inf
728 !endif
729 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
730
731 !include OvmfPkg/OvmfTpmComponentsPei.dsc.inc
732
733 #
734 # DXE Phase modules
735 #
736 MdeModulePkg/Core/Dxe/DxeMain.inf {
737 <LibraryClasses>
738 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
739 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
740 }
741
742 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
743 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
744 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
745 <LibraryClasses>
746 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
747 }
748
749 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
750
751 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
752 <LibraryClasses>
753 !if $(SECURE_BOOT_ENABLE) == TRUE
754 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
755 !include OvmfPkg/OvmfTpmSecurityStub.dsc.inc
756 !endif
757 }
758
759 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
760 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
761 UefiCpuPkg/CpuDxe/CpuDxe.inf
762 !ifdef $(CSM_ENABLE)
763 OvmfPkg/8259InterruptControllerDxe/8259.inf
764 OvmfPkg/8254TimerDxe/8254Timer.inf
765 !else
766 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
767 !endif
768 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
769 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
770 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
771 <LibraryClasses>
772 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
773 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
774 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
775 }
776 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
777 <LibraryClasses>
778 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
779 }
780 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
781 MdeModulePkg/Universal/Metronome/Metronome.inf
782 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
783 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
784 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
785 <LibraryClasses>
786 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
787 !ifdef $(CSM_ENABLE)
788 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
789 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
790 !endif
791 }
792 MdeModulePkg/Logo/LogoDxe.inf
793 MdeModulePkg/Application/UiApp/UiApp.inf {
794 <LibraryClasses>
795 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
796 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
797 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
798 !ifdef $(CSM_ENABLE)
799 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
800 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
801 !endif
802 }
803 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
804 <LibraryClasses>
805 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
806 }
807 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
808 OvmfPkg/Virtio10Dxe/Virtio10.inf
809 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
810 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
811 OvmfPkg/VirtioRngDxe/VirtioRng.inf
812 !if $(PVSCSI_ENABLE) == TRUE
813 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
814 !endif
815 !if $(MPT_SCSI_ENABLE) == TRUE
816 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
817 !endif
818 !if $(LSI_SCSI_ENABLE) == TRUE
819 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
820 !endif
821 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
822 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
823 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
824 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
825 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
826 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
827 <LibraryClasses>
828 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
829 }
830 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
831 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
832 <LibraryClasses>
833 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
834 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
835 }
836 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
837 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
838 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
839 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
840 FatPkg/EnhancedFatDxe/Fat.inf
841 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
842 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
843 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
844 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
845 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
846 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
847 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
848 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
849 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
850 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
851 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
852 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
853
854 !ifndef $(CSM_ENABLE)
855 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
856 !endif
857 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
858 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
859
860 #
861 # ISA Support
862 #
863 OvmfPkg/SioBusDxe/SioBusDxe.inf
864 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
865 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
866
867 #
868 # SMBIOS Support
869 #
870 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
871 <LibraryClasses>
872 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
873 }
874 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
875
876 #
877 # ACPI Support
878 #
879 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
880 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
881 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
882 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
883 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
884
885 #
886 # Network Support
887 #
888 !include NetworkPkg/NetworkComponents.dsc.inc
889
890 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {
891 <LibraryClasses>
892 NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf
893 }
894
895 !if $(NETWORK_TLS_ENABLE) == TRUE
896 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
897 <LibraryClasses>
898 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
899 }
900 !endif
901 OvmfPkg/VirtioNetDxe/VirtioNet.inf
902
903 #
904 # Usb Support
905 #
906 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
907 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
908 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
909 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
910 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
911 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
912
913 !ifdef $(CSM_ENABLE)
914 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
915 <LibraryClasses>
916 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
917 }
918 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
919 OvmfPkg/Csm/Csm16/Csm16.inf
920 !endif
921
922 !if $(TOOL_CHAIN_TAG) != "XCODE5"
923 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
924 <PcdsFixedAtBuild>
925 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
926 }
927 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
928 <PcdsFixedAtBuild>
929 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
930 }
931 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
932 <PcdsFixedAtBuild>
933 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
934 }
935 !endif
936 ShellPkg/Application/Shell/Shell.inf {
937 <LibraryClasses>
938 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
939 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
940 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
941 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
942 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
943 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
944 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
945 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
946 !if $(NETWORK_IP6_ENABLE) == TRUE
947 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
948 !endif
949 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
950 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
951 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
952
953 <PcdsFixedAtBuild>
954 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
955 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
956 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
957 }
958
959 !if $(SECURE_BOOT_ENABLE) == TRUE
960 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
961 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
962 !endif
963
964 OvmfPkg/PlatformDxe/Platform.inf
965 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
966 <LibraryClasses>
967 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
968 }
969 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
970
971 OvmfPkg/TdxDxe/TdxDxe.inf
972
973 !if $(SMM_REQUIRE) == TRUE
974 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
975 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
976 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
977
978 #
979 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
980 #
981 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
982
983 #
984 # SMM_CORE
985 #
986 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
987
988 #
989 # Privileged drivers (DXE_SMM_DRIVER modules)
990 #
991 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
992 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
993 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
994 <LibraryClasses>
995 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
996 }
997 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
998 <LibraryClasses>
999 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
1000 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
1001 }
1002
1003 #
1004 # Variable driver stack (SMM)
1005 #
1006 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
1007 <LibraryClasses>
1008 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
1009 }
1010 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
1011 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
1012 <LibraryClasses>
1013 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1014 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
1015 }
1016 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
1017
1018 !else
1019
1020 #
1021 # Variable driver stack (non-SMM)
1022 #
1023 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1024 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1025 <LibraryClasses>
1026 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1027 }
1028 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1029 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1030 <LibraryClasses>
1031 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1032 }
1033 !endif
1034
1035 #
1036 # TPM support
1037 #
1038 !include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc