VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc

Last change on this file was 108794, checked in by vboxsync, 4 weeks ago

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

  • Property svn:eol-style set to native
File size: 33.5 KB
Line 
1## @file
2#
3# Copyright (c) 2024 Loongson Technology Corporation Limited. All rights reserved.<BR>
4#
5# SPDX-License-Identifier: BSD-2-Clause-Patent
6#
7##
8
9################################################################################
10#
11# Defines Section - statements that will be processed to create a Makefile.
12#
13###############################################################################
14[Defines]
15 PLATFORM_NAME = LoongArchVirtQemu
16 PLATFORMPKG_NAME = LoongArchVirtQemu
17 PLATFORM_GUID = 7926ea52-b0dc-4ee8-ac63-341eebd84ed4
18 PLATFORM_VERSION = 0.1
19 DSC_SPECIFICATION = 1.29
20 OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME)
21 SUPPORTED_ARCHITECTURES = LOONGARCH64
22 BUILD_TARGETS = DEBUG|RELEASE
23 SKUID_IDENTIFIER = DEFAULT
24 FLASH_DEFINITION = OvmfPkg/LoongArchVirt/LoongArchVirtQemu.fdf
25 TTY_TERMINAL = FALSE
26
27!include LoongArchVirt.fdf.inc
28
29 #
30 # Defines for default states. These can be changed on the command line.
31 # -D FLAG=VALUE
32 DEFINE TTY_TERMINAL = FALSE
33 DEFINE SECURE_BOOT_ENABLE = FALSE
34 DEFINE TPM2_ENABLE = FALSE
35 DEFINE TPM2_CONFIG_ENABLE = FALSE
36
37 #
38 # Shell can be useful for debugging but should not be enabled for production
39 #
40 DEFINE BUILD_SHELL = TRUE
41
42 #
43 # Network definition
44 #
45 DEFINE NETWORK_IP6_ENABLE = FALSE
46 DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
47 DEFINE NETWORK_SNP_ENABLE = FALSE
48 DEFINE NETWORK_TLS_ENABLE = FALSE
49 DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
50 DEFINE NETWORK_ISCSI_ENABLE = FALSE
51 DEFINE NETWORK_PXE_BOOT_ENABLE = TRUE
52
53!include NetworkPkg/NetworkDefines.dsc.inc
54############################################################################
55#
56# Defines for default states. These can be changed on the command line.
57# -D FLAG=VALUE
58############################################################################
59[BuildOptions]
60 GCC:RELEASE_*_*_CC_FLAGS = -DSPEEDUP
61
62 #
63 # Disable deprecated APIs.
64 #
65 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
66
67!include NetworkPkg/NetworkBuildOptions.dsc.inc
68
69[BuildOptions.LOONGARCH64.EDKII.SEC]
70 *_*_*_CC_FLAGS =
71
72#
73# Default page size is 16K for loongarch qemu tcg
74# code section separated with data section with 16K page alignment, else data
75# write operation in the same page with code section will cause qemu TB flush.
76#
77[BuildOptions.common.EDKII.DXE_CORE,BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION]
78 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x4000
79
80[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
81 GCC:*_*_LOONGARCH64_DLINK_FLAGS = -z common-page-size=0x10000
82
83################################################################################
84#
85# SKU Identification section - list of all SKU IDs supported by this Platform.
86#
87################################################################################
88[SkuIds]
89 0|DEFAULT
90
91################################################################################
92#
93# Library Class section - list of all Library Classes needed by this Platform.
94#
95################################################################################
96
97!include MdePkg/MdeLibs.dsc.inc
98
99[LibraryClasses.common]
100 PcdLib | MdePkg/Library/DxePcdLib/DxePcdLib.inf
101 TimerLib | UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf
102 PrintLib | MdePkg/Library/BasePrintLib/BasePrintLib.inf
103 BaseMemoryLib | MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
104
105 # Networking Requirements
106!include NetworkPkg/NetworkLibs.dsc.inc
107!if $(NETWORK_TLS_ENABLE) == TRUE
108 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
109!endif
110
111 BaseLib | MdePkg/Library/BaseLib/BaseLib.inf
112 SafeIntLib | MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
113 TimeBaseLib | EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
114 BmpSupportLib | MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
115 SynchronizationLib | MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
116 CpuLib | MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
117 PerformanceLib | MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
118 PeCoffLib | MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
119 CacheMaintenanceLib | MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
120 UefiDecompressLib | MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
121 UefiHiiServicesLib | MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
122 HiiLib | MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
123 CapsuleLib | MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
124 DxeServicesLib | MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
125 DxeServicesTableLib | MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
126 PeCoffGetEntryPointLib | MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
127 PciLib | MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
128 PciExpressLib | OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
129 PciCapLib | OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
130 PciCapPciSegmentLib | OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
131 PciCapPciIoLib | OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
132 DxeHardwareInfoLib | OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
133 IoLib | MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
134 FdtSerialPortAddressLib | OvmfPkg/Library/FdtSerialPortAddressLib/FdtSerialPortAddressLib.inf
135 PlatformHookLib | OvmfPkg/LoongArchVirt/Library/Fdt16550SerialPortHookLib/Fdt16550SerialPortHookLib.inf
136 SerialPortLib | OvmfPkg/LoongArchVirt/Library/EarlyFdtSerialPortLib16550/EarlyFdtSerialPortLib16550.inf
137 ResetSystemLib | OvmfPkg/LoongArchVirt/Library/ResetSystemAcpiLib/BaseResetSystemAcpiGedLib.inf
138
139 UefiLib | MdePkg/Library/UefiLib/UefiLib.inf
140 UefiBootServicesTableLib | MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
141 UefiRuntimeServicesTableLib | MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
142 UefiDriverEntryPoint | MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
143 UefiApplicationEntryPoint | MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
144 DevicePathLib | MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
145 FileHandleLib | MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
146 SecurityManagementLib | MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
147 UefiUsbLib | MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
148 SerializeVariablesLib | OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
149 CustomizedDisplayLib | MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
150 DebugPrintErrorLevelLib | MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
151 TpmMeasurementLib | MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
152 AuthVariableLib | MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
153 VarCheckLib | MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
154 VariablePolicyLib | MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
155 VariablePolicyHelperLib | MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
156 SortLib | MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
157 FdtLib | EmbeddedPkg/Library/FdtLib/FdtLib.inf
158 PciSegmentLib | MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
159 PciHostBridgeLib | OvmfPkg/Fdt/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
160 PciHostBridgeUtilityLib | OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
161 FileExplorerLib | MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
162 ImagePropertiesRecordLib | MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf
163
164 #
165 # CryptoPkg libraries needed by multiple firmware features
166 #
167 IntrinsicLib | CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
168!if $(NETWORK_TLS_ENABLE) == TRUE
169 OpensslLib | CryptoPkg/Library/OpensslLib/OpensslLib.inf
170!else
171 OpensslLib | CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
172!endif
173 BaseCryptLib | CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
174 RngLib | MdeModulePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
175
176!include OvmfPkg/Include/Dsc/ShellLibs.dsc.inc
177
178!if $(HTTP_BOOT_ENABLE) == TRUE
179 HttpLib | MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
180!endif
181 UefiBootManagerLib | MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
182 OrderedCollectionLib | MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
183 ReportStatusCodeLib | MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
184
185 PeCoffGetEntryPointLib | MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
186 PeCoffExtraActionLib | MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
187 DebugAgentLib | MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
188
189 TpmPlatformHierarchyLib | SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf
190 PlatformBmPrintScLib | OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
191 PlatformBootManagerLib | OvmfPkg/Library/PlatformBootManagerLibLight/PlatformBootManagerLib.inf
192 BootLogoLib | MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
193 QemuBootOrderLib | OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
194 QemuFwCfgSimpleParserLib | OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
195 QemuLoadImageLib | OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.inf
196
197 #
198 # Virtio Support
199 #
200 VirtioLib | OvmfPkg/Library/VirtioLib/VirtioLib.inf
201 FrameBufferBltLib | MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
202 QemuFwCfgLib | OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgMmioDxeLib.inf
203 DebugLib | MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
204 PeiServicesLib | MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
205 VariableFlashInfoLib | MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
206 VirtNorFlashPlatformLib | OvmfPkg/Library/FdtNorFlashQemuLib/FdtNorFlashQemuLib.inf
207
208[LibraryClasses.common.SEC]
209 PcdLib | MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
210 ReportStatusCodeLib | MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
211 HobLib | MdePkg/Library/PeiHobLib/PeiHobLib.inf
212 MemoryAllocationLib | MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
213 PeiServicesTablePointerLib | MdePkg/Library/PeiServicesTablePointerLibKs0/PeiServicesTablePointerLibKs0.inf
214 PlatformHookLib | OvmfPkg/LoongArchVirt/Library/Fdt16550SerialPortHookLib/EarlyFdt16550SerialPortHookLib.inf
215 CpuExceptionHandlerLib | UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
216
217[LibraryClasses.common.PEI_CORE]
218 PcdLib | MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
219 HobLib | MdePkg/Library/PeiHobLib/PeiHobLib.inf
220 PeiServicesTablePointerLib | MdePkg/Library/PeiServicesTablePointerLibKs0/PeiServicesTablePointerLibKs0.inf
221 MemoryAllocationLib | MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
222 PeiCoreEntryPoint | MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
223 ReportStatusCodeLib | MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
224 OemHookStatusCodeLib | MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
225 PeCoffGetEntryPointLib | MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
226 QemuFwCfgLib | OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgMmioPeiLib.inf
227 PlatformHookLib | OvmfPkg/LoongArchVirt/Library/Fdt16550SerialPortHookLib/EarlyFdt16550SerialPortHookLib.inf
228
229[LibraryClasses.common.PEIM]
230 HobLib | MdePkg/Library/PeiHobLib/PeiHobLib.inf
231 PeiServicesTablePointerLib | MdePkg/Library/PeiServicesTablePointerLibKs0/PeiServicesTablePointerLibKs0.inf
232 MemoryAllocationLib | MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
233 PeimEntryPoint | MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
234 ReportStatusCodeLib | MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
235 OemHookStatusCodeLib | MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
236 PeCoffGetEntryPointLib | MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
237 PeiResourcePublicationLib | MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
238 ExtractGuidedSectionLib | MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
239 PcdLib | MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
240 QemuFwCfgS3Lib | OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
241 QemuFwCfgLib | OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgMmioPeiLib.inf
242 CpuMmuLib | UefiCpuPkg/Library/CpuMmuLib/CpuMmuLib.inf
243 CpuMmuInitLib | OvmfPkg/LoongArchVirt/Library/CpuMmuInitLib/CpuMmuInitLib.inf
244 MpInitLib | UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
245 PlatformHookLib | OvmfPkg/LoongArchVirt/Library/Fdt16550SerialPortHookLib/EarlyFdt16550SerialPortHookLib.inf
246
247[LibraryClasses.common.DXE_CORE]
248 HobLib | MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
249 DxeCoreEntryPoint | MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
250 MemoryAllocationLib | MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
251 ReportStatusCodeLib | MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
252 PciPcdProducerLib | OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
253 CpuExceptionHandlerLib | UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
254
255[LibraryClasses.common.DXE_RUNTIME_DRIVER]
256 PcdLib | MdePkg/Library/DxePcdLib/DxePcdLib.inf
257 HobLib | MdePkg/Library/DxeHobLib/DxeHobLib.inf
258 DxeCoreEntryPoint | MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
259 MemoryAllocationLib | MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
260 ReportStatusCodeLib | MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
261 UefiRuntimeLib | MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
262 ExtractGuidedSectionLib | MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
263 QemuFwCfgS3Lib | OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
264 RealTimeClockLib | OvmfPkg/LoongArchVirt/Library/LsRealTimeClockLib/LsRealTimeClockLib.inf
265 VariablePolicyLib | MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
266 QemuFwCfgLib | OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgMmioDxeLib.inf
267 ResetSystemLib | OvmfPkg/LoongArchVirt/Library/ResetSystemAcpiLib/DxeResetSystemAcpiGedLib.inf
268!if $(TARGET) != RELEASE
269 DebugLib | MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
270!endif
271
272[LibraryClasses.common.UEFI_DRIVER]
273 PcdLib | MdePkg/Library/DxePcdLib/DxePcdLib.inf
274 HobLib | MdePkg/Library/DxeHobLib/DxeHobLib.inf
275 DxeCoreEntryPoint | MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
276 MemoryAllocationLib | MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
277 ReportStatusCodeLib | MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
278 UefiScsiLib | MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
279 ExtractGuidedSectionLib | MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
280 QemuFwCfgLib | OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgMmioDxeLib.inf
281 PciPcdProducerLib | OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
282
283[LibraryClasses.common.DXE_DRIVER]
284 PcdLib | MdePkg/Library/DxePcdLib/DxePcdLib.inf
285 HobLib | MdePkg/Library/DxeHobLib/DxeHobLib.inf
286 MemoryAllocationLib | MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
287 ReportStatusCodeLib | MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
288 UefiScsiLib | MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
289 CpuExceptionHandlerLib | UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
290 ExtractGuidedSectionLib | MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
291 QemuFwCfgS3Lib | OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
292 QemuFwCfgLib | OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgMmioDxeLib.inf
293 PciPcdProducerLib | OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
294 AcpiPlatformLib | OvmfPkg/Library/AcpiPlatformLib/DxeAcpiPlatformLib.inf
295 MpInitLib | UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
296
297[LibraryClasses.common.UEFI_APPLICATION]
298 PcdLib | MdePkg/Library/DxePcdLib/DxePcdLib.inf
299 HobLib | MdePkg/Library/DxeHobLib/DxeHobLib.inf
300 MemoryAllocationLib | MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
301 ExtractGuidedSectionLib | MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
302 PciPcdProducerLib | OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
303
304################################################################################
305#
306# Pcd Section - list of all EDK II PCD Entries defined by this Platform.
307#
308################################################################################
309[PcdsFeatureFlag]
310 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport | FALSE
311# gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial | TRUE
312# gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory | TRUE
313 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress | TRUE
314 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport | TRUE
315 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport | FALSE
316 gEfiMdeModulePkgTokenSpaceGuid.PcdPciBusHotplugDeviceSupport | FALSE
317 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation | TRUE
318 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation | TRUE
319[PcdsFixedAtBuild]
320## BaseLib ##
321 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength | 1000000
322 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength | 1000000
323 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength | 1000000
324 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout | 10000000
325
326 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFdBaseAddress | $(FW_BASE_ADDRESS)
327
328 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize | 1
329 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange | FALSE
330 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler | 0x10
331 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize | 0x2000
332 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize | 0x8000
333 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress | 0x0
334 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask | 0x07
335
336 # Use MMIO for accessing Serial port registers.
337 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio | TRUE
338 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialPciDeviceInfo | {0xFF}
339 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialBaudRate | 115200
340
341 # DEBUG_INIT 0x00000001 // Initialization
342 # DEBUG_WARN 0x00000002 // Warnings
343 # DEBUG_LOAD 0x00000004 // Load events
344 # DEBUG_FS 0x00000008 // EFI File system
345 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
346 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
347 # DEBUG_INFO 0x00000040 // Informational debug messages
348 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
349 # DEBUG_VARIABLE 0x00000100 // Variable
350 # DEBUG_BM 0x00000400 // Boot Manager
351 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
352 # DEBUG_NET 0x00004000 // Network Io Driver
353 # DEBUG_UNDI 0x00010000 // UNDI Driver
354 # DEBUG_LOADFILE 0x00020000 // LoadFile
355 # DEBUG_EVENT 0x00080000 // Event messages
356 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
357 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
358 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
359 # DEBUG_ERROR 0x80000000 // Error
360 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel | 0x8000004F
361
362 # DEBUG_ASSERT_ENABLED 0x01
363 # DEBUG_PRINT_ENABLED 0x02
364 # DEBUG_CODE_ENABLED 0x04
365 # CLEAR_MEMORY_ENABLED 0x08
366 # ASSERT_BREAKPOINT_ENABLED 0x10
367 # ASSERT_DEADLOOP_ENABLED 0x20
368!if $(TARGET) == RELEASE
369 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask | 0x21
370!else
371 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask | 0x2f
372!endif
373
374#######################################################################################
375 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase | $(SEC_PEI_TEMP_RAM_BASE)
376 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize | $(SEC_PEI_TEMP_RAM_SIZE)
377 gUefiOvmfPkgTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress | $(DEVICE_TREE_RAM_BASE)
378
379 gUefiCpuPkgTokenSpaceGuid.PcdLoongArchExceptionVectorBaseAddress | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase
380
381 #
382 # minimal memory for uefi bios should be 512M
383 # 0x00000000 - 0x10000000
384 # 0x90000000 - 0xA0000000
385 #
386 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions | 0x06
387
388 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile | { 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
389
390 #
391 # Network Pcds
392 #
393!include NetworkPkg/NetworkFixedPcds.dsc.inc
394
395 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize | 0x40000
396 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize | 0x40000
397 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize | 0x40000
398
399 gEfiMdeModulePkgTokenSpaceGuid.PcdNullPointerDetectionPropertyMask | 1
400
401################################################################################
402#
403# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
404#
405################################################################################
406[PcdsDynamicDefault]
407 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase | 0
408 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64 | 0
409 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 | 0
410 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase | 0
411 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase | 0
412 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64 | 0
413 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved | 0
414 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration | FALSE
415 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution | 800
416 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution | 600
417 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut | 3
418
419 # Set video resolution for text setup.
420 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution | 640
421 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution | 480
422
423 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion | 0x0300
424 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev | 0x0
425
426 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
427 # enumeration to complete before installing ACPI tables.
428 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration |TRUE
429 gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation |0x0
430 # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
431 # PCD and PcdPciDisableBusEnumeration above have not been assigned yet
432 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress |0xFFFFFFFFFFFFFFFF
433
434!include NetworkPkg/NetworkDynamicPcds.dsc.inc
435
436 #
437 # SMBIOS entry point version
438 #
439 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0300
440 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
441 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|TRUE
442
443[PcdsDynamicHii]
444 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|3
445
446[PcdsPatchableInModule.common]
447 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x0
448
449[Components]
450
451 #
452 # SEC Phase modules
453 #
454 OvmfPkg/LoongArchVirt/Sec/SecMain.inf
455
456 #
457 # PEI Phase modules
458 #
459 MdeModulePkg/Core/Pei/PeiMain.inf
460 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
461 <LibraryClasses>
462 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
463 }
464 MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
465 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
466 <LibraryClasses>
467 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
468 }
469
470 OvmfPkg/LoongArchVirt/PlatformPei/PlatformPei.inf {
471 <LibraryClasses>
472 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
473 }
474
475 #
476 # DXE Phase modules
477 #
478 MdeModulePkg/Core/Dxe/DxeMain.inf {
479 <LibraryClasses>
480 NULL | MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
481 DevicePathLib | MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
482 ExtractGuidedSectionLib | MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
483 }
484
485 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
486 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
487 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
488 <LibraryClasses>
489 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
490 }
491
492 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
493 UefiCpuPkg/CpuDxe/CpuDxe.inf {
494 <LibraryClasses>
495 CpuMmuLib | UefiCpuPkg/Library/CpuMmuLib/CpuMmuLib.inf
496 }
497 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
498 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
499 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
500 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
501 OvmfPkg/LoongArchVirt/Drivers/StableTimerDxe/TimerDxe.inf
502 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
503 MdeModulePkg/Universal/Metronome/Metronome.inf
504 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
505
506 #
507 # Variable
508 #
509 OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.inf
510 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf {
511 <LibraryClasses>
512 NULL|EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf
513 }
514 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
515 <LibraryClasses>
516 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
517 NULL|EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf
518 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
519 }
520
521 #
522 # Platform Driver
523 #
524 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
525 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
526 OvmfPkg/VirtioRngDxe/VirtioRng.inf
527
528 #
529 # FAT filesystem + GPT/MBR partitioning + UDF filesystem + virtio-fs
530 #
531 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
532 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
533 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
534 FatPkg/EnhancedFatDxe/Fat.inf
535 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
536 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
537
538 #
539 #BDS
540 #
541 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
542 <LibraryClasses>
543 DevicePathLib | MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
544 PcdLib | MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
545 }
546 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
547 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
548 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
549 MdeModulePkg/Logo/LogoDxe.inf
550 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
551 MdeModulePkg/Application/UiApp/UiApp.inf {
552 <LibraryClasses>
553 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
554 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
555 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
556 }
557
558 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
559 <LibraryClasses>
560 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
561 }
562
563 #
564 # Network Support
565 #
566!include NetworkPkg/NetworkComponents.dsc.inc
567
568!if $(NETWORK_ENABLE) == TRUE
569!if $(NETWORK_PXE_BOOT_ENABLE) == TRUE
570 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {
571 <LibraryClasses>
572 NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf
573 }
574!endif
575
576!if $(NETWORK_TLS_ENABLE) == TRUE
577 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
578 <LibraryClasses>
579 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
580 }
581!endif
582!endif
583 OvmfPkg/VirtioNetDxe/VirtioNet.inf
584
585 #
586 # IDE/SCSI
587 #
588 MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
589 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
590 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
591
592 #
593 # NVME Driver
594 #
595 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
596
597 #
598 # SMBIOS Support
599 #
600 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
601 <LibraryClasses>
602 NULL | OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
603 }
604 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
605
606 #
607 # PCI
608 #
609 UefiCpuPkg/CpuMmio2Dxe/CpuMmio2Dxe.inf {
610 <LibraryClasses>
611 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
612 }
613 EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
614 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
615 <LibraryClasses>
616 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
617 }
618 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
619 <LibraryClasses>
620 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
621 }
622 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
623 OvmfPkg/Virtio10Dxe/Virtio10.inf
624
625 #
626 # Console
627 #
628 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
629 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
630 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
631 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
632 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
633 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
634 <LibraryClasses>
635 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
636 }
637
638 #
639 # Video
640 #
641 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
642 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
643 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
644 OvmfPkg/PlatformDxe/Platform.inf
645
646 #
647 # Usb Support
648 #
649 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
650 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
651 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
652 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
653 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
654 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
655
656 #
657 # ACPI Support
658 #
659 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
660 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
661 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf {
662 <LibraryClasses>
663 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
664 }
665
666 #
667 # UEFI application (Shell Embedded Boot Loader)
668 #
669!include OvmfPkg/Include/Dsc/ShellComponents.dsc.inc
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