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