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