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