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