VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/Microvm/MicrovmX64.dsc@ 108793

Last change on this file since 108793 was 105670, checked in by vboxsync, 8 months ago

Devices/EFI/FirmwareNew: Merge edk2-stable-202405 and make it build on aarch64, bugref:4643

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

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette