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