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