]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/CloudHv/CloudHvX64.dsc
OvmfPkg: Introduce IntelTdxX64 for TDVF Config-B
[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
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
c712ce2b
SB
176 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf\r
177 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf\r
178 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf\r
179 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf\r
180 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf\r
181 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf\r
182!if $(SMM_REQUIRE) == FALSE\r
183 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf\r
184!endif\r
185 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf\r
186 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf\r
25201821 187 MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf\r
c712ce2b
SB
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!include OvmfPkg/OvmfTpmLibs.dsc.inc\r
237\r
238[LibraryClasses.common]\r
239 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
240 VmgExitLib|OvmfPkg/Library/VmgExitLib/VmgExitLib.inf\r
2b80269d 241 TdxLib|MdePkg/Library/TdxLib/TdxLib.inf\r
c712ce2b
SB
242\r
243[LibraryClasses.common.SEC]\r
244 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf\r
c712ce2b
SB
245!ifdef $(DEBUG_ON_SERIAL_PORT)\r
246 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
247!else\r
248 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf\r
249!endif\r
250 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf\r
251 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf\r
252!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
253 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf\r
254!endif\r
255 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
256 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
257 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
258 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
259!if $(TOOL_CHAIN_TAG) == "XCODE5"\r
260 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf\r
261!else\r
262 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf\r
263!endif\r
264 VmgExitLib|OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf\r
265 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf\r
266\r
267[LibraryClasses.common.PEI_CORE]\r
268 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
269 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
270 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
271 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
272 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf\r
273 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf\r
274 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
275 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
276!ifdef $(DEBUG_ON_SERIAL_PORT)\r
277 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
278!else\r
279 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
280!endif\r
281 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf\r
282\r
283[LibraryClasses.common.PEIM]\r
284 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
285 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
286 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
287 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
288 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r
289 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf\r
290 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
291 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
292!ifdef $(DEBUG_ON_SERIAL_PORT)\r
293 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
294!else\r
295 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
296!endif\r
297 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf\r
298 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf\r
299 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf\r
300!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
301 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf\r
302!endif\r
303 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf\r
304 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf\r
305 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf\r
306 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
307 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf\r
308\r
309!include OvmfPkg/OvmfTpmLibsPeim.dsc.inc\r
310\r
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
398!include OvmfPkg/OvmfTpmLibsDxe.dsc.inc\r
399\r
400[LibraryClasses.common.UEFI_APPLICATION]\r
401 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
402 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
403 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
404 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
405 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
406 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
407!ifdef $(DEBUG_ON_SERIAL_PORT)\r
408 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
409!else\r
410 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
411!endif\r
412 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
413\r
414[LibraryClasses.common.DXE_SMM_DRIVER]\r
415 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
416 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
417 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
418 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf\r
419 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
420 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
421 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
422 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf\r
423 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf\r
424!ifdef $(DEBUG_ON_SERIAL_PORT)\r
425 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
426!else\r
427 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
428!endif\r
429 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf\r
430!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
431 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf\r
432!endif\r
433 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf\r
434 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
435\r
436[LibraryClasses.common.SMM_CORE]\r
437 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
438 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
439 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
440 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf\r
441 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf\r
442 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
443 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
444 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
445 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf\r
446!ifdef $(DEBUG_ON_SERIAL_PORT)\r
447 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
448!else\r
449 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
450!endif\r
451 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
452\r
453################################################################################\r
454#\r
455# Pcd Section - list of all EDK II PCD Entries defined by this Platform.\r
456#\r
457################################################################################\r
458[PcdsFeatureFlag]\r
459 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE\r
460 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE\r
461 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE\r
462 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r
463 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE\r
464 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE\r
c712ce2b
SB
465!if $(SMM_REQUIRE) == TRUE\r
466 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE\r
467 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE\r
468 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE\r
469!endif\r
470\r
471[PcdsFixedAtBuild]\r
472 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1\r
473!if $(SMM_REQUIRE) == FALSE\r
474 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE\r
475!endif\r
476 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10\r
477 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0\r
478!if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)\r
479 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000\r
480 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800\r
481!if $(NETWORK_TLS_ENABLE) == FALSE\r
482 # match PcdFlashNvStorageVariableSize purely for convenience\r
483 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000\r
484!endif\r
485!endif\r
486!if $(FD_SIZE_IN_KB) == 4096\r
487 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400\r
488 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400\r
489!if $(NETWORK_TLS_ENABLE) == FALSE\r
490 # match PcdFlashNvStorageVariableSize purely for convenience\r
491 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000\r
492!endif\r
493!endif\r
494!if $(NETWORK_TLS_ENABLE) == TRUE\r
495 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000\r
496 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000\r
497!endif\r
498\r
499 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0\r
500 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE\r
501 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE\r
502\r
503 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07\r
504\r
505 # DEBUG_INIT 0x00000001 // Initialization\r
506 # DEBUG_WARN 0x00000002 // Warnings\r
507 # DEBUG_LOAD 0x00000004 // Load events\r
508 # DEBUG_FS 0x00000008 // EFI File system\r
509 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)\r
510 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)\r
511 # DEBUG_INFO 0x00000040 // Informational debug messages\r
512 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers\r
513 # DEBUG_VARIABLE 0x00000100 // Variable\r
514 # DEBUG_BM 0x00000400 // Boot Manager\r
515 # DEBUG_BLKIO 0x00001000 // BlkIo Driver\r
516 # DEBUG_NET 0x00004000 // SNP Driver\r
517 # DEBUG_UNDI 0x00010000 // UNDI Driver\r
518 # DEBUG_LOADFILE 0x00020000 // LoadFile\r
519 # DEBUG_EVENT 0x00080000 // Event messages\r
520 # DEBUG_GCD 0x00100000 // Global Coherency Database changes\r
521 # DEBUG_CACHE 0x00200000 // Memory range cachability changes\r
522 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may\r
523 # // significantly impact boot performance\r
524 # DEBUG_ERROR 0x80000000 // Error\r
525 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F\r
526\r
527!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
528 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17\r
529!else\r
530 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F\r
531!endif\r
532\r
c712ce2b
SB
533!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
534 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2\r
535!endif\r
536\r
537 #\r
538 # The NumberOfPages values below are ad-hoc. They are updated sporadically at\r
539 # best (please refer to git-blame for past updates). The values capture a set\r
540 # of BIN hints that made sense at a particular time, for some (now likely\r
541 # unknown) workloads / boot paths.\r
542 #\r
543 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80\r
544 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10\r
545 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80\r
546 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100\r
547 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100\r
548\r
549 #\r
550 # Network Pcds\r
551 #\r
552!include NetworkPkg/NetworkPcds.dsc.inc\r
553\r
554 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000\r
555\r
556!if $(SMM_REQUIRE) == TRUE\r
557 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000\r
558!endif\r
559\r
c712ce2b
SB
560 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf\r
561 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }\r
562\r
563################################################################################\r
564#\r
565# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform\r
566#\r
567################################################################################\r
568\r
569[PcdsDynamicDefault]\r
570 # only set when\r
571 # ($(SMM_REQUIRE) == FALSE)\r
572 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0\r
573\r
574!if $(SMM_REQUIRE) == FALSE\r
575 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0\r
576 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0\r
577 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0\r
578 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0\r
579 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0\r
580!endif\r
c712ce2b
SB
581 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE\r
582 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0\r
583 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0\r
584 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0\r
585 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0\r
586 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0\r
587 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0\r
c712ce2b 588 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000\r
c712ce2b 589\r
a2da72b2 590 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000\r
c712ce2b
SB
591 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0\r
592\r
c712ce2b
SB
593 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208\r
594 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0\r
595 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE\r
596\r
597 # Noexec settings for DXE.\r
598 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE\r
599\r
600 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.\r
601 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64\r
602 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0\r
603\r
604 # Set memory encryption mask\r
605 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0\r
606\r
fd306d1d
MX
607 # Set Tdx shared bit mask\r
608 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0\r
609\r
c712ce2b
SB
610 # Set SEV-ES defaults\r
611 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0\r
612 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0\r
613 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0\r
614\r
615!if $(SMM_REQUIRE) == TRUE\r
c712ce2b
SB
616 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01\r
617 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000\r
618!endif\r
619\r
620 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00\r
621\r
622!include OvmfPkg/OvmfTpmPcds.dsc.inc\r
623\r
624 # IPv4 and IPv6 PXE Boot support.\r
625 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01\r
626 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01\r
627\r
628 # Set ConfidentialComputing defaults\r
629 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0\r
630\r
631[PcdsDynamicHii]\r
632!include OvmfPkg/OvmfTpmPcdsHii.dsc.inc\r
633\r
634################################################################################\r
635#\r
636# Components Section - list of all EDK II Modules needed by this Platform.\r
637#\r
638################################################################################\r
639[Components]\r
e1c7f9b4 640 OvmfPkg/XenResetVector/XenResetVector.inf\r
c712ce2b
SB
641\r
642 #\r
643 # SEC Phase modules\r
644 #\r
645 OvmfPkg/Sec/SecMain.inf {\r
646 <LibraryClasses>\r
647 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
648 }\r
649\r
650 #\r
651 # PEI Phase modules\r
652 #\r
653 MdeModulePkg/Core/Pei/PeiMain.inf\r
654 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r
655 <LibraryClasses>\r
656 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
657 }\r
658 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {\r
659 <LibraryClasses>\r
660 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
661 }\r
662 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {\r
663 <LibraryClasses>\r
664 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
665 }\r
666 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r
667\r
668 OvmfPkg/PlatformPei/PlatformPei.inf\r
669 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {\r
670 <LibraryClasses>\r
671!if $(SMM_REQUIRE) == TRUE\r
672 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf\r
673!endif\r
674 }\r
675!if $(SMM_REQUIRE) == TRUE\r
676 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf\r
677 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r
678 OvmfPkg/SmmAccess/SmmAccessPei.inf\r
679!endif\r
680 UefiCpuPkg/CpuMpPei/CpuMpPei.inf\r
681\r
682!include OvmfPkg/OvmfTpmComponentsPei.dsc.inc\r
683\r
684 #\r
685 # DXE Phase modules\r
686 #\r
687 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
688 <LibraryClasses>\r
689 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
690 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
691 }\r
692\r
693 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf\r
694 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf\r
695 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {\r
696 <LibraryClasses>\r
697 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
698 }\r
699\r
700 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
701\r
702 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {\r
703 <LibraryClasses>\r
704!if $(SECURE_BOOT_ENABLE) == TRUE\r
705 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf\r
706!include OvmfPkg/OvmfTpmSecurityStub.dsc.inc\r
707!endif\r
708 }\r
709\r
710 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf\r
c712ce2b
SB
711 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf\r
712 UefiCpuPkg/CpuDxe/CpuDxe.inf\r
c2e7be40 713 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf\r
c712ce2b
SB
714 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf\r
715 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf\r
716 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {\r
717 <LibraryClasses>\r
718 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf\r
719 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf\r
720 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf\r
721 }\r
722 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {\r
723 <LibraryClasses>\r
724 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
725 }\r
726 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf\r
727 MdeModulePkg/Universal/Metronome/Metronome.inf\r
728 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf\r
729 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf\r
730 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {\r
731 <LibraryClasses>\r
732 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf\r
c712ce2b
SB
733 }\r
734 MdeModulePkg/Logo/LogoDxe.inf\r
735 MdeModulePkg/Application/UiApp/UiApp.inf {\r
736 <LibraryClasses>\r
737 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf\r
738 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf\r
739 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf\r
c712ce2b
SB
740 }\r
741 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {\r
742 <LibraryClasses>\r
743 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf\r
744 }\r
745 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf\r
746 OvmfPkg/Virtio10Dxe/Virtio10.inf\r
747 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r
748 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf\r
749 OvmfPkg/VirtioRngDxe/VirtioRng.inf\r
750!if $(PVSCSI_ENABLE) == TRUE\r
751 OvmfPkg/PvScsiDxe/PvScsiDxe.inf\r
752!endif\r
753!if $(MPT_SCSI_ENABLE) == TRUE\r
754 OvmfPkg/MptScsiDxe/MptScsiDxe.inf\r
755!endif\r
756!if $(LSI_SCSI_ENABLE) == TRUE\r
757 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf\r
758!endif\r
759 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
760 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
761 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
762 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
763 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
764 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {\r
765 <LibraryClasses>\r
766 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
767 }\r
768 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
769 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {\r
770 <LibraryClasses>\r
771 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
772 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
773 }\r
774 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
775 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
776 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf\r
777 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
778 FatPkg/EnhancedFatDxe/Fat.inf\r
779 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf\r
780 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf\r
781 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
782 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
783 OvmfPkg/SataControllerDxe/SataControllerDxe.inf\r
784 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf\r
785 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf\r
786 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf\r
787 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
788 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
789 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
790 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf\r
791\r
c712ce2b 792 #\r
6ecdda71 793 # Serial Support\r
c712ce2b 794 #\r
6ecdda71 795 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r
c712ce2b
SB
796\r
797 #\r
798 # SMBIOS Support\r
799 #\r
800 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {\r
801 <LibraryClasses>\r
802 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf\r
803 }\r
804 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf\r
805\r
806 #\r
807 # ACPI Support\r
808 #\r
809 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
810 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf\r
811 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf\r
812 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf\r
813 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf\r
814\r
815 #\r
816 # Network Support\r
817 #\r
818!include NetworkPkg/NetworkComponents.dsc.inc\r
819\r
820 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {\r
821 <LibraryClasses>\r
822 NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf\r
823 }\r
824\r
825!if $(NETWORK_TLS_ENABLE) == TRUE\r
826 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {\r
827 <LibraryClasses>\r
828 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf\r
829 }\r
830!endif\r
831 OvmfPkg/VirtioNetDxe/VirtioNet.inf\r
832\r
c712ce2b
SB
833!if $(TOOL_CHAIN_TAG) != "XCODE5"\r
834 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {\r
835 <PcdsFixedAtBuild>\r
836 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
837 }\r
838 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {\r
839 <PcdsFixedAtBuild>\r
840 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
841 }\r
842 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {\r
843 <PcdsFixedAtBuild>\r
844 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
845 }\r
846!endif\r
847 ShellPkg/Application/Shell/Shell.inf {\r
848 <LibraryClasses>\r
849 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf\r
850 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf\r
851 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf\r
852 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf\r
853 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf\r
854 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf\r
855 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf\r
856 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf\r
857!if $(NETWORK_IP6_ENABLE) == TRUE\r
858 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf\r
859!endif\r
860 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf\r
861 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
862 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf\r
863\r
864 <PcdsFixedAtBuild>\r
865 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF\r
866 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
867 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000\r
868 }\r
869\r
870!if $(SECURE_BOOT_ENABLE) == TRUE\r
871 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
872 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf\r
873!endif\r
874\r
875 OvmfPkg/PlatformDxe/Platform.inf\r
876 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {\r
877 <LibraryClasses>\r
878 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf\r
879 }\r
880 OvmfPkg/IoMmuDxe/IoMmuDxe.inf\r
881\r
882!if $(SMM_REQUIRE) == TRUE\r
883 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf\r
884 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf\r
885 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf\r
886\r
887 #\r
888 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)\r
889 #\r
890 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf\r
891\r
892 #\r
893 # SMM_CORE\r
894 #\r
895 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf\r
896\r
897 #\r
898 # Privileged drivers (DXE_SMM_DRIVER modules)\r
899 #\r
900 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf\r
901 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf\r
902 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {\r
903 <LibraryClasses>\r
904 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf\r
905 }\r
906 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {\r
907 <LibraryClasses>\r
908 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf\r
909 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf\r
910 }\r
911\r
912 #\r
913 # Variable driver stack (SMM)\r
914 #\r
c28e376e
BS
915 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {\r
916 <LibraryClasses>\r
917 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf\r
918 }\r
c712ce2b
SB
919 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf\r
920 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {\r
921 <LibraryClasses>\r
922 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf\r
923 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf\r
924 }\r
925 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf\r
926\r
927!else\r
928\r
929 #\r
930 # Variable driver stack (non-SMM)\r
931 #\r
932 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf\r
933 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {\r
934 <LibraryClasses>\r
935 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf\r
936 }\r
937 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r
938 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {\r
939 <LibraryClasses>\r
940 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf\r
941 }\r
942!endif\r
943\r
944 #\r
945 # TPM support\r
946 #\r
947!include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc\r