]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Microvm/MicrovmX64.dsc
OvmfPkg: Add TdxMailboxLibNull in some platform dsc
[mirror_edk2.git] / OvmfPkg / Microvm / MicrovmX64.dsc
1 ## @file
2 # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
3 #
4 # Copyright (c) 2006 - 2022, 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 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
409 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
410
411 [LibraryClasses.common.UEFI_APPLICATION]
412 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
413 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
414 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
415 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
416 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
417 !ifdef $(DEBUG_ON_SERIAL_PORT)
418 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
419 !else
420 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
421 !endif
422 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
423 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
424 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
425
426 [LibraryClasses.common.DXE_SMM_DRIVER]
427 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
428 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
429 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
430 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
431 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
432 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
433 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
434 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
435 !ifdef $(DEBUG_ON_SERIAL_PORT)
436 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
437 !else
438 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
439 !endif
440 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
441 !if $(SOURCE_DEBUG_ENABLE) == TRUE
442 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
443 !endif
444 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
445 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
446 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
447 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
448
449 [LibraryClasses.common.SMM_CORE]
450 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
451 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
452 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
453 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
454 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
455 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
456 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
457 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
458 !ifdef $(DEBUG_ON_SERIAL_PORT)
459 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
460 !else
461 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
462 !endif
463 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
464 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
465 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
466
467 ################################################################################
468 #
469 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
470 #
471 ################################################################################
472 [PcdsFeatureFlag]
473 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
474 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
475 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
476 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
477 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
478 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
479
480 [PcdsFixedAtBuild]
481 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
482 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
483 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
484 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
485 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
486 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
487 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
488 !if $(NETWORK_TLS_ENABLE) == FALSE
489 # match PcdFlashNvStorageVariableSize purely for convenience
490 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
491 !endif
492 !endif
493 !if $(FD_SIZE_IN_KB) == 4096
494 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
495 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
496 !if $(NETWORK_TLS_ENABLE) == FALSE
497 # match PcdFlashNvStorageVariableSize purely for convenience
498 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
499 !endif
500 !endif
501 !if $(NETWORK_TLS_ENABLE) == TRUE
502 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
503 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
504 !endif
505
506 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
507 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
508 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
509
510 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
511
512 # DEBUG_INIT 0x00000001 // Initialization
513 # DEBUG_WARN 0x00000002 // Warnings
514 # DEBUG_LOAD 0x00000004 // Load events
515 # DEBUG_FS 0x00000008 // EFI File system
516 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
517 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
518 # DEBUG_INFO 0x00000040 // Informational debug messages
519 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
520 # DEBUG_VARIABLE 0x00000100 // Variable
521 # DEBUG_BM 0x00000400 // Boot Manager
522 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
523 # DEBUG_NET 0x00004000 // SNP Driver
524 # DEBUG_UNDI 0x00010000 // UNDI Driver
525 # DEBUG_LOADFILE 0x00020000 // LoadFile
526 # DEBUG_EVENT 0x00080000 // Event messages
527 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
528 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
529 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
530 # // significantly impact boot performance
531 # DEBUG_ERROR 0x80000000 // Error
532 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
533
534 !if $(SOURCE_DEBUG_ENABLE) == TRUE
535 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
536 !else
537 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
538 !endif
539
540 !if $(SOURCE_DEBUG_ENABLE) == TRUE
541 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
542 !endif
543
544 #
545 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
546 # best (please refer to git-blame for past updates). The values capture a set
547 # of BIN hints that made sense at a particular time, for some (now likely
548 # unknown) workloads / boot paths.
549 #
550 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
551 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
552 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
553 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
554 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
555
556 #
557 # Network Pcds
558 #
559 !include NetworkPkg/NetworkPcds.dsc.inc
560
561 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
562
563 # IRQs 5, 9, 10, 11 are level-triggered
564 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
565
566 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
567 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
568
569 # microvm serial port^M
570 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE
571 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialPciDeviceInfo|{0xFF}
572 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x3f8
573
574 ################################################################################
575 #
576 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
577 #
578 ################################################################################
579
580 [PcdsDynamicDefault]
581 # only set when
582 # ($(SMM_REQUIRE) == FALSE)
583 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
584
585 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
586 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
587 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
588 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
589 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
590 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
591 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
592 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
593 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
594 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
595 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
596 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
597 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
598 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
599 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
600 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
601 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
602 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
603
604 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
605 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
606
607 # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
608 # PCD and PcdPciDisableBusEnumeration below have not been assigned yet
609 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
610 gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x0
611 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
612
613 # Set video resolution for text setup.
614 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
615 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
616
617 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
618 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
619 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
620
621 # Noexec settings for DXE.
622 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
623
624 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
625 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
626 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
627
628 # Set memory encryption mask
629 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
630
631 # Set Tdx shared bit mask
632 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
633
634 # Set SEV-ES defaults
635 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
636 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
637 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
638
639 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
640
641 # IPv4 and IPv6 PXE Boot support.
642 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
643 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
644
645 # Set ConfidentialComputing defaults
646 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
647
648 ################################################################################
649 #
650 # Components Section - list of all EDK II Modules needed by this Platform.
651 #
652 ################################################################################
653 [Components]
654 OvmfPkg/ResetVector/ResetVector.inf
655
656 #
657 # SEC Phase modules
658 #
659 OvmfPkg/Sec/SecMain.inf {
660 <LibraryClasses>
661 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
662 }
663
664 #
665 # PEI Phase modules
666 #
667 MdeModulePkg/Core/Pei/PeiMain.inf
668 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
669 <LibraryClasses>
670 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
671 }
672 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
673 <LibraryClasses>
674 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
675 }
676 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
677 <LibraryClasses>
678 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
679 }
680 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
681
682 OvmfPkg/PlatformPei/PlatformPei.inf
683 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
684 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
685
686 #
687 # DXE Phase modules
688 #
689 MdeModulePkg/Core/Dxe/DxeMain.inf {
690 <LibraryClasses>
691 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
692 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
693 }
694
695 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
696 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
697 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
698 <LibraryClasses>
699 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
700 }
701
702 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
703
704 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
705 <LibraryClasses>
706 !if $(SECURE_BOOT_ENABLE) == TRUE
707 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
708 !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
709 !endif
710 }
711
712 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
713 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
714 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
715 UefiCpuPkg/CpuDxe/CpuDxe.inf
716 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
717 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
718 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
719 <LibraryClasses>
720 PciHostBridgeLib|OvmfPkg/Fdt/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
721 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
722 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
723 }
724 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
725 <LibraryClasses>
726 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
727 }
728 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
729 MdeModulePkg/Universal/Metronome/Metronome.inf
730 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
731 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
732 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
733 <LibraryClasses>
734 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
735 }
736 MdeModulePkg/Logo/LogoDxe.inf
737 MdeModulePkg/Application/UiApp/UiApp.inf {
738 <LibraryClasses>
739 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
740 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
741 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
742 }
743 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
744 <LibraryClasses>
745 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
746 }
747 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
748 OvmfPkg/Virtio10Dxe/Virtio10.inf
749 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
750 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
751 OvmfPkg/VirtioRngDxe/VirtioRng.inf
752 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
753 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
754 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
755 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
756 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
757 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
758 <LibraryClasses>
759 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
760 }
761 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
762 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
763 <LibraryClasses>
764 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
765 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
766 }
767 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
768 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
769 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
770 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
771 FatPkg/EnhancedFatDxe/Fat.inf
772 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
773 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
774 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
775 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
776 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
777 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
778 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
779 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
780 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
781 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
782 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
783 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
784
785 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
786 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
787 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
788
789 #
790 # ISA Support
791 #
792 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
793
794 #
795 # device tree
796 #
797 EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
798 OvmfPkg/Fdt/VirtioFdtDxe/VirtioFdtDxe.inf
799
800 #
801 # SMBIOS Support
802 #
803 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
804 <LibraryClasses>
805 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
806 }
807 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
808
809 #
810 # ACPI Support
811 #
812 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
813 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
814 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
815 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
816 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
817
818 #
819 # Network Support
820 #
821 !include NetworkPkg/NetworkComponents.dsc.inc
822 !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
823
824 OvmfPkg/VirtioNetDxe/VirtioNet.inf
825
826 #
827 # Usb Support
828 #
829 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
830 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
831 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
832 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
833 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
834 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
835
836 !if $(TOOL_CHAIN_TAG) != "XCODE5"
837 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
838 <PcdsFixedAtBuild>
839 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
840 }
841 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
842 <PcdsFixedAtBuild>
843 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
844 }
845 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
846 <PcdsFixedAtBuild>
847 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
848 }
849 !endif
850 ShellPkg/Application/Shell/Shell.inf {
851 <LibraryClasses>
852 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
853 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
854 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
855 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
856 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
857 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
858 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
859 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
860 !if $(NETWORK_IP6_ENABLE) == TRUE
861 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
862 !endif
863 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
864 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
865 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
866
867 <PcdsFixedAtBuild>
868 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
869 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
870 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
871 }
872
873 !if $(SECURE_BOOT_ENABLE) == TRUE
874 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
875 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
876 !endif
877
878 OvmfPkg/PlatformDxe/Platform.inf
879 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
880
881 #
882 # Variable driver stack (non-SMM)
883 #
884 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
885 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
886 <LibraryClasses>
887 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
888 }
889 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
890 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
891 <LibraryClasses>
892 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
893 }