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