VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/ArmVirtPkg/ArmVirtCloudHv.dsc

最後變更 在這個檔案是 105670,由 vboxsync 提交於 6 月 前

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

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

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