]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Microvm/MicrovmX64.dsc
OvmfPkg: Add CpuPageTableLib required by MpInitLib.
[mirror_edk2.git] / OvmfPkg / Microvm / MicrovmX64.dsc
1 ## @file
2 # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
3 #
4 # Copyright (c) 2006 - 2023, Intel Corporation. All rights reserved.<BR>
5 # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
6 # Copyright (c) Microsoft Corporation.
7 #
8 # SPDX-License-Identifier: BSD-2-Clause-Patent
9 #
10 ##
11
12 ################################################################################
13 #
14 # Defines Section - statements that will be processed to create a Makefile.
15 #
16 ################################################################################
17 [Defines]
18 PLATFORM_NAME = Microvm
19 PLATFORM_GUID = 55a5d2cc-6ca6-47d1-8f4f-5588d7705194
20 PLATFORM_VERSION = 0.1
21 DSC_SPECIFICATION = 0x00010005
22 OUTPUT_DIRECTORY = Build/MicrovmX64
23 SUPPORTED_ARCHITECTURES = X64
24 BUILD_TARGETS = NOOPT|DEBUG|RELEASE
25 SKUID_IDENTIFIER = DEFAULT
26 FLASH_DEFINITION = OvmfPkg/Microvm/MicrovmX64.fdf
27
28 #
29 # Defines for default states. These can be changed on the command line.
30 # -D FLAG=VALUE
31 #
32 DEFINE SECURE_BOOT_ENABLE = FALSE
33 DEFINE SMM_REQUIRE = FALSE
34 DEFINE SOURCE_DEBUG_ENABLE = FALSE
35
36 #
37 # Network definition
38 #
39 DEFINE NETWORK_TLS_ENABLE = FALSE
40 DEFINE NETWORK_IP6_ENABLE = FALSE
41 DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
42 DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
43 DEFINE NETWORK_ISCSI_ENABLE = TRUE
44
45 !include NetworkPkg/NetworkDefines.dsc.inc
46
47 #
48 # Device drivers
49 #
50 DEFINE PVSCSI_ENABLE = FALSE
51 DEFINE MPT_SCSI_ENABLE = FALSE
52 DEFINE LSI_SCSI_ENABLE = FALSE
53
54 #
55 # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
56 # one of the supported values, in place of any of the convenience macros, is
57 # permitted.
58 #
59 !ifdef $(FD_SIZE_1MB)
60 DEFINE FD_SIZE_IN_KB = 1024
61 !else
62 !ifdef $(FD_SIZE_2MB)
63 DEFINE FD_SIZE_IN_KB = 2048
64 !else
65 !ifdef $(FD_SIZE_4MB)
66 DEFINE FD_SIZE_IN_KB = 4096
67 !else
68 DEFINE FD_SIZE_IN_KB = 4096
69 !endif
70 !endif
71 !endif
72
73 [BuildOptions]
74 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
75 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
76 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
77 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
78 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
79 !endif
80 !if $(SOURCE_DEBUG_ENABLE) == TRUE
81 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
82 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
83 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
84 !endif
85 RELEASE_*_*_GENFW_FLAGS = --zero
86
87 #
88 # Disable deprecated APIs.
89 #
90 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
91 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
92 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
93
94 #
95 # SECURE_BOOT_FEATURE_ENABLED
96 #
97 !if $(SECURE_BOOT_ENABLE) == TRUE
98 MSFT:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
99 INTEL:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
100 GCC:*_*_*_CC_FLAGS = -D SECURE_BOOT_FEATURE_ENABLED
101 !endif
102
103 !include NetworkPkg/NetworkBuildOptions.dsc.inc
104
105 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
106 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
107 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
108 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
109 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
110
111 # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
112 # protection of DXE_SMM_DRIVER/SMM_CORE modules
113 [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
114 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
115 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
116 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
117 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
118
119 ################################################################################
120 #
121 # SKU Identification section - list of all SKU IDs supported by this Platform.
122 #
123 ################################################################################
124 [SkuIds]
125 0|DEFAULT
126
127 ################################################################################
128 #
129 # Library Class section - list of all Library Classes needed by this Platform.
130 #
131 ################################################################################
132
133 !include MdePkg/MdeLibs.dsc.inc
134
135 [LibraryClasses]
136 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
137 TimerLib|MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf
138 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLibMicrovm.inf
139 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
140 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
141 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
142 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
143 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
144 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
145 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
146 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
147 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
148 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
149 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
150 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
151 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
152 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
153 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
154 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
155 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
156 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
157 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
158 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
159 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
160 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
161 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
162 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
163 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
164 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
165 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
166 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
167 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
168 CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
169 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
170 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
171 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
172 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
173 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
174 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
175 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
176 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
177 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
178 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
179 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
180 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
181 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
182 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
183 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
184 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
185 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
186 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
187 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
188 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
189 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
190 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
191 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
192 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
193 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
194 MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf
195 PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
196 DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
197
198 !if $(SOURCE_DEBUG_ENABLE) == TRUE
199 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
200 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
201 !else
202 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
203 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
204 !endif
205
206 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
207 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
208
209 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
210 !if $(NETWORK_TLS_ENABLE) == TRUE
211 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
212 !else
213 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
214 !endif
215 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
216
217 !if $(SECURE_BOOT_ENABLE) == TRUE
218 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
219 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
220 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
221 PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
222 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
223 !else
224 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
225 !endif
226 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
227 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
228 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
229 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
230
231
232 #
233 # Network libraries
234 #
235 !include NetworkPkg/NetworkLibs.dsc.inc
236
237 !if $(NETWORK_TLS_ENABLE) == TRUE
238 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
239 !endif
240
241 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
242 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
243 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
244 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
245 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
246
247 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
248 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
249
250 [LibraryClasses.common]
251 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
252 CcExitLib|OvmfPkg/Library/CcExitLib/CcExitLib.inf
253 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
254 PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf
255 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
256 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
257 TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
258 TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLibNull.inf
259
260 [LibraryClasses.common.SEC]
261 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
262 !ifdef $(DEBUG_ON_SERIAL_PORT)
263 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
264 !else
265 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
266 !endif
267 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
268 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
269 !if $(SOURCE_DEBUG_ENABLE) == TRUE
270 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
271 !endif
272 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
273 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
274 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
275 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
276 !if $(TOOL_CHAIN_TAG) == "XCODE5"
277 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
278 !else
279 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
280 !endif
281 CcExitLib|OvmfPkg/Library/CcExitLib/SecCcExitLib.inf
282 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
283
284 [LibraryClasses.common.PEI_CORE]
285 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
286 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
287 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
288 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
289 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
290 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
291 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
292 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
293 !ifdef $(DEBUG_ON_SERIAL_PORT)
294 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
295 !else
296 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
297 !endif
298 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
299
300 [LibraryClasses.common.PEIM]
301 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
302 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
303 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
304 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
305 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
306 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
307 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
308 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
309 !ifdef $(DEBUG_ON_SERIAL_PORT)
310 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
311 !else
312 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
313 !endif
314 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
315 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
316 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
317 !if $(SOURCE_DEBUG_ENABLE) == TRUE
318 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
319 !endif
320 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
321 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
322 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
323 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
324 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
325
326 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
327 PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
328
329 [LibraryClasses.common.DXE_CORE]
330 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
331 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
332 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
333 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
334 !ifdef $(DEBUG_ON_SERIAL_PORT)
335 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
336 !else
337 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
338 !endif
339 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
340 !if $(SOURCE_DEBUG_ENABLE) == TRUE
341 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
342 !endif
343 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
344 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
345
346 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
347 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
348 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
349 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
350 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
351 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
352 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
353 !ifdef $(DEBUG_ON_SERIAL_PORT)
354 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
355 !else
356 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
357 !endif
358 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
359 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
360 # PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
361 # PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
362 # PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
363 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
364 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
365
366 [LibraryClasses.common.UEFI_DRIVER]
367 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
368 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
369 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
370 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
371 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
372 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
373 !ifdef $(DEBUG_ON_SERIAL_PORT)
374 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
375 !else
376 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
377 !endif
378 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
379 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
380 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
381 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
382
383 [LibraryClasses.common.DXE_DRIVER]
384 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
385 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
386 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
387 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
388 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
389 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
390 !ifdef $(DEBUG_ON_SERIAL_PORT)
391 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
392 !else
393 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
394 !endif
395 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
396 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
397 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
398 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
399 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
400 !if $(SOURCE_DEBUG_ENABLE) == TRUE
401 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
402 !endif
403 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
404 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
405 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
406 CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
407 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
408 NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf
409 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
410 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
411
412 [LibraryClasses.common.UEFI_APPLICATION]
413 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
414 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
415 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
416 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
417 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
418 !ifdef $(DEBUG_ON_SERIAL_PORT)
419 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
420 !else
421 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
422 !endif
423 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
424 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
425 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
426
427 [LibraryClasses.common.DXE_SMM_DRIVER]
428 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
429 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
430 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
431 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
432 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
433 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
434 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
435 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
436 !ifdef $(DEBUG_ON_SERIAL_PORT)
437 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
438 !else
439 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
440 !endif
441 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
442 !if $(SOURCE_DEBUG_ENABLE) == TRUE
443 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
444 !endif
445 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
446 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
447 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
448 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
449
450 [LibraryClasses.common.SMM_CORE]
451 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
452 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
453 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
454 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
455 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
456 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
457 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
458 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
459 !ifdef $(DEBUG_ON_SERIAL_PORT)
460 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
461 !else
462 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
463 !endif
464 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
465 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
466 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
467
468 ################################################################################
469 #
470 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
471 #
472 ################################################################################
473 [PcdsFeatureFlag]
474 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
475 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
476 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
477 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
478 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
479 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
480 !if $(SECURE_BOOT_ENABLE) == TRUE
481 gEfiMdeModulePkgTokenSpaceGuid.PcdRequireSelfSignedPk|TRUE
482 !endif
483
484 [PcdsFixedAtBuild]
485 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
486 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
487 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
488 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
489 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
490 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
491 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
492 !if $(NETWORK_TLS_ENABLE) == FALSE
493 # match PcdFlashNvStorageVariableSize purely for convenience
494 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
495 !endif
496 !endif
497 !if $(FD_SIZE_IN_KB) == 4096
498 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
499 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
500 !if $(NETWORK_TLS_ENABLE) == FALSE
501 # match PcdFlashNvStorageVariableSize purely for convenience
502 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
503 !endif
504 !endif
505 !if $(NETWORK_TLS_ENABLE) == TRUE
506 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
507 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
508 !endif
509
510 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
511 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
512 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
513
514 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
515
516 # DEBUG_INIT 0x00000001 // Initialization
517 # DEBUG_WARN 0x00000002 // Warnings
518 # DEBUG_LOAD 0x00000004 // Load events
519 # DEBUG_FS 0x00000008 // EFI File system
520 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
521 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
522 # DEBUG_INFO 0x00000040 // Informational debug messages
523 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
524 # DEBUG_VARIABLE 0x00000100 // Variable
525 # DEBUG_BM 0x00000400 // Boot Manager
526 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
527 # DEBUG_NET 0x00004000 // SNP Driver
528 # DEBUG_UNDI 0x00010000 // UNDI Driver
529 # DEBUG_LOADFILE 0x00020000 // LoadFile
530 # DEBUG_EVENT 0x00080000 // Event messages
531 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
532 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
533 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
534 # // significantly impact boot performance
535 # DEBUG_ERROR 0x80000000 // Error
536 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
537
538 !if $(SOURCE_DEBUG_ENABLE) == TRUE
539 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
540 !else
541 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
542 !endif
543
544 !if $(SOURCE_DEBUG_ENABLE) == TRUE
545 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
546 !endif
547
548 #
549 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
550 # best (please refer to git-blame for past updates). The values capture a set
551 # of BIN hints that made sense at a particular time, for some (now likely
552 # unknown) workloads / boot paths.
553 #
554 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
555 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
556 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
557 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
558 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
559
560 #
561 # Network Pcds
562 #
563 !include NetworkPkg/NetworkPcds.dsc.inc
564
565 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
566
567 # IRQs 5, 9, 10, 11 are level-triggered
568 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
569
570 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
571 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
572
573 # microvm serial port^M
574 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE
575 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialPciDeviceInfo|{0xFF}
576 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x3f8
577
578 ################################################################################
579 #
580 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
581 #
582 ################################################################################
583
584 [PcdsDynamicDefault]
585 # only set when
586 # ($(SMM_REQUIRE) == FALSE)
587 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
588
589 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
590 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
591 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
592 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
593 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
594 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
595 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
596 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
597 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
598 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
599 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
600 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
601 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
602 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
603 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
604 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
605 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
606 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
607
608 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
609 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
610
611 # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
612 # PCD and PcdPciDisableBusEnumeration below have not been assigned yet
613 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
614 gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x0
615 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
616
617 # Set video resolution for text setup.
618 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
619 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
620
621 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
622 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
623 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
624
625 # Noexec settings for DXE.
626 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
627
628 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
629 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
630 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
631
632 # Set memory encryption mask
633 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
634
635 # Set Tdx shared bit mask
636 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
637
638 # Set SEV-ES defaults
639 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
640 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
641 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
642
643 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
644
645 # IPv4 and IPv6 PXE Boot support.
646 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
647 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
648
649 # Set ConfidentialComputing defaults
650 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
651
652 ################################################################################
653 #
654 # Components Section - list of all EDK II Modules needed by this Platform.
655 #
656 ################################################################################
657 [Components]
658 OvmfPkg/ResetVector/ResetVector.inf
659
660 #
661 # SEC Phase modules
662 #
663 OvmfPkg/Sec/SecMain.inf {
664 <LibraryClasses>
665 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
666 }
667
668 #
669 # PEI Phase modules
670 #
671 MdeModulePkg/Core/Pei/PeiMain.inf
672 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
673 <LibraryClasses>
674 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
675 }
676 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
677 <LibraryClasses>
678 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
679 }
680 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
681 <LibraryClasses>
682 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
683 }
684 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
685
686 OvmfPkg/PlatformPei/PlatformPei.inf {
687 <LibraryClasses>
688 NULL|OvmfPkg/IntelTdx/TdxHelperLib/TdxHelperLibNull.inf
689 }
690 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
691 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
692
693 #
694 # DXE Phase modules
695 #
696 MdeModulePkg/Core/Dxe/DxeMain.inf {
697 <LibraryClasses>
698 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
699 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
700 }
701
702 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
703 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
704 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
705 <LibraryClasses>
706 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
707 }
708
709 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
710
711 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
712 <LibraryClasses>
713 !if $(SECURE_BOOT_ENABLE) == TRUE
714 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
715 !endif
716 !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
717 }
718
719 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
720 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
721 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
722 UefiCpuPkg/CpuDxe/CpuDxe.inf
723 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
724 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
725 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
726 <LibraryClasses>
727 PciHostBridgeLib|OvmfPkg/Fdt/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
728 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
729 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
730 }
731 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
732 <LibraryClasses>
733 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
734 }
735 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
736 MdeModulePkg/Universal/Metronome/Metronome.inf
737 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
738 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
739 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
740 <LibraryClasses>
741 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
742 }
743 MdeModulePkg/Logo/LogoDxe.inf
744 MdeModulePkg/Application/UiApp/UiApp.inf {
745 <LibraryClasses>
746 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
747 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
748 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
749 }
750 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
751 <LibraryClasses>
752 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
753 }
754 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
755 OvmfPkg/Virtio10Dxe/Virtio10.inf
756 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
757 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
758 OvmfPkg/VirtioRngDxe/VirtioRng.inf
759 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
760 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
761 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
762 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
763 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
764 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
765 <LibraryClasses>
766 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
767 }
768 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
769 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
770 <LibraryClasses>
771 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
772 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
773 }
774 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
775 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
776 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
777 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
778 FatPkg/EnhancedFatDxe/Fat.inf
779 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
780 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
781 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
782 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
783 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
784 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
785 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
786 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
787 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
788 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
789 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
790 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
791
792 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
793 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
794 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
795
796 #
797 # ISA Support
798 #
799 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
800
801 #
802 # device tree
803 #
804 EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
805 OvmfPkg/Fdt/VirtioFdtDxe/VirtioFdtDxe.inf
806
807 #
808 # SMBIOS Support
809 #
810 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
811 <LibraryClasses>
812 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
813 }
814 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
815
816 #
817 # ACPI Support
818 #
819 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
820 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
821 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
822 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
823 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
824
825 #
826 # Network Support
827 #
828 !include NetworkPkg/NetworkComponents.dsc.inc
829 !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
830
831 OvmfPkg/VirtioNetDxe/VirtioNet.inf
832
833 #
834 # Usb Support
835 #
836 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
837 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
838 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
839 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
840 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
841 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
842
843 !if $(TOOL_CHAIN_TAG) != "XCODE5"
844 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
845 <PcdsFixedAtBuild>
846 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
847 }
848 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
849 <PcdsFixedAtBuild>
850 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
851 }
852 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
853 <PcdsFixedAtBuild>
854 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
855 }
856 !endif
857 ShellPkg/Application/Shell/Shell.inf {
858 <LibraryClasses>
859 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
860 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
861 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
862 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
863 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
864 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
865 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
866 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
867 !if $(NETWORK_IP6_ENABLE) == TRUE
868 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
869 !endif
870 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
871 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
872 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
873
874 <PcdsFixedAtBuild>
875 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
876 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
877 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
878 }
879
880 !if $(SECURE_BOOT_ENABLE) == TRUE
881 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
882 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
883 !endif
884
885 OvmfPkg/PlatformDxe/Platform.inf
886 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
887
888 #
889 # Variable driver stack (non-SMM)
890 #
891 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
892 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
893 <LibraryClasses>
894 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
895 }
896 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
897 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
898 <LibraryClasses>
899 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
900 }