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