]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/CloudHv/CloudHvX64.dsc
OvmfPkg: reduce the number of dsc include files for tpm libs
[mirror_edk2.git] / OvmfPkg / CloudHv / CloudHvX64.dsc
CommitLineData
c712ce2b
SB
1## @file\r
2# EFI/Framework Open Virtual Machine Firmware (OVMF) platform\r
3#\r
4# Copyright (c) 2006 - 2022, 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 = CloudHv\r
19 PLATFORM_GUID = 97bb49d2-9814-4bea-8311-f8b9ac231e11\r
20 PLATFORM_VERSION = 0.1\r
21 DSC_SPECIFICATION = 0x00010005\r
22 OUTPUT_DIRECTORY = Build/CloudHvX64\r
23 SUPPORTED_ARCHITECTURES = X64\r
24 BUILD_TARGETS = NOOPT|DEBUG|RELEASE\r
25 SKUID_IDENTIFIER = DEFAULT\r
26 FLASH_DEFINITION = OvmfPkg/CloudHv/CloudHvX64.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\r
36!include OvmfPkg/OvmfTpmDefines.dsc.inc\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
2a7e1e89 161 CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf\r
c712ce2b
SB
162 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf\r
163 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
164 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf\r
165 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf\r
166 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf\r
167 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf\r
168 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
169 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r
170 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r
171 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r
172 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf\r
173 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf\r
174 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf\r
175 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf\r
176 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf\r
c712ce2b 177 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf\r
3129ed37 178 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibNull.inf\r
c712ce2b
SB
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
25201821 188 MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf\r
c712ce2b
SB
189\r
190!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
191 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf\r
192 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf\r
193!else\r
194 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf\r
195 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf\r
196!endif\r
197\r
198 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf\r
199 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
200\r
201 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
202!if $(NETWORK_TLS_ENABLE) == TRUE\r
203 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
204!else\r
205 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf\r
206!endif\r
207 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf\r
208\r
209!if $(SECURE_BOOT_ENABLE) == TRUE\r
210 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf\r
211 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf\r
212 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf\r
213 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf\r
214!else\r
215 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf\r
216!endif\r
217 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf\r
218 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf\r
219 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf\r
a7d3d4e7 220 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf\r
c712ce2b
SB
221\r
222\r
223 #\r
224 # Network libraries\r
225 #\r
226!include NetworkPkg/NetworkLibs.dsc.inc\r
227\r
228!if $(NETWORK_TLS_ENABLE) == TRUE\r
229 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf\r
230!endif\r
231\r
232 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r
233 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf\r
234 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf\r
235 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf\r
236 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf\r
237\r
238!include OvmfPkg/OvmfTpmLibs.dsc.inc\r
239\r
240[LibraryClasses.common]\r
241 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
242 VmgExitLib|OvmfPkg/Library/VmgExitLib/VmgExitLib.inf\r
2b80269d 243 TdxLib|MdePkg/Library/TdxLib/TdxLib.inf\r
c712ce2b
SB
244\r
245[LibraryClasses.common.SEC]\r
246 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf\r
c712ce2b
SB
247!ifdef $(DEBUG_ON_SERIAL_PORT)\r
248 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
249!else\r
250 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf\r
251!endif\r
252 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf\r
253 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf\r
254!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
255 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf\r
256!endif\r
257 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
258 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
259 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
260 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
261!if $(TOOL_CHAIN_TAG) == "XCODE5"\r
262 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf\r
263!else\r
264 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf\r
265!endif\r
266 VmgExitLib|OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf\r
267 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf\r
268\r
269[LibraryClasses.common.PEI_CORE]\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 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.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\r
285[LibraryClasses.common.PEIM]\r
286 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
287 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
288 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
289 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
290 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r
291 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf\r
292 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
293 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
294!ifdef $(DEBUG_ON_SERIAL_PORT)\r
295 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
296!else\r
297 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
298!endif\r
299 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf\r
300 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf\r
301 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf\r
302!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
303 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf\r
304!endif\r
305 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf\r
306 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf\r
307 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf\r
308 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
3129ed37 309 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibNull.inf\r
c712ce2b 310\r
c712ce2b 311 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf\r
57bcfc3b 312 PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf\r
c712ce2b
SB
313\r
314[LibraryClasses.common.DXE_CORE]\r
315 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf\r
316 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
317 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf\r
318 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
319!ifdef $(DEBUG_ON_SERIAL_PORT)\r
320 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
321!else\r
322 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
323!endif\r
324 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf\r
325!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
326 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf\r
327!endif\r
328 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
329 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
330\r
331[LibraryClasses.common.DXE_RUNTIME_DRIVER]\r
332 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
333 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
334 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
335 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
336 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
337 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
338 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf\r
339!ifdef $(DEBUG_ON_SERIAL_PORT)\r
340 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
341!else\r
342 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
343!endif\r
344 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
345 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf\r
346 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
c712ce2b
SB
347 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf\r
348!if $(SMM_REQUIRE) == TRUE\r
349 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf\r
350!endif\r
351\r
352[LibraryClasses.common.UEFI_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 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
358 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
359 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.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 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
366 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
367\r
368[LibraryClasses.common.DXE_DRIVER]\r
369 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
370 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
371 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
372 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
373 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
374 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
375 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
376!ifdef $(DEBUG_ON_SERIAL_PORT)\r
377 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
378!else\r
379 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
380!endif\r
381 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf\r
382 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf\r
383 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf\r
384 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
385!if $(SMM_REQUIRE) == TRUE\r
386 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf\r
387!else\r
388 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf\r
389!endif\r
390!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
391 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf\r
392!endif\r
393 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
394 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf\r
395 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf\r
396 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf\r
397\r
c712ce2b
SB
398[LibraryClasses.common.UEFI_APPLICATION]\r
399 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
400 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
401 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
402 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
403 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
404 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
405!ifdef $(DEBUG_ON_SERIAL_PORT)\r
406 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
407!else\r
408 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
409!endif\r
410 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
411\r
412[LibraryClasses.common.DXE_SMM_DRIVER]\r
413 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
414 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
415 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
416 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf\r
417 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
418 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
419 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
420 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf\r
421 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.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 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf\r
428!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
429 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf\r
430!endif\r
431 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf\r
432 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
7fda517c 433 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf\r
c712ce2b
SB
434\r
435[LibraryClasses.common.SMM_CORE]\r
436 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
437 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
438 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
439 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf\r
440 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf\r
441 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
442 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
443 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
444 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf\r
445!ifdef $(DEBUG_ON_SERIAL_PORT)\r
446 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
447!else\r
448 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
449!endif\r
450 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
451\r
452################################################################################\r
453#\r
454# Pcd Section - list of all EDK II PCD Entries defined by this Platform.\r
455#\r
456################################################################################\r
457[PcdsFeatureFlag]\r
458 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE\r
459 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE\r
460 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE\r
461 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r
462 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE\r
463 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE\r
c712ce2b
SB
464!if $(SMM_REQUIRE) == TRUE\r
465 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE\r
466 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE\r
467 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE\r
468!endif\r
469\r
470[PcdsFixedAtBuild]\r
471 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1\r
472!if $(SMM_REQUIRE) == FALSE\r
473 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE\r
474!endif\r
475 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10\r
476 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0\r
477!if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)\r
478 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000\r
479 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800\r
480!if $(NETWORK_TLS_ENABLE) == FALSE\r
481 # match PcdFlashNvStorageVariableSize purely for convenience\r
482 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000\r
483!endif\r
484!endif\r
485!if $(FD_SIZE_IN_KB) == 4096\r
486 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400\r
487 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400\r
488!if $(NETWORK_TLS_ENABLE) == FALSE\r
489 # match PcdFlashNvStorageVariableSize purely for convenience\r
490 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000\r
491!endif\r
492!endif\r
493!if $(NETWORK_TLS_ENABLE) == TRUE\r
494 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000\r
495 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000\r
496!endif\r
497\r
498 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0\r
499 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE\r
500 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE\r
501\r
502 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07\r
503\r
504 # DEBUG_INIT 0x00000001 // Initialization\r
505 # DEBUG_WARN 0x00000002 // Warnings\r
506 # DEBUG_LOAD 0x00000004 // Load events\r
507 # DEBUG_FS 0x00000008 // EFI File system\r
508 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)\r
509 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)\r
510 # DEBUG_INFO 0x00000040 // Informational debug messages\r
511 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers\r
512 # DEBUG_VARIABLE 0x00000100 // Variable\r
513 # DEBUG_BM 0x00000400 // Boot Manager\r
514 # DEBUG_BLKIO 0x00001000 // BlkIo Driver\r
515 # DEBUG_NET 0x00004000 // SNP Driver\r
516 # DEBUG_UNDI 0x00010000 // UNDI Driver\r
517 # DEBUG_LOADFILE 0x00020000 // LoadFile\r
518 # DEBUG_EVENT 0x00080000 // Event messages\r
519 # DEBUG_GCD 0x00100000 // Global Coherency Database changes\r
520 # DEBUG_CACHE 0x00200000 // Memory range cachability changes\r
521 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may\r
522 # // significantly impact boot performance\r
523 # DEBUG_ERROR 0x80000000 // Error\r
524 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F\r
525\r
526!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
527 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17\r
528!else\r
529 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F\r
530!endif\r
531\r
c712ce2b
SB
532!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
533 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2\r
534!endif\r
535\r
536 #\r
537 # The NumberOfPages values below are ad-hoc. They are updated sporadically at\r
538 # best (please refer to git-blame for past updates). The values capture a set\r
539 # of BIN hints that made sense at a particular time, for some (now likely\r
540 # unknown) workloads / boot paths.\r
541 #\r
542 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80\r
543 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10\r
544 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80\r
545 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100\r
546 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100\r
547\r
548 #\r
549 # Network Pcds\r
550 #\r
551!include NetworkPkg/NetworkPcds.dsc.inc\r
552\r
553 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000\r
554\r
555!if $(SMM_REQUIRE) == TRUE\r
556 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000\r
557!endif\r
558\r
c712ce2b
SB
559 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf\r
560 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }\r
561\r
562################################################################################\r
563#\r
564# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform\r
565#\r
566################################################################################\r
567\r
568[PcdsDynamicDefault]\r
569 # only set when\r
570 # ($(SMM_REQUIRE) == FALSE)\r
571 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0\r
572\r
573!if $(SMM_REQUIRE) == FALSE\r
574 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0\r
575 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0\r
576 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0\r
577 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0\r
578 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0\r
579!endif\r
c712ce2b
SB
580 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE\r
581 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0\r
582 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0\r
583 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0\r
584 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0\r
585 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0\r
586 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0\r
c712ce2b 587 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000\r
c712ce2b 588\r
a2da72b2 589 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000\r
c712ce2b
SB
590 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0\r
591\r
c712ce2b
SB
592 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208\r
593 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0\r
594 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE\r
595\r
596 # Noexec settings for DXE.\r
597 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE\r
598\r
599 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.\r
600 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64\r
601 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0\r
602\r
603 # Set memory encryption mask\r
604 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0\r
605\r
fd306d1d
MX
606 # Set Tdx shared bit mask\r
607 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0\r
608\r
c712ce2b
SB
609 # Set SEV-ES defaults\r
610 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0\r
611 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0\r
612 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0\r
613\r
614!if $(SMM_REQUIRE) == TRUE\r
c712ce2b
SB
615 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01\r
616 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000\r
617!endif\r
618\r
619 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00\r
620\r
621!include OvmfPkg/OvmfTpmPcds.dsc.inc\r
622\r
623 # IPv4 and IPv6 PXE Boot support.\r
624 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01\r
625 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01\r
626\r
627 # Set ConfidentialComputing defaults\r
628 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0\r
629\r
630[PcdsDynamicHii]\r
631!include OvmfPkg/OvmfTpmPcdsHii.dsc.inc\r
632\r
633################################################################################\r
634#\r
635# Components Section - list of all EDK II Modules needed by this Platform.\r
636#\r
637################################################################################\r
638[Components]\r
e1c7f9b4 639 OvmfPkg/XenResetVector/XenResetVector.inf\r
c712ce2b
SB
640\r
641 #\r
642 # SEC Phase modules\r
643 #\r
644 OvmfPkg/Sec/SecMain.inf {\r
645 <LibraryClasses>\r
646 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
647 }\r
648\r
649 #\r
650 # PEI Phase modules\r
651 #\r
652 MdeModulePkg/Core/Pei/PeiMain.inf\r
653 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r
654 <LibraryClasses>\r
655 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
656 }\r
657 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {\r
658 <LibraryClasses>\r
659 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
660 }\r
661 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {\r
662 <LibraryClasses>\r
663 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
664 }\r
665 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r
666\r
667 OvmfPkg/PlatformPei/PlatformPei.inf\r
668 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {\r
669 <LibraryClasses>\r
670!if $(SMM_REQUIRE) == TRUE\r
671 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf\r
672!endif\r
673 }\r
674!if $(SMM_REQUIRE) == TRUE\r
675 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf\r
676 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r
677 OvmfPkg/SmmAccess/SmmAccessPei.inf\r
678!endif\r
679 UefiCpuPkg/CpuMpPei/CpuMpPei.inf\r
680\r
681!include OvmfPkg/OvmfTpmComponentsPei.dsc.inc\r
682\r
683 #\r
684 # DXE Phase modules\r
685 #\r
686 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
687 <LibraryClasses>\r
688 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
689 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
690 }\r
691\r
692 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf\r
693 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf\r
694 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {\r
695 <LibraryClasses>\r
696 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
697 }\r
698\r
699 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
700\r
701 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {\r
702 <LibraryClasses>\r
703!if $(SECURE_BOOT_ENABLE) == TRUE\r
704 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf\r
705!include OvmfPkg/OvmfTpmSecurityStub.dsc.inc\r
706!endif\r
707 }\r
708\r
709 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf\r
c712ce2b
SB
710 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf\r
711 UefiCpuPkg/CpuDxe/CpuDxe.inf\r
c2e7be40 712 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf\r
c712ce2b
SB
713 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf\r
714 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf\r
715 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {\r
716 <LibraryClasses>\r
717 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf\r
718 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf\r
719 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf\r
720 }\r
721 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {\r
722 <LibraryClasses>\r
723 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
724 }\r
725 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf\r
726 MdeModulePkg/Universal/Metronome/Metronome.inf\r
727 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf\r
728 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf\r
729 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {\r
730 <LibraryClasses>\r
731 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf\r
c712ce2b
SB
732 }\r
733 MdeModulePkg/Logo/LogoDxe.inf\r
734 MdeModulePkg/Application/UiApp/UiApp.inf {\r
735 <LibraryClasses>\r
736 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf\r
737 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf\r
738 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf\r
c712ce2b
SB
739 }\r
740 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {\r
741 <LibraryClasses>\r
742 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf\r
743 }\r
744 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf\r
745 OvmfPkg/Virtio10Dxe/Virtio10.inf\r
746 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r
747 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf\r
748 OvmfPkg/VirtioRngDxe/VirtioRng.inf\r
749!if $(PVSCSI_ENABLE) == TRUE\r
750 OvmfPkg/PvScsiDxe/PvScsiDxe.inf\r
751!endif\r
752!if $(MPT_SCSI_ENABLE) == TRUE\r
753 OvmfPkg/MptScsiDxe/MptScsiDxe.inf\r
754!endif\r
755!if $(LSI_SCSI_ENABLE) == TRUE\r
756 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf\r
757!endif\r
758 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
759 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
760 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
761 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
762 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
763 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {\r
764 <LibraryClasses>\r
765 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
766 }\r
767 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
768 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {\r
769 <LibraryClasses>\r
770 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
771 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
772 }\r
773 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
774 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
775 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf\r
776 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
777 FatPkg/EnhancedFatDxe/Fat.inf\r
778 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf\r
779 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf\r
780 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
781 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
782 OvmfPkg/SataControllerDxe/SataControllerDxe.inf\r
783 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf\r
784 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf\r
785 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf\r
786 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
787 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
788 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
789 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf\r
790\r
c712ce2b 791 #\r
6ecdda71 792 # Serial Support\r
c712ce2b 793 #\r
6ecdda71 794 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r
c712ce2b
SB
795\r
796 #\r
797 # SMBIOS Support\r
798 #\r
799 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {\r
800 <LibraryClasses>\r
801 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf\r
802 }\r
803 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf\r
804\r
805 #\r
806 # ACPI Support\r
807 #\r
808 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
809 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf\r
810 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf\r
811 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf\r
812 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf\r
813\r
814 #\r
815 # Network Support\r
816 #\r
817!include NetworkPkg/NetworkComponents.dsc.inc\r
818\r
819 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {\r
820 <LibraryClasses>\r
821 NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf\r
822 }\r
823\r
824!if $(NETWORK_TLS_ENABLE) == TRUE\r
825 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {\r
826 <LibraryClasses>\r
827 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf\r
828 }\r
829!endif\r
830 OvmfPkg/VirtioNetDxe/VirtioNet.inf\r
831\r
c712ce2b
SB
832!if $(TOOL_CHAIN_TAG) != "XCODE5"\r
833 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {\r
834 <PcdsFixedAtBuild>\r
835 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
836 }\r
837 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {\r
838 <PcdsFixedAtBuild>\r
839 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
840 }\r
841 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {\r
842 <PcdsFixedAtBuild>\r
843 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
844 }\r
845!endif\r
846 ShellPkg/Application/Shell/Shell.inf {\r
847 <LibraryClasses>\r
848 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf\r
849 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf\r
850 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf\r
851 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf\r
852 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf\r
853 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf\r
854 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf\r
855 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf\r
856!if $(NETWORK_IP6_ENABLE) == TRUE\r
857 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf\r
858!endif\r
859 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf\r
860 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
861 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf\r
862\r
863 <PcdsFixedAtBuild>\r
864 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF\r
865 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
866 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000\r
867 }\r
868\r
869!if $(SECURE_BOOT_ENABLE) == TRUE\r
870 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
871 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf\r
872!endif\r
873\r
874 OvmfPkg/PlatformDxe/Platform.inf\r
875 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {\r
876 <LibraryClasses>\r
877 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf\r
878 }\r
879 OvmfPkg/IoMmuDxe/IoMmuDxe.inf\r
880\r
881!if $(SMM_REQUIRE) == TRUE\r
882 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf\r
883 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf\r
884 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf\r
885\r
886 #\r
887 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)\r
888 #\r
889 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf\r
890\r
891 #\r
892 # SMM_CORE\r
893 #\r
894 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf\r
895\r
896 #\r
897 # Privileged drivers (DXE_SMM_DRIVER modules)\r
898 #\r
899 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf\r
900 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf\r
901 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {\r
902 <LibraryClasses>\r
903 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf\r
904 }\r
905 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {\r
906 <LibraryClasses>\r
907 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf\r
908 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf\r
909 }\r
910\r
911 #\r
912 # Variable driver stack (SMM)\r
913 #\r
c28e376e
BS
914 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {\r
915 <LibraryClasses>\r
916 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf\r
917 }\r
c712ce2b
SB
918 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf\r
919 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {\r
920 <LibraryClasses>\r
921 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf\r
922 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf\r
923 }\r
924 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf\r
925\r
926!else\r
927\r
928 #\r
929 # Variable driver stack (non-SMM)\r
930 #\r
931 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf\r
932 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {\r
933 <LibraryClasses>\r
934 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf\r
935 }\r
936 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r
937 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {\r
938 <LibraryClasses>\r
939 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf\r
940 }\r
941!endif\r
942\r
943 #\r
944 # TPM support\r
945 #\r
946!include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc\r