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