]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgIa32.dsc
f617aa60ca43d52cfd8673a347bb69917bd09a07
[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 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
414 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
415
416 [LibraryClasses.common.UEFI_APPLICATION]
417 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
418 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
419 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
420 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
421 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
422 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
423 !ifdef $(DEBUG_ON_SERIAL_PORT)
424 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
425 !else
426 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
427 !endif
428 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
429
430 [LibraryClasses.common.DXE_SMM_DRIVER]
431 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
432 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
433 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
434 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
435 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
436 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
437 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
438 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
439 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
440 !ifdef $(DEBUG_ON_SERIAL_PORT)
441 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
442 !else
443 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
444 !endif
445 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
446 !if $(SOURCE_DEBUG_ENABLE) == TRUE
447 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
448 !endif
449 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
450 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
451 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
452
453 [LibraryClasses.common.SMM_CORE]
454 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
455 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
456 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
457 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
458 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
459 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
460 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
461 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
462 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
463 !ifdef $(DEBUG_ON_SERIAL_PORT)
464 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
465 !else
466 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
467 !endif
468 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
469
470 ################################################################################
471 #
472 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
473 #
474 ################################################################################
475 [PcdsFeatureFlag]
476 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
477 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
478 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
479 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
480 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
481 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
482 !ifdef $(CSM_ENABLE)
483 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
484 !endif
485 !if $(SMM_REQUIRE) == TRUE
486 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
487 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
488 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
489 !endif
490
491 [PcdsFixedAtBuild]
492 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
493 !if $(SMM_REQUIRE) == FALSE
494 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
495 !endif
496 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
497 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
498 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
499 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
500 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
501 !if $(NETWORK_TLS_ENABLE) == FALSE
502 # match PcdFlashNvStorageVariableSize purely for convenience
503 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
504 !endif
505 !endif
506 !if $(FD_SIZE_IN_KB) == 4096
507 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
508 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
509 !if $(NETWORK_TLS_ENABLE) == FALSE
510 # match PcdFlashNvStorageVariableSize purely for convenience
511 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
512 !endif
513 !endif
514 !if $(NETWORK_TLS_ENABLE) == TRUE
515 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
516 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
517 !endif
518
519 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
520 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
521 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
522
523 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
524
525 # DEBUG_INIT 0x00000001 // Initialization
526 # DEBUG_WARN 0x00000002 // Warnings
527 # DEBUG_LOAD 0x00000004 // Load events
528 # DEBUG_FS 0x00000008 // EFI File system
529 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
530 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
531 # DEBUG_INFO 0x00000040 // Informational debug messages
532 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
533 # DEBUG_VARIABLE 0x00000100 // Variable
534 # DEBUG_BM 0x00000400 // Boot Manager
535 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
536 # DEBUG_NET 0x00004000 // SNP Driver
537 # DEBUG_UNDI 0x00010000 // UNDI Driver
538 # DEBUG_LOADFILE 0x00020000 // LoadFile
539 # DEBUG_EVENT 0x00080000 // Event messages
540 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
541 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
542 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
543 # // significantly impact boot performance
544 # DEBUG_ERROR 0x80000000 // Error
545 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
546
547 !if $(SOURCE_DEBUG_ENABLE) == TRUE
548 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
549 !else
550 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
551 !endif
552
553 # This PCD is used to set the base address of the PCI express hierarchy. It
554 # is only consulted when OVMF runs on Q35. In that case it is programmed into
555 # the PCIEXBAR register.
556 #
557 # On Q35 machine types that QEMU intends to support in the long term, QEMU
558 # never lets the RAM below 4 GB exceed 2816 MB.
559 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
560
561 !if $(SOURCE_DEBUG_ENABLE) == TRUE
562 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
563 !endif
564
565 #
566 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
567 # best (please refer to git-blame for past updates). The values capture a set
568 # of BIN hints that made sense at a particular time, for some (now likely
569 # unknown) workloads / boot paths.
570 #
571 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
572 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x12
573 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
574 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
575 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
576
577 #
578 # Network Pcds
579 #
580 !include NetworkPkg/NetworkPcds.dsc.inc
581
582 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
583
584 !if $(SMM_REQUIRE) == TRUE
585 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
586 !endif
587
588 # IRQs 5, 9, 10, 11 are level-triggered
589 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
590
591 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
592 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
593
594 ################################################################################
595 #
596 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
597 #
598 ################################################################################
599
600 [PcdsDynamicDefault]
601 # only set when
602 # ($(SMM_REQUIRE) == FALSE)
603 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
604
605 !if $(SMM_REQUIRE) == FALSE
606 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
607 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
608 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
609 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
610 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
611 !endif
612 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
613 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
614 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
615 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
616 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
617 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
618 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
619 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
620 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
621 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
622 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
623
624 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
625
626 # Set video resolution for text setup.
627 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
628 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
629
630 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
631 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
632 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
633
634 # Noexec settings for DXE.
635 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
636
637 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
638 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
639 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
640
641 # Set memory encryption mask
642 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
643
644 # Set Tdx shared bit mask
645 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
646
647 # Set SEV-ES defaults
648 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
649 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
650 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
651
652 !if $(SMM_REQUIRE) == TRUE
653 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
654 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
655 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
656 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
657 !endif
658
659 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
660
661 !include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
662
663 # IPv4 and IPv6 PXE Boot support.
664 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
665 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
666
667 # Set ConfidentialComputing defaults
668 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
669
670 !if $(CSM_ENABLE) == FALSE
671 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
672 !endif
673
674 [PcdsDynamicHii]
675 !include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
676
677 ################################################################################
678 #
679 # Components Section - list of all EDK II Modules needed by this Platform.
680 #
681 ################################################################################
682 [Components]
683 OvmfPkg/ResetVector/ResetVector.inf
684
685 #
686 # SEC Phase modules
687 #
688 OvmfPkg/Sec/SecMain.inf {
689 <LibraryClasses>
690 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
691 }
692
693 #
694 # PEI Phase modules
695 #
696 MdeModulePkg/Core/Pei/PeiMain.inf
697 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
698 <LibraryClasses>
699 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
700 }
701 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
702 <LibraryClasses>
703 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
704 }
705 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
706 <LibraryClasses>
707 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
708 }
709 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
710
711 OvmfPkg/PlatformPei/PlatformPei.inf
712 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
713 <LibraryClasses>
714 !if $(SMM_REQUIRE) == TRUE
715 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
716 !endif
717 }
718 !if $(SMM_REQUIRE) == TRUE
719 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
720 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
721 OvmfPkg/SmmAccess/SmmAccessPei.inf
722 !endif
723 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
724
725 !include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
726
727 #
728 # DXE Phase modules
729 #
730 MdeModulePkg/Core/Dxe/DxeMain.inf {
731 <LibraryClasses>
732 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
733 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
734 }
735
736 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
737 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
738 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
739 <LibraryClasses>
740 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
741 }
742
743 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
744
745 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
746 <LibraryClasses>
747 !if $(SECURE_BOOT_ENABLE) == TRUE
748 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
749 !endif
750 !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
751 }
752
753 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
754 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
755 UefiCpuPkg/CpuDxe/CpuDxe.inf
756 !ifdef $(CSM_ENABLE)
757 OvmfPkg/8259InterruptControllerDxe/8259.inf
758 OvmfPkg/8254TimerDxe/8254Timer.inf
759 !else
760 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
761 !endif
762 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
763 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
764 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
765 <LibraryClasses>
766 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
767 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
768 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
769 }
770 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
771 <LibraryClasses>
772 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
773 }
774 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
775 MdeModulePkg/Universal/Metronome/Metronome.inf
776 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
777 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
778 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
779 <LibraryClasses>
780 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
781 !ifdef $(CSM_ENABLE)
782 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
783 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
784 !endif
785 }
786 MdeModulePkg/Logo/LogoDxe.inf
787 MdeModulePkg/Application/UiApp/UiApp.inf {
788 <LibraryClasses>
789 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
790 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
791 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
792 !ifdef $(CSM_ENABLE)
793 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
794 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
795 !endif
796 }
797 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
798 <LibraryClasses>
799 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
800 }
801 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
802 OvmfPkg/Virtio10Dxe/Virtio10.inf
803 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
804 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
805 OvmfPkg/VirtioRngDxe/VirtioRng.inf
806 !if $(PVSCSI_ENABLE) == TRUE
807 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
808 !endif
809 !if $(MPT_SCSI_ENABLE) == TRUE
810 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
811 !endif
812 !if $(LSI_SCSI_ENABLE) == TRUE
813 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
814 !endif
815 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
816 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
817 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
818 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
819 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
820 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
821 <LibraryClasses>
822 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
823 }
824 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
825 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
826 <LibraryClasses>
827 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
828 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
829 }
830 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
831 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
832 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
833 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
834 FatPkg/EnhancedFatDxe/Fat.inf
835 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
836 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
837 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
838 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
839 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
840 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
841 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
842 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
843 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
844 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
845 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
846 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
847
848 !ifndef $(CSM_ENABLE)
849 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
850 !endif
851 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
852 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
853
854 #
855 # ISA Support
856 #
857 OvmfPkg/SioBusDxe/SioBusDxe.inf
858 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
859 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
860
861 #
862 # SMBIOS Support
863 #
864 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
865 <LibraryClasses>
866 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
867 }
868 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
869
870 #
871 # ACPI Support
872 #
873 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
874 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
875 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
876 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
877 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
878
879 #
880 # Network Support
881 #
882 !include NetworkPkg/NetworkComponents.dsc.inc
883 !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
884
885 OvmfPkg/VirtioNetDxe/VirtioNet.inf
886
887 #
888 # Usb Support
889 #
890 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
891 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
892 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
893 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
894 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
895 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
896
897 !ifdef $(CSM_ENABLE)
898 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
899 <LibraryClasses>
900 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
901 }
902 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
903 OvmfPkg/Csm/Csm16/Csm16.inf
904 !endif
905
906 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
907 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
908 <PcdsFixedAtBuild>
909 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
910 }
911 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
912 <PcdsFixedAtBuild>
913 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
914 }
915 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
916 <PcdsFixedAtBuild>
917 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
918 }
919 !endif
920 !if $(BUILD_SHELL) == TRUE
921 ShellPkg/Application/Shell/Shell.inf {
922 <LibraryClasses>
923 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
924 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
925 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
926 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
927 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
928 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
929 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
930 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
931 !if $(NETWORK_IP6_ENABLE) == TRUE
932 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
933 !endif
934 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
935 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
936 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
937
938 <PcdsFixedAtBuild>
939 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
940 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
941 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
942 }
943 !endif
944
945 !if $(SECURE_BOOT_ENABLE) == TRUE
946 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
947 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
948 !endif
949
950 OvmfPkg/PlatformDxe/Platform.inf
951 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
952
953 !if $(SMM_REQUIRE) == TRUE
954 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
955 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
956 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
957
958 #
959 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
960 #
961 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
962
963 #
964 # SMM_CORE
965 #
966 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
967
968 #
969 # Privileged drivers (DXE_SMM_DRIVER modules)
970 #
971 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
972 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
973 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
974 <LibraryClasses>
975 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
976 }
977 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
978 <LibraryClasses>
979 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
980 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
981 }
982
983 #
984 # Variable driver stack (SMM)
985 #
986 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
987 <LibraryClasses>
988 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
989 }
990 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
991 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
992 <LibraryClasses>
993 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
994 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
995 }
996 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
997
998 !else
999
1000 #
1001 # Variable driver stack (non-SMM)
1002 #
1003 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1004 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1005 <LibraryClasses>
1006 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1007 }
1008 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1009 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1010 <LibraryClasses>
1011 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1012 }
1013 !endif
1014
1015 #
1016 # TPM support
1017 #
1018 !include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc
1019
1020 !if $(LOAD_X64_ON_IA32_ENABLE) == TRUE
1021 OvmfPkg/CompatImageLoaderDxe/CompatImageLoaderDxe.inf
1022 !endif