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