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