]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Microvm/MicrovmX64.dsc
Ovmf/HardwareInfoLib: Create Pei lib to parse directly from fw-cfg
[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 = TRUE
51 DEFINE MPT_SCSI_ENABLE = TRUE
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 !include NetworkPkg/NetworkBuildOptions.dsc.inc
95
96 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
97 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
98 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
99 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
100 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
101
102 # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
103 # protection of DXE_SMM_DRIVER/SMM_CORE modules
104 [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
105 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
106 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
107 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
108 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
109
110 ################################################################################
111 #
112 # SKU Identification section - list of all SKU IDs supported by this Platform.
113 #
114 ################################################################################
115 [SkuIds]
116 0|DEFAULT
117
118 ################################################################################
119 #
120 # Library Class section - list of all Library Classes needed by this Platform.
121 #
122 ################################################################################
123
124 !include MdePkg/MdeLibs.dsc.inc
125
126 [LibraryClasses]
127 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
128 TimerLib|MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf
129 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLibMicrovm.inf
130 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
131 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
132 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
133 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
134 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
135 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
136 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
137 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
138 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
139 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
140 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
141 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
142 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
143 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
144 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
145 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
146 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
147 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
148 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
149 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
150 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
151 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
152 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
153 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
154 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
155 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
156 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
157 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
158 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
159 CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
160 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
161 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
162 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
163 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
164 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
165 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
166 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
167 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
168 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
169 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
170 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
171 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
172 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
173 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
174 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
175 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
176 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
177 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
178 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
179 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
180 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
181 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
182 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
183 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
184 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
185 MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf
186 PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
187
188 !if $(SOURCE_DEBUG_ENABLE) == TRUE
189 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
190 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
191 !else
192 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
193 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
194 !endif
195
196 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
197 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
198
199 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
200 !if $(NETWORK_TLS_ENABLE) == TRUE
201 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
202 !else
203 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
204 !endif
205 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
206
207 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
208 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
209 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
210 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
211 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
212
213
214 #
215 # Network libraries
216 #
217 !include NetworkPkg/NetworkLibs.dsc.inc
218
219 !if $(NETWORK_TLS_ENABLE) == TRUE
220 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
221 !endif
222
223 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
224 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
225 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
226 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
227 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
228
229 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
230 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
231
232 [LibraryClasses.common]
233 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
234 VmgExitLib|OvmfPkg/Library/VmgExitLib/VmgExitLib.inf
235 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
236 PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf
237 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
238 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
239 TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
240
241 [LibraryClasses.common.SEC]
242 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
243 !ifdef $(DEBUG_ON_SERIAL_PORT)
244 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
245 !else
246 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
247 !endif
248 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
249 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
250 !if $(SOURCE_DEBUG_ENABLE) == TRUE
251 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
252 !endif
253 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
254 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
255 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
256 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
257 !if $(TOOL_CHAIN_TAG) == "XCODE5"
258 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
259 !else
260 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
261 !endif
262 VmgExitLib|OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf
263 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
264
265 [LibraryClasses.common.PEI_CORE]
266 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
267 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
268 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
269 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
270 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
271 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
272 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
273 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
274 !ifdef $(DEBUG_ON_SERIAL_PORT)
275 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
276 !else
277 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
278 !endif
279 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
280
281 [LibraryClasses.common.PEIM]
282 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
283 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
284 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
285 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
286 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
287 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
288 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
289 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
290 !ifdef $(DEBUG_ON_SERIAL_PORT)
291 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
292 !else
293 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
294 !endif
295 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
296 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
297 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
298 !if $(SOURCE_DEBUG_ENABLE) == TRUE
299 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
300 !endif
301 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
302 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
303 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
304 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
305 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
306
307 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
308 PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
309
310 [LibraryClasses.common.DXE_CORE]
311 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
312 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
313 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
314 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
315 !ifdef $(DEBUG_ON_SERIAL_PORT)
316 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
317 !else
318 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
319 !endif
320 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
321 !if $(SOURCE_DEBUG_ENABLE) == TRUE
322 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
323 !endif
324 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
325 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
326
327 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
328 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
329 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
330 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
331 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
332 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
333 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.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 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
340 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
341 # PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
342 # PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
343 # PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
344 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
345 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
346
347 [LibraryClasses.common.UEFI_DRIVER]
348 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
349 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
350 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
351 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
352 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
353 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
354 !ifdef $(DEBUG_ON_SERIAL_PORT)
355 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
356 !else
357 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
358 !endif
359 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
360 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
361 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
362 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
363
364 [LibraryClasses.common.DXE_DRIVER]
365 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
366 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
367 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
368 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
369 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
370 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
371 !ifdef $(DEBUG_ON_SERIAL_PORT)
372 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
373 !else
374 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
375 !endif
376 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
377 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
378 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
379 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
380 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
381 !if $(SOURCE_DEBUG_ENABLE) == TRUE
382 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
383 !endif
384 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
385 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
386 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
387 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
388 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
389 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
390
391 [LibraryClasses.common.UEFI_APPLICATION]
392 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
393 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
394 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
395 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
396 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
397 !ifdef $(DEBUG_ON_SERIAL_PORT)
398 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
399 !else
400 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.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
406 [LibraryClasses.common.DXE_SMM_DRIVER]
407 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
408 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
409 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
410 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
411 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
412 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
413 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
414 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
415 !ifdef $(DEBUG_ON_SERIAL_PORT)
416 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
417 !else
418 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
419 !endif
420 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
421 !if $(SOURCE_DEBUG_ENABLE) == TRUE
422 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
423 !endif
424 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
425 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
426 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
427 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
428
429 [LibraryClasses.common.SMM_CORE]
430 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
431 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLibMicrovm.inf
432 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
433 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
434 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
435 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
436 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
437 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
438 !ifdef $(DEBUG_ON_SERIAL_PORT)
439 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
440 !else
441 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
442 !endif
443 PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
444 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
445 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
446
447 ################################################################################
448 #
449 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
450 #
451 ################################################################################
452 [PcdsFeatureFlag]
453 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
454 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
455 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
456 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
457 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
458 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
459
460 [PcdsFixedAtBuild]
461 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
462 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
463 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
464 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
465 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
466 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
467 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
468 !if $(NETWORK_TLS_ENABLE) == FALSE
469 # match PcdFlashNvStorageVariableSize purely for convenience
470 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
471 !endif
472 !endif
473 !if $(FD_SIZE_IN_KB) == 4096
474 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
475 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
476 !if $(NETWORK_TLS_ENABLE) == FALSE
477 # match PcdFlashNvStorageVariableSize purely for convenience
478 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
479 !endif
480 !endif
481 !if $(NETWORK_TLS_ENABLE) == TRUE
482 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
483 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
484 !endif
485
486 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
487 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
488 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
489
490 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
491
492 # DEBUG_INIT 0x00000001 // Initialization
493 # DEBUG_WARN 0x00000002 // Warnings
494 # DEBUG_LOAD 0x00000004 // Load events
495 # DEBUG_FS 0x00000008 // EFI File system
496 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
497 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
498 # DEBUG_INFO 0x00000040 // Informational debug messages
499 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
500 # DEBUG_VARIABLE 0x00000100 // Variable
501 # DEBUG_BM 0x00000400 // Boot Manager
502 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
503 # DEBUG_NET 0x00004000 // SNP Driver
504 # DEBUG_UNDI 0x00010000 // UNDI Driver
505 # DEBUG_LOADFILE 0x00020000 // LoadFile
506 # DEBUG_EVENT 0x00080000 // Event messages
507 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
508 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
509 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
510 # // significantly impact boot performance
511 # DEBUG_ERROR 0x80000000 // Error
512 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
513
514 !if $(SOURCE_DEBUG_ENABLE) == TRUE
515 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
516 !else
517 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
518 !endif
519
520 !if $(SOURCE_DEBUG_ENABLE) == TRUE
521 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
522 !endif
523
524 #
525 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
526 # best (please refer to git-blame for past updates). The values capture a set
527 # of BIN hints that made sense at a particular time, for some (now likely
528 # unknown) workloads / boot paths.
529 #
530 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
531 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
532 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
533 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
534 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
535
536 #
537 # Network Pcds
538 #
539 !include NetworkPkg/NetworkPcds.dsc.inc
540
541 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
542
543 # IRQs 5, 9, 10, 11 are level-triggered
544 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
545
546 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
547 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
548
549 # microvm serial port^M
550 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE
551 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialPciDeviceInfo|{0xFF}
552 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x3f8
553
554 ################################################################################
555 #
556 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
557 #
558 ################################################################################
559
560 [PcdsDynamicDefault]
561 # only set when
562 # ($(SMM_REQUIRE) == FALSE)
563 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
564
565 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
566 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
567 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
568 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
569 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
570 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
571 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
572 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
573 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
574 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
575 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
576 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
577 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
578 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
579 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
580 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
581 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
582 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
583
584 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
585 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
586
587 # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
588 # PCD and PcdPciDisableBusEnumeration below have not been assigned yet
589 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
590 gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x0
591 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
592
593 # Set video resolution for text setup.
594 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
595 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
596
597 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
598 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
599 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
600
601 # Noexec settings for DXE.
602 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
603
604 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
605 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
606 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
607
608 # Set memory encryption mask
609 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
610
611 # Set Tdx shared bit mask
612 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
613
614 # Set SEV-ES defaults
615 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
616 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
617 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
618
619 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
620
621 # IPv4 and IPv6 PXE Boot support.
622 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
623 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
624
625 # Set ConfidentialComputing defaults
626 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
627
628 ################################################################################
629 #
630 # Components Section - list of all EDK II Modules needed by this Platform.
631 #
632 ################################################################################
633 [Components]
634 OvmfPkg/ResetVector/ResetVector.inf
635
636 #
637 # SEC Phase modules
638 #
639 OvmfPkg/Sec/SecMain.inf {
640 <LibraryClasses>
641 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
642 }
643
644 #
645 # PEI Phase modules
646 #
647 MdeModulePkg/Core/Pei/PeiMain.inf
648 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
649 <LibraryClasses>
650 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
651 }
652 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
653 <LibraryClasses>
654 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
655 }
656 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
657 <LibraryClasses>
658 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
659 }
660 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
661
662 OvmfPkg/PlatformPei/PlatformPei.inf
663 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
664 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
665
666 #
667 # DXE Phase modules
668 #
669 MdeModulePkg/Core/Dxe/DxeMain.inf {
670 <LibraryClasses>
671 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
672 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
673 }
674
675 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
676 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
677 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
678 <LibraryClasses>
679 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
680 }
681
682 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
683
684 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
685 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
686 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
687 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
688 UefiCpuPkg/CpuDxe/CpuDxe.inf
689 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
690 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
691 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
692 <LibraryClasses>
693 PciHostBridgeLib|OvmfPkg/Fdt/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
694 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
695 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
696 }
697 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
698 <LibraryClasses>
699 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
700 }
701 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
702 MdeModulePkg/Universal/Metronome/Metronome.inf
703 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
704 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
705 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
706 <LibraryClasses>
707 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
708 }
709 MdeModulePkg/Logo/LogoDxe.inf
710 MdeModulePkg/Application/UiApp/UiApp.inf {
711 <LibraryClasses>
712 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
713 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
714 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
715 }
716 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
717 <LibraryClasses>
718 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
719 }
720 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
721 OvmfPkg/Virtio10Dxe/Virtio10.inf
722 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
723 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
724 OvmfPkg/VirtioRngDxe/VirtioRng.inf
725 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
726 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
727 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
728 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
729 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
730 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
731 <LibraryClasses>
732 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
733 }
734 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
735 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
736 <LibraryClasses>
737 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
738 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
739 }
740 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
741 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
742 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
743 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
744 FatPkg/EnhancedFatDxe/Fat.inf
745 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
746 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
747 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
748 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
749 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
750 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
751 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
752 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
753 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
754 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
755 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
756 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
757
758 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
759 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
760 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
761
762 #
763 # ISA Support
764 #
765 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
766
767 #
768 # device tree
769 #
770 EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
771 OvmfPkg/Fdt/VirtioFdtDxe/VirtioFdtDxe.inf
772
773 #
774 # SMBIOS Support
775 #
776 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
777 <LibraryClasses>
778 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
779 }
780 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
781
782 #
783 # ACPI Support
784 #
785 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
786 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
787 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
788 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
789 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
790
791 #
792 # Network Support
793 #
794 !include NetworkPkg/NetworkComponents.dsc.inc
795
796 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {
797 <LibraryClasses>
798 NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf
799 }
800
801 !if $(NETWORK_TLS_ENABLE) == TRUE
802 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
803 <LibraryClasses>
804 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
805 }
806 !endif
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 }