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