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