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