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