]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgX64.dsc
OvmfPkg: Add a build flag to select ISA driver stack
[mirror_edk2.git] / OvmfPkg / OvmfPkgX64.dsc
1 ## @file
2 # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
3 #
4 # Copyright (c) 2006 - 2019, 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 DEFINE TPM2_CONFIG_ENABLE = FALSE
44 DEFINE USE_LEGACY_ISA_STACK = FALSE
45
46 #
47 # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
48 # one of the supported values, in place of any of the convenience macros, is
49 # permitted.
50 #
51 !ifdef $(FD_SIZE_1MB)
52 DEFINE FD_SIZE_IN_KB = 1024
53 !else
54 !ifdef $(FD_SIZE_2MB)
55 DEFINE FD_SIZE_IN_KB = 2048
56 !else
57 !ifdef $(FD_SIZE_4MB)
58 DEFINE FD_SIZE_IN_KB = 4096
59 !else
60 DEFINE FD_SIZE_IN_KB = 4096
61 !endif
62 !endif
63 !endif
64
65 [BuildOptions]
66 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
67 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
68 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
69 !if $(TOOL_CHAIN_TAG) != "XCODE5"
70 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
71 !endif
72 !ifdef $(SOURCE_DEBUG_ENABLE)
73 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
74 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
75 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
76 !endif
77
78 #
79 # Disable deprecated APIs.
80 #
81 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
82 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
83 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
84
85 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
86 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
87 XCODE:*_*_*_DLINK_FLAGS =
88
89 # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
90 # protection of DXE_SMM_DRIVER/SMM_CORE modules
91 [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
92 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
93 XCODE:*_*_*_DLINK_FLAGS =
94
95 ################################################################################
96 #
97 # SKU Identification section - list of all SKU IDs supported by this Platform.
98 #
99 ################################################################################
100 [SkuIds]
101 0|DEFAULT
102
103 ################################################################################
104 #
105 # Library Class section - list of all Library Classes needed by this Platform.
106 #
107 ################################################################################
108 [LibraryClasses]
109 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
110 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
111 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
112 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
113 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
114 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
115 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
116 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
117 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
118 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
119 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
120 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
121 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
122 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
123 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
124 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
125 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
126 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
127 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
128 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
129 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
130 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
131 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
132 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
133 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
134 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
135 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
136 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
137 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
138 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
139 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
140 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
141 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
142 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
143 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
144 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
145 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
146 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
147 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
148 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
149 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
150 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
151 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
152 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
153 NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
154 IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
155 UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
156 DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
157 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
158 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
159 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
160 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
161 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
162 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/BaseMemEncryptSevLib.inf
163 !if $(SMM_REQUIRE) == FALSE
164 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
165 !endif
166 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
167 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
168
169 !ifdef $(SOURCE_DEBUG_ENABLE)
170 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
171 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
172 !else
173 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
174 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
175 !endif
176
177 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/ResetSystemLib.inf
178 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
179 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
180
181 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
182 !if $(TLS_ENABLE) == TRUE
183 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
184 !else
185 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
186 !endif
187
188 !if $(SECURE_BOOT_ENABLE) == TRUE
189 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
190 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
191 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
192 !else
193 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
194 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
195 !endif
196 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
197
198 TcpIoLib|MdeModulePkg/Library/DxeTcpIoLib/DxeTcpIoLib.inf
199
200 !if $(HTTP_BOOT_ENABLE) == TRUE
201 HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
202 !endif
203
204 !if $(TLS_ENABLE) == TRUE
205 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
206 !endif
207
208 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
209 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
210 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
211 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
212 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
213
214 !if $(TPM2_ENABLE) == TRUE
215 Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
216 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
217 Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
218 !else
219 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
220 !endif
221
222 [LibraryClasses.common]
223 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
224
225 [LibraryClasses.common.SEC]
226 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
227 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
228 !ifdef $(DEBUG_ON_SERIAL_PORT)
229 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
230 !else
231 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
232 !endif
233 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
234 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
235 !ifdef $(SOURCE_DEBUG_ENABLE)
236 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
237 !endif
238 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
239 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
240 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
241 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
242 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
243
244 [LibraryClasses.common.PEI_CORE]
245 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
246 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
247 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
248 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
249 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
250 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
251 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
252 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
253 !ifdef $(DEBUG_ON_SERIAL_PORT)
254 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
255 !else
256 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
257 !endif
258 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
259
260 [LibraryClasses.common.PEIM]
261 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
262 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
263 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
264 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
265 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
266 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
267 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
268 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
269 !ifdef $(DEBUG_ON_SERIAL_PORT)
270 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
271 !else
272 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
273 !endif
274 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
275 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
276 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
277 !ifdef $(SOURCE_DEBUG_ENABLE)
278 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
279 !endif
280 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
281 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
282 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
283 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
284 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
285
286 !if $(TPM2_ENABLE) == TRUE
287 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
288 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
289 !endif
290
291 [LibraryClasses.common.DXE_CORE]
292 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
293 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
294 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
295 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
296 !ifdef $(DEBUG_ON_SERIAL_PORT)
297 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
298 !else
299 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
300 !endif
301 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
302 !ifdef $(SOURCE_DEBUG_ENABLE)
303 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
304 !endif
305 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
306 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
307
308 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
309 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
310 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
311 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
312 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
313 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
314 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
315 !ifdef $(DEBUG_ON_SERIAL_PORT)
316 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
317 !else
318 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
319 !endif
320 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
321 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
322 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
323 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
324
325 [LibraryClasses.common.UEFI_DRIVER]
326 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
327 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
328 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
329 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
330 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
331 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
332 !ifdef $(DEBUG_ON_SERIAL_PORT)
333 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
334 !else
335 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
336 !endif
337 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
338 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
339
340 [LibraryClasses.common.DXE_DRIVER]
341 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
342 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
343 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
344 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
345 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
346 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
347 !ifdef $(DEBUG_ON_SERIAL_PORT)
348 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
349 !else
350 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
351 !endif
352 NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
353 IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
354 UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
355 DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
356 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
357 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
358 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
359 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
360 !if $(SMM_REQUIRE) == TRUE
361 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
362 !else
363 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
364 !endif
365 !ifdef $(SOURCE_DEBUG_ENABLE)
366 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
367 !endif
368 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
369 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
370 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
371 !if $(TPM2_ENABLE) == TRUE
372 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
373 !endif
374
375 [LibraryClasses.common.UEFI_APPLICATION]
376 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
377 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
378 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
379 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
380 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
381 !ifdef $(DEBUG_ON_SERIAL_PORT)
382 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
383 !else
384 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
385 !endif
386 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
387
388 [LibraryClasses.common.DXE_SMM_DRIVER]
389 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
390 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
391 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
392 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
393 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
394 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
395 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
396 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
397 !ifdef $(DEBUG_ON_SERIAL_PORT)
398 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
399 !else
400 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
401 !endif
402 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
403 !ifdef $(SOURCE_DEBUG_ENABLE)
404 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
405 !endif
406 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
407 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
408
409 [LibraryClasses.common.SMM_CORE]
410 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
411 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
412 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
413 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
414 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
415 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
416 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
417 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
418 !ifdef $(DEBUG_ON_SERIAL_PORT)
419 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
420 !else
421 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
422 !endif
423 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
424
425 ################################################################################
426 #
427 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
428 #
429 ################################################################################
430 [PcdsFeatureFlag]
431 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
432 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
433 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
434 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
435 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
436 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
437 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
438 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
439 !if $(SMM_REQUIRE) == TRUE
440 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
441 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmEnableBspElection|FALSE
442 !endif
443
444 [PcdsFixedAtBuild]
445 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
446 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
447 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
448 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
449 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
450 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
451 !if $(TLS_ENABLE) == FALSE
452 # match PcdFlashNvStorageVariableSize purely for convenience
453 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
454 !endif
455 !endif
456 !if $(FD_SIZE_IN_KB) == 4096
457 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
458 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
459 !if $(TLS_ENABLE) == FALSE
460 # match PcdFlashNvStorageVariableSize purely for convenience
461 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
462 !endif
463 !endif
464 !if $(TLS_ENABLE) == TRUE
465 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
466 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
467 !endif
468
469 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
470
471 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
472
473 # DEBUG_INIT 0x00000001 // Initialization
474 # DEBUG_WARN 0x00000002 // Warnings
475 # DEBUG_LOAD 0x00000004 // Load events
476 # DEBUG_FS 0x00000008 // EFI File system
477 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
478 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
479 # DEBUG_INFO 0x00000040 // Informational debug messages
480 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
481 # DEBUG_VARIABLE 0x00000100 // Variable
482 # DEBUG_BM 0x00000400 // Boot Manager
483 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
484 # DEBUG_NET 0x00004000 // SNP Driver
485 # DEBUG_UNDI 0x00010000 // UNDI Driver
486 # DEBUG_LOADFILE 0x00020000 // LoadFile
487 # DEBUG_EVENT 0x00080000 // Event messages
488 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
489 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
490 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
491 # // significantly impact boot performance
492 # DEBUG_ERROR 0x80000000 // Error
493 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
494
495 !ifdef $(SOURCE_DEBUG_ENABLE)
496 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
497 !else
498 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
499 !endif
500
501 # This PCD is used to set the base address of the PCI express hierarchy. It
502 # is only consulted when OVMF runs on Q35. In that case it is programmed into
503 # the PCIEXBAR register.
504 #
505 # On Q35 machine types that QEMU intends to support in the long term, QEMU
506 # never lets the RAM below 4 GB exceed 2 GB.
507 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x80000000
508
509 !ifdef $(SOURCE_DEBUG_ENABLE)
510 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
511 !endif
512
513 !if $(HTTP_BOOT_ENABLE) == TRUE
514 gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE
515 !endif
516
517 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
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 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
642 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
643 }
644 !if $(TPM2_CONFIG_ENABLE) == TRUE
645 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
646 !endif
647 !endif
648
649 #
650 # DXE Phase modules
651 #
652 MdeModulePkg/Core/Dxe/DxeMain.inf {
653 <LibraryClasses>
654 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
655 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
656 }
657
658 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
659 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
660 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
661 <LibraryClasses>
662 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
663 }
664
665 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
666
667 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
668 <LibraryClasses>
669 !if $(SECURE_BOOT_ENABLE) == TRUE
670 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
671 !endif
672 !if $(TPM2_ENABLE) == TRUE
673 NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
674 !endif
675 }
676
677 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
678 PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
679 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
680 UefiCpuPkg/CpuDxe/CpuDxe.inf
681 PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
682 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
683 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
684 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
685 <LibraryClasses>
686 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
687 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
688 }
689 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
690 <LibraryClasses>
691 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
692 }
693 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
694 MdeModulePkg/Universal/Metronome/Metronome.inf
695 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
696 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
697 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
698 <LibraryClasses>
699 !ifdef $(CSM_ENABLE)
700 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
701 NULL|IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBootManagerLib.inf
702 !endif
703 }
704 MdeModulePkg/Logo/LogoDxe.inf
705 MdeModulePkg/Application/UiApp/UiApp.inf {
706 <LibraryClasses>
707 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
708 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
709 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
710 !ifdef $(CSM_ENABLE)
711 NULL|IntelFrameworkModulePkg/Library/LegacyBootManagerLib/LegacyBootManagerLib.inf
712 NULL|IntelFrameworkModulePkg/Library/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
713 !endif
714 }
715 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
716 OvmfPkg/Virtio10Dxe/Virtio10.inf
717 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
718 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
719 OvmfPkg/VirtioRngDxe/VirtioRng.inf
720 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
721 OvmfPkg/XenBusDxe/XenBusDxe.inf
722 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
723 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
724 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
725 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
726 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
727 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
728 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
729 <LibraryClasses>
730 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
731 }
732 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
733 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
734 <LibraryClasses>
735 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
736 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
737 }
738 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
739 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
740 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
741 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
742 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
743 FatPkg/EnhancedFatDxe/Fat.inf
744 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
745 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
746 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
747 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
748 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
749 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
750 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
751 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
752 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
753 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
754 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
755
756 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
757 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
758 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
759
760 #
761 # ISA Support
762 #
763 !if $(USE_LEGACY_ISA_STACK) == FALSE
764 OvmfPkg/SioBusDxe/SioBusDxe.inf
765 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
766 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
767 !else
768 PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
769 IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
770 IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
771 IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
772 !endif
773
774 #
775 # SMBIOS Support
776 #
777 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
778 <LibraryClasses>
779 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
780 }
781 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
782
783 #
784 # ACPI Support
785 #
786 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
787 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
788 OvmfPkg/AcpiTables/AcpiTables.inf
789 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
790 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
791 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
792
793 #
794 # Network Support
795 #
796 MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
797 MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
798 MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
799 MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
800 MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
801 MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
802 MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
803 MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
804 MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
805 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
806 NetworkPkg/TcpDxe/TcpDxe.inf
807 NetworkPkg/IScsiDxe/IScsiDxe.inf
808 !if $(NETWORK_IP6_ENABLE) == TRUE
809 NetworkPkg/Ip6Dxe/Ip6Dxe.inf
810 NetworkPkg/Udp6Dxe/Udp6Dxe.inf
811 NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf
812 NetworkPkg/Mtftp6Dxe/Mtftp6Dxe.inf
813 !endif
814 !if $(HTTP_BOOT_ENABLE) == TRUE
815 NetworkPkg/DnsDxe/DnsDxe.inf
816 NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
817 NetworkPkg/HttpDxe/HttpDxe.inf
818 NetworkPkg/HttpBootDxe/HttpBootDxe.inf
819 !endif
820 !if $(TLS_ENABLE) == TRUE
821 NetworkPkg/TlsDxe/TlsDxe.inf
822 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
823 <LibraryClasses>
824 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
825 }
826 !endif
827 OvmfPkg/VirtioNetDxe/VirtioNet.inf
828
829 #
830 # Usb Support
831 #
832 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
833 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
834 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
835 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
836 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
837 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
838
839 !ifdef $(CSM_ENABLE)
840 IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
841 <LibraryClasses>
842 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
843 }
844 IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
845 OvmfPkg/Csm/Csm16/Csm16.inf
846 !endif
847
848 !if $(TOOL_CHAIN_TAG) != "XCODE5"
849 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
850 <PcdsFixedAtBuild>
851 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
852 }
853 !endif
854 ShellPkg/Application/Shell/Shell.inf {
855 <LibraryClasses>
856 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
857 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
858 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
859 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
860 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
861 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
862 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
863 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
864 !if $(NETWORK_IP6_ENABLE) == TRUE
865 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
866 !endif
867 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
868 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
869 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
870
871 <PcdsFixedAtBuild>
872 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
873 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
874 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
875 }
876
877 !if $(SECURE_BOOT_ENABLE) == TRUE
878 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
879 !endif
880
881 OvmfPkg/PlatformDxe/Platform.inf
882 OvmfPkg/AmdSevDxe/AmdSevDxe.inf
883 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
884
885 !if $(SMM_REQUIRE) == TRUE
886 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
887 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
888 UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf
889
890 #
891 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
892 #
893 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
894
895 #
896 # SMM_CORE
897 #
898 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
899
900 #
901 # Privileged drivers (DXE_SMM_DRIVER modules)
902 #
903 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
904 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
905 <LibraryClasses>
906 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
907 }
908 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
909 <LibraryClasses>
910 SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
911 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
912 }
913
914 #
915 # Variable driver stack (SMM)
916 #
917 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
918 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
919 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
920 <LibraryClasses>
921 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
922 }
923 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
924
925 !else
926
927 #
928 # Variable driver stack (non-SMM)
929 #
930 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
931 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
932 <LibraryClasses>
933 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
934 }
935 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
936 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
937 <LibraryClasses>
938 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
939 }
940 !endif
941
942 !if $(TPM2_ENABLE) == TRUE
943 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
944 <LibraryClasses>
945 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
946 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
947 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
948 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
949 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
950 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
951 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
952 }
953 !endif