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