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