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