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