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