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