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