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