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