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