]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/CloudHv/CloudHvX64.dsc
UefiCpuPkg/ResetVector:Add Option to reserve 4K region at 4GB
[mirror_edk2.git] / OvmfPkg / CloudHv / CloudHvX64.dsc
CommitLineData
c712ce2b
SB
1## @file\r
2# EFI/Framework Open Virtual Machine Firmware (OVMF) platform\r
3#\r
4# Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>\r
5# (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
6# Copyright (c) Microsoft Corporation.\r
7#\r
8# SPDX-License-Identifier: BSD-2-Clause-Patent\r
9#\r
10##\r
11\r
12################################################################################\r
13#\r
14# Defines Section - statements that will be processed to create a Makefile.\r
15#\r
16################################################################################\r
17[Defines]\r
18 PLATFORM_NAME = CloudHv\r
19 PLATFORM_GUID = 97bb49d2-9814-4bea-8311-f8b9ac231e11\r
20 PLATFORM_VERSION = 0.1\r
21 DSC_SPECIFICATION = 0x00010005\r
22 OUTPUT_DIRECTORY = Build/CloudHvX64\r
23 SUPPORTED_ARCHITECTURES = X64\r
24 BUILD_TARGETS = NOOPT|DEBUG|RELEASE\r
25 SKUID_IDENTIFIER = DEFAULT\r
26 FLASH_DEFINITION = OvmfPkg/CloudHv/CloudHvX64.fdf\r
27\r
28 #\r
29 # Defines for default states. These can be changed on the command line.\r
30 # -D FLAG=VALUE\r
31 #\r
32 DEFINE SECURE_BOOT_ENABLE = FALSE\r
33 DEFINE SMM_REQUIRE = FALSE\r
34 DEFINE SOURCE_DEBUG_ENABLE = FALSE\r
35\r
36!include OvmfPkg/OvmfTpmDefines.dsc.inc\r
37\r
38 #\r
39 # Network definition\r
40 #\r
41 DEFINE NETWORK_TLS_ENABLE = FALSE\r
42 DEFINE NETWORK_IP6_ENABLE = FALSE\r
43 DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE\r
44 DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE\r
45 DEFINE NETWORK_ISCSI_ENABLE = TRUE\r
46\r
47!include NetworkPkg/NetworkDefines.dsc.inc\r
48\r
49 #\r
50 # Device drivers\r
51 #\r
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
250!include OvmfPkg/OvmfTpmLibs.dsc.inc\r
251\r
252[LibraryClasses.common]\r
253 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
254 VmgExitLib|OvmfPkg/Library/VmgExitLib/VmgExitLib.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
278 VmgExitLib|OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf\r
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
406 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf\r
407 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf\r
408 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf\r
409\r
c712ce2b
SB
410[LibraryClasses.common.UEFI_APPLICATION]\r
411 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
412 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
413 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
414 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
415 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
416 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
417!ifdef $(DEBUG_ON_SERIAL_PORT)\r
418 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
419!else\r
420 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
421!endif\r
422 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
423\r
424[LibraryClasses.common.DXE_SMM_DRIVER]\r
425 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
426 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
427 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
428 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf\r
429 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
430 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
431 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
432 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf\r
433 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf\r
434!ifdef $(DEBUG_ON_SERIAL_PORT)\r
435 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
436!else\r
437 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
438!endif\r
439 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf\r
440!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
441 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf\r
442!endif\r
443 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf\r
444 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
7fda517c 445 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf\r
c712ce2b
SB
446\r
447[LibraryClasses.common.SMM_CORE]\r
448 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
449 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
450 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
451 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf\r
452 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf\r
453 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
454 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
455 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
456 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf\r
457!ifdef $(DEBUG_ON_SERIAL_PORT)\r
458 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
459!else\r
460 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
461!endif\r
462 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
463\r
464################################################################################\r
465#\r
466# Pcd Section - list of all EDK II PCD Entries defined by this Platform.\r
467#\r
468################################################################################\r
469[PcdsFeatureFlag]\r
470 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE\r
471 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE\r
472 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE\r
473 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r
474 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE\r
475 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE\r
c712ce2b
SB
476!if $(SMM_REQUIRE) == TRUE\r
477 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE\r
478 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE\r
479 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE\r
480!endif\r
481\r
482[PcdsFixedAtBuild]\r
483 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1\r
484!if $(SMM_REQUIRE) == FALSE\r
485 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE\r
486!endif\r
487 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10\r
488 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0\r
489!if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)\r
490 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000\r
491 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800\r
492!if $(NETWORK_TLS_ENABLE) == FALSE\r
493 # match PcdFlashNvStorageVariableSize purely for convenience\r
494 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000\r
495!endif\r
496!endif\r
497!if $(FD_SIZE_IN_KB) == 4096\r
498 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400\r
499 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400\r
500!if $(NETWORK_TLS_ENABLE) == FALSE\r
501 # match PcdFlashNvStorageVariableSize purely for convenience\r
502 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000\r
503!endif\r
504!endif\r
505!if $(NETWORK_TLS_ENABLE) == TRUE\r
506 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000\r
507 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000\r
508!endif\r
509\r
510 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0\r
511 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE\r
512 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE\r
513\r
514 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07\r
515\r
516 # DEBUG_INIT 0x00000001 // Initialization\r
517 # DEBUG_WARN 0x00000002 // Warnings\r
518 # DEBUG_LOAD 0x00000004 // Load events\r
519 # DEBUG_FS 0x00000008 // EFI File system\r
520 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)\r
521 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)\r
522 # DEBUG_INFO 0x00000040 // Informational debug messages\r
523 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers\r
524 # DEBUG_VARIABLE 0x00000100 // Variable\r
525 # DEBUG_BM 0x00000400 // Boot Manager\r
526 # DEBUG_BLKIO 0x00001000 // BlkIo Driver\r
527 # DEBUG_NET 0x00004000 // SNP Driver\r
528 # DEBUG_UNDI 0x00010000 // UNDI Driver\r
529 # DEBUG_LOADFILE 0x00020000 // LoadFile\r
530 # DEBUG_EVENT 0x00080000 // Event messages\r
531 # DEBUG_GCD 0x00100000 // Global Coherency Database changes\r
532 # DEBUG_CACHE 0x00200000 // Memory range cachability changes\r
533 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may\r
534 # // significantly impact boot performance\r
535 # DEBUG_ERROR 0x80000000 // Error\r
536 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F\r
537\r
538!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
539 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17\r
540!else\r
541 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F\r
542!endif\r
543\r
c712ce2b
SB
544!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
545 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2\r
546!endif\r
547\r
548 #\r
549 # The NumberOfPages values below are ad-hoc. They are updated sporadically at\r
550 # best (please refer to git-blame for past updates). The values capture a set\r
551 # of BIN hints that made sense at a particular time, for some (now likely\r
552 # unknown) workloads / boot paths.\r
553 #\r
554 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80\r
555 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10\r
556 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80\r
557 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100\r
558 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100\r
559\r
560 #\r
561 # Network Pcds\r
562 #\r
563!include NetworkPkg/NetworkPcds.dsc.inc\r
564\r
565 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000\r
566\r
567!if $(SMM_REQUIRE) == TRUE\r
568 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000\r
569!endif\r
570\r
c712ce2b
SB
571 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf\r
572 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }\r
573\r
574################################################################################\r
575#\r
576# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform\r
577#\r
578################################################################################\r
579\r
580[PcdsDynamicDefault]\r
581 # only set when\r
582 # ($(SMM_REQUIRE) == FALSE)\r
583 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0\r
584\r
585!if $(SMM_REQUIRE) == FALSE\r
586 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0\r
587 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0\r
588 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0\r
589 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0\r
590 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0\r
591!endif\r
c712ce2b
SB
592 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE\r
593 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0\r
594 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0\r
595 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0\r
596 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0\r
597 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0\r
598 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0\r
c712ce2b 599 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000\r
c712ce2b 600\r
a2da72b2 601 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000\r
c712ce2b
SB
602 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0\r
603\r
c712ce2b
SB
604 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208\r
605 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0\r
606 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE\r
607\r
608 # Noexec settings for DXE.\r
609 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE\r
610\r
611 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.\r
612 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64\r
613 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0\r
614\r
615 # Set memory encryption mask\r
616 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0\r
617\r
fd306d1d
MX
618 # Set Tdx shared bit mask\r
619 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0\r
620\r
c712ce2b
SB
621 # Set SEV-ES defaults\r
622 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0\r
623 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0\r
624 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0\r
625\r
626!if $(SMM_REQUIRE) == TRUE\r
c712ce2b
SB
627 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01\r
628 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000\r
629!endif\r
630\r
631 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00\r
632\r
633!include OvmfPkg/OvmfTpmPcds.dsc.inc\r
634\r
635 # IPv4 and IPv6 PXE Boot support.\r
636 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01\r
637 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01\r
638\r
639 # Set ConfidentialComputing defaults\r
640 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0\r
641\r
642[PcdsDynamicHii]\r
643!include OvmfPkg/OvmfTpmPcdsHii.dsc.inc\r
644\r
645################################################################################\r
646#\r
647# Components Section - list of all EDK II Modules needed by this Platform.\r
648#\r
649################################################################################\r
650[Components]\r
e1c7f9b4 651 OvmfPkg/XenResetVector/XenResetVector.inf\r
c712ce2b
SB
652\r
653 #\r
654 # SEC Phase modules\r
655 #\r
656 OvmfPkg/Sec/SecMain.inf {\r
657 <LibraryClasses>\r
658 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
659 }\r
660\r
661 #\r
662 # PEI Phase modules\r
663 #\r
664 MdeModulePkg/Core/Pei/PeiMain.inf\r
665 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r
666 <LibraryClasses>\r
667 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
668 }\r
669 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {\r
670 <LibraryClasses>\r
671 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
672 }\r
673 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {\r
674 <LibraryClasses>\r
675 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
676 }\r
677 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r
678\r
679 OvmfPkg/PlatformPei/PlatformPei.inf\r
680 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {\r
681 <LibraryClasses>\r
682!if $(SMM_REQUIRE) == TRUE\r
683 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf\r
684!endif\r
685 }\r
686!if $(SMM_REQUIRE) == TRUE\r
687 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf\r
688 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r
689 OvmfPkg/SmmAccess/SmmAccessPei.inf\r
690!endif\r
691 UefiCpuPkg/CpuMpPei/CpuMpPei.inf\r
692\r
693!include OvmfPkg/OvmfTpmComponentsPei.dsc.inc\r
694\r
695 #\r
696 # DXE Phase modules\r
697 #\r
698 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
699 <LibraryClasses>\r
700 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
701 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
702 }\r
703\r
704 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf\r
705 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf\r
706 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {\r
707 <LibraryClasses>\r
708 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
709 }\r
710\r
711 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
712\r
713 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {\r
714 <LibraryClasses>\r
715!if $(SECURE_BOOT_ENABLE) == TRUE\r
716 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf\r
717!include OvmfPkg/OvmfTpmSecurityStub.dsc.inc\r
718!endif\r
719 }\r
720\r
721 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf\r
c712ce2b
SB
722 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf\r
723 UefiCpuPkg/CpuDxe/CpuDxe.inf\r
c2e7be40 724 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf\r
c712ce2b
SB
725 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf\r
726 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf\r
727 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {\r
728 <LibraryClasses>\r
729 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf\r
730 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf\r
731 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf\r
732 }\r
733 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {\r
734 <LibraryClasses>\r
735 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
736 }\r
737 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf\r
738 MdeModulePkg/Universal/Metronome/Metronome.inf\r
739 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf\r
740 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf\r
741 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {\r
742 <LibraryClasses>\r
743 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf\r
c712ce2b
SB
744 }\r
745 MdeModulePkg/Logo/LogoDxe.inf\r
746 MdeModulePkg/Application/UiApp/UiApp.inf {\r
747 <LibraryClasses>\r
748 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf\r
749 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf\r
750 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf\r
c712ce2b
SB
751 }\r
752 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {\r
753 <LibraryClasses>\r
754 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf\r
755 }\r
756 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf\r
757 OvmfPkg/Virtio10Dxe/Virtio10.inf\r
758 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r
759 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf\r
760 OvmfPkg/VirtioRngDxe/VirtioRng.inf\r
761!if $(PVSCSI_ENABLE) == TRUE\r
762 OvmfPkg/PvScsiDxe/PvScsiDxe.inf\r
763!endif\r
764!if $(MPT_SCSI_ENABLE) == TRUE\r
765 OvmfPkg/MptScsiDxe/MptScsiDxe.inf\r
766!endif\r
767!if $(LSI_SCSI_ENABLE) == TRUE\r
768 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf\r
769!endif\r
770 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
771 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
772 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
773 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
774 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
775 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {\r
776 <LibraryClasses>\r
777 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
778 }\r
779 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
780 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {\r
781 <LibraryClasses>\r
782 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
783 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
784 }\r
785 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
786 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
787 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf\r
788 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
789 FatPkg/EnhancedFatDxe/Fat.inf\r
790 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf\r
791 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf\r
792 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
793 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
794 OvmfPkg/SataControllerDxe/SataControllerDxe.inf\r
795 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf\r
796 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf\r
797 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf\r
798 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
799 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
800 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
801 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf\r
802\r
c712ce2b 803 #\r
6ecdda71 804 # Serial Support\r
c712ce2b 805 #\r
6ecdda71 806 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r
c712ce2b
SB
807\r
808 #\r
809 # SMBIOS Support\r
810 #\r
811 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {\r
812 <LibraryClasses>\r
813 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf\r
814 }\r
815 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf\r
816\r
817 #\r
818 # ACPI Support\r
819 #\r
820 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
821 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf\r
822 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf\r
823 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf\r
824 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf\r
825\r
826 #\r
827 # Network Support\r
828 #\r
829!include NetworkPkg/NetworkComponents.dsc.inc\r
d933ec11 830!include OvmfPkg/NetworkComponents.dsc.inc\r
c712ce2b 831\r
c712ce2b
SB
832 OvmfPkg/VirtioNetDxe/VirtioNet.inf\r
833\r
c712ce2b
SB
834!if $(TOOL_CHAIN_TAG) != "XCODE5"\r
835 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {\r
836 <PcdsFixedAtBuild>\r
837 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
838 }\r
839 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {\r
840 <PcdsFixedAtBuild>\r
841 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
842 }\r
843 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {\r
844 <PcdsFixedAtBuild>\r
845 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
846 }\r
847!endif\r
848 ShellPkg/Application/Shell/Shell.inf {\r
849 <LibraryClasses>\r
850 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf\r
851 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf\r
852 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf\r
853 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf\r
854 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf\r
855 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf\r
856 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf\r
857 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf\r
858!if $(NETWORK_IP6_ENABLE) == TRUE\r
859 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf\r
860!endif\r
861 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf\r
862 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
863 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf\r
864\r
865 <PcdsFixedAtBuild>\r
866 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF\r
867 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
868 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000\r
869 }\r
870\r
871!if $(SECURE_BOOT_ENABLE) == TRUE\r
872 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
873 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf\r
874!endif\r
875\r
876 OvmfPkg/PlatformDxe/Platform.inf\r
877 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {\r
878 <LibraryClasses>\r
879 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf\r
880 }\r
881 OvmfPkg/IoMmuDxe/IoMmuDxe.inf\r
882\r
883!if $(SMM_REQUIRE) == TRUE\r
884 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf\r
885 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf\r
886 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf\r
887\r
888 #\r
889 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)\r
890 #\r
891 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf\r
892\r
893 #\r
894 # SMM_CORE\r
895 #\r
896 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf\r
897\r
898 #\r
899 # Privileged drivers (DXE_SMM_DRIVER modules)\r
900 #\r
901 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf\r
902 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf\r
903 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {\r
904 <LibraryClasses>\r
905 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf\r
906 }\r
907 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {\r
908 <LibraryClasses>\r
909 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf\r
910 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf\r
911 }\r
912\r
913 #\r
914 # Variable driver stack (SMM)\r
915 #\r
c28e376e
BS
916 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {\r
917 <LibraryClasses>\r
918 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf\r
919 }\r
c712ce2b
SB
920 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf\r
921 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {\r
922 <LibraryClasses>\r
923 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf\r
924 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf\r
925 }\r
926 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf\r
927\r
928!else\r
929\r
930 #\r
931 # Variable driver stack (non-SMM)\r
932 #\r
933 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf\r
934 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {\r
935 <LibraryClasses>\r
936 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf\r
937 }\r
938 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r
939 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {\r
940 <LibraryClasses>\r
941 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf\r
942 }\r
943!endif\r
944\r
945 #\r
946 # TPM support\r
947 #\r
948!include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc\r