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