VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/ArmVirtPkg/ArmVirtCloudHv.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: 14.0 KB
Line 
1#
2# Copyright (c) 2021, ARM Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-2-Clause-Patent
5#
6#
7
8################################################################################
9#
10# Defines Section - statements that will be processed to create a Makefile.
11#
12################################################################################
13[Defines]
14 PLATFORM_NAME = ArmVirtCloudHv
15 PLATFORM_GUID = DFFED32B-DFFE-D32B-DFFE-D32BDFFED32B
16 PLATFORM_VERSION = 0.1
17 DSC_SPECIFICATION = 0x00010005
18 OUTPUT_DIRECTORY = Build/ArmVirtCloudHv-$(ARCH)
19 SUPPORTED_ARCHITECTURES = AARCH64|ARM
20 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
21 SKUID_IDENTIFIER = DEFAULT
22 FLASH_DEFINITION = ArmVirtPkg/ArmVirtCloudHv.fdf
23
24 #
25 # Defines for default states. These can be changed on the command line.
26 # -D FLAG=VALUE
27 #
28 DEFINE TTY_TERMINAL = FALSE
29 DEFINE SECURE_BOOT_ENABLE = FALSE
30
31# This comes before MdeLibs to ensure stack cookie configuration is chosen
32!include ArmVirtPkg/ArmVirt.dsc.inc
33
34[LibraryClasses.common]
35 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
36 ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
37
38 # Virtio Support
39 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
40 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
41
42 ArmPlatformLib|ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
43
44 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
45 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
46 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
47 PlatformBootManagerLib|ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
48 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
49 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
50 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
51 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
52 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
53 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
54 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
55 PciHostBridgeLib|OvmfPkg/Fdt/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
56 PciHostBridgeUtilityLib|ArmVirtPkg/Library/ArmVirtPciHostBridgeUtilityLib/ArmVirtPciHostBridgeUtilityLib.inf
57
58 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
59 TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf
60
61!include MdePkg/MdeLibs.dsc.inc
62
63[LibraryClasses.common.PEIM]
64 ArmVirtMemInfoLib|ArmVirtPkg/Library/CloudHvVirtMemInfoLib/CloudHvVirtMemInfoPeiLib.inf
65
66[LibraryClasses.common.DXE_DRIVER]
67 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
68
69[LibraryClasses.common.UEFI_DRIVER]
70 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
71
72[BuildOptions]
73!include NetworkPkg/NetworkBuildOptions.dsc.inc
74
75################################################################################
76#
77# Pcd Section - list of all EDK II PCD Entries defined by this Platform
78#
79################################################################################
80
81[PcdsFeatureFlag.common]
82 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
83 # It could be set FALSE to save size.
84 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
85 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
86
87 gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
88
89[PcdsFixedAtBuild.common]
90!if $(ARCH) == AARCH64
91 gArmTokenSpaceGuid.PcdVFPEnabled|1
92!endif
93
94 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000
95 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
96 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
97 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
98 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
99
100 # Rsdp base address in Cloud Hypervisor
101 gArmVirtTokenSpaceGuid.PcdCloudHvAcpiRsdpBaseAddress|0x40200000
102
103 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x4000000
104 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x40000
105 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
106!if $(NETWORK_TLS_ENABLE) == TRUE
107 #
108 # The cumulative and individual VOLATILE variable size limits should be set
109 # high enough for accommodating several and/or large CA certificates.
110 #
111 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
112 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
113!endif
114
115 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
116 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
117
118 #
119 # ARM PrimeCell
120 #
121
122 ## PL011 - Serial Terminal
123 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
124
125 ## Default Terminal Type
126 ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
127 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
128
129 # System Memory Base -- fixed at 0x4000_0000
130 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000
131
132 # initial location of the device tree blob passed by Cloud Hypervisor -- base of DRAM
133 gUefiOvmfPkgTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000
134
135 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
136 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
137
138 #
139 # The maximum physical I/O addressability of the processor, set with
140 # BuildCpuHob().
141 #
142 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
143
144 #
145 # Enable the non-executable DXE stack. (This gets set up by DxeIpl)
146 #
147 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
148
149!if $(SECURE_BOOT_ENABLE) == TRUE
150 # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
151 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
152 gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
153 gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
154!endif
155
156 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|3
157 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
158
159[PcdsFixedAtBuild.AARCH64]
160 # Clearing BIT0 in this PCD prevents installing a 32-bit SMBIOS entry point,
161 # if the entry point version is >= 3.0. AARCH64 OSes cannot assume the
162 # presence of the 32-bit entry point anyway (because many AARCH64 systems
163 # don't have 32-bit addressable physical RAM), and the additional allocations
164 # below 4 GB needlessly fragment the memory map. So expose the 64-bit entry
165 # point only, for entry point versions >= 3.0.
166 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosEntryPointProvideMethod|0x2
167
168[PcdsDynamicDefault.common]
169 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
170
171 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
172 # enumeration to complete before installing ACPI tables.
173 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
174
175 # System Memory Size -- 1 MB initially, actual size will be fetched from DT
176 gArmTokenSpaceGuid.PcdSystemMemorySize|0x00100000
177
178 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
179 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
180 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
181 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
182 gArmTokenSpaceGuid.PcdArmArchTimerHypVirtIntrNum|0x0
183
184 #
185 # ARM General Interrupt Controller
186 #
187 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
188 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
189 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
190
191 ## PL031 RealTimeClock
192 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
193
194 # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
195 # PCD and PcdPciDisableBusEnumeration above have not been assigned yet
196 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
197
198 gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0
199
200 gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress|0x0
201
202[PcdsDynamicHii]
203 gUefiOvmfPkgTokenSpaceGuid.PcdForceNoAcpi|L"ForceNoAcpi"|gOvmfVariableGuid|0x0|FALSE|NV,BS
204
205################################################################################
206#
207# Components Section - list of all EDK II Modules needed by this Platform
208#
209################################################################################
210[Components.common]
211 #
212 # PEI Phase modules
213 #
214 ArmPlatformPkg/Sec/Sec.inf
215 MdeModulePkg/Core/Pei/PeiMain.inf
216 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
217 <LibraryClasses>
218 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
219 }
220 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
221 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
222 ArmPkg/Drivers/CpuPei/CpuPei.inf
223
224 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
225
226 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
227 <LibraryClasses>
228 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
229 }
230
231 #
232 # DXE
233 #
234 MdeModulePkg/Core/Dxe/DxeMain.inf {
235 <LibraryClasses>
236 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
237 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
238 }
239 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
240 <LibraryClasses>
241 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
242 }
243
244 #
245 # Architectural Protocols
246 #
247 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
248 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
249 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
250 <LibraryClasses>
251 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
252 # don't use unaligned CopyMem () on the UEFI varstore NOR flash region
253 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
254 }
255!if $(SECURE_BOOT_ENABLE) == TRUE
256 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
257 <LibraryClasses>
258 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
259 }
260 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
261 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
262!else
263 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
264!endif
265 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
266 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
267 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
268 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
269 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf {
270 <LibraryClasses>
271 NULL|ArmVirtPkg/Library/ArmVirtPL031FdtClientLib/ArmVirtPL031FdtClientLib.inf
272 }
273 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
274
275 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
276 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
277 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
278 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
279 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
280
281 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
282
283 ArmPkg/Drivers/ArmGicDxe/ArmGicDxe.inf {
284 <LibraryClasses>
285 NULL|ArmVirtPkg/Library/ArmVirtGicArchLib/ArmVirtGicArchLib.inf
286 }
287 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
288 <LibraryClasses>
289 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
290 }
291 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
292
293 #
294 # Status Code Routing
295 #
296 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
297
298 #
299 # Platform Driver
300 #
301 OvmfPkg/Fdt/VirtioFdtDxe/VirtioFdtDxe.inf
302 EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
303 OvmfPkg/Fdt/HighMemDxe/HighMemDxe.inf
304 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
305 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
306 OvmfPkg/VirtioNetDxe/VirtioNet.inf
307 OvmfPkg/VirtioRngDxe/VirtioRng.inf
308
309 #
310 # FAT filesystem + GPT/MBR partitioning + UDF filesystem + virtio-fs
311 #
312 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
313 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
314 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
315 FatPkg/EnhancedFatDxe/Fat.inf
316 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
317 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
318
319 #
320 # Bds
321 #
322 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
323 <LibraryClasses>
324 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
325 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
326 }
327 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
328 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
329 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
330 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
331 MdeModulePkg/Logo/LogoDxe.inf
332 MdeModulePkg/Application/UiApp/UiApp.inf {
333 <LibraryClasses>
334 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
335 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
336 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
337 }
338
339 #
340 # SCSI Bus and Disk Driver
341 #
342 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
343 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
344
345 #
346 # PCI support
347 #
348 UefiCpuPkg/CpuMmio2Dxe/CpuMmio2Dxe.inf {
349 <LibraryClasses>
350 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
351 }
352 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
353 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
354 <LibraryClasses>
355 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
356 }
357 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
358 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
359 OvmfPkg/Virtio10Dxe/Virtio10.inf
360
361 #
362 # ACPI Support
363 #
364 ArmVirtPkg/CloudHvPlatformHasAcpiDtDxe/CloudHvHasAcpiDtDxe.inf
365[Components.AARCH64]
366 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
367 ArmVirtPkg/CloudHvAcpiPlatformDxe/CloudHvAcpiPlatformDxe.inf {
368 <LibraryClasses>
369 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
370 }
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