]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/ArmVirtCloudHv.dsc
Maintainers.txt: Update email address
[mirror_edk2.git] / ArmVirtPkg / ArmVirtCloudHv.dsc
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/QemuVirtMemInfoLib/QemuVirtMemInfoPeiLib.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 gArmVirtTokenSpaceGuid.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
182 #
183 # ARM General Interrupt Controller
184 #
185 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
186 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
187 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
188
189 ## PL031 RealTimeClock
190 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
191
192 # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
193 # PCD and PcdPciDisableBusEnumeration above have not been assigned yet
194 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
195
196 gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0
197
198 gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress|0x0
199
200 [PcdsDynamicHii]
201 gArmVirtTokenSpaceGuid.PcdForceNoAcpi|L"ForceNoAcpi"|gArmVirtVariableGuid|0x0|FALSE|NV,BS
202
203 ################################################################################
204 #
205 # Components Section - list of all EDK II Modules needed by this Platform
206 #
207 ################################################################################
208 [Components.common]
209 #
210 # PEI Phase modules
211 #
212 ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
213 MdeModulePkg/Core/Pei/PeiMain.inf
214 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
215 <LibraryClasses>
216 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
217 }
218 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
219 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
220 ArmPkg/Drivers/CpuPei/CpuPei.inf
221
222 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
223
224 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
225 <LibraryClasses>
226 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
227 }
228
229 #
230 # DXE
231 #
232 MdeModulePkg/Core/Dxe/DxeMain.inf {
233 <LibraryClasses>
234 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
235 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
236 }
237 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
238 <LibraryClasses>
239 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
240 }
241
242 #
243 # Architectural Protocols
244 #
245 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
246 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
247 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
248 <LibraryClasses>
249 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
250 # don't use unaligned CopyMem () on the UEFI varstore NOR flash region
251 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
252 }
253 !if $(SECURE_BOOT_ENABLE) == TRUE
254 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
255 <LibraryClasses>
256 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
257 }
258 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
259 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
260 !else
261 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
262 !endif
263 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
264 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
265 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
266 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
267 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf {
268 <LibraryClasses>
269 NULL|ArmVirtPkg/Library/ArmVirtPL031FdtClientLib/ArmVirtPL031FdtClientLib.inf
270 }
271 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
272
273 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
274 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
275 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
276 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
277 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
278
279 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
280
281 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
282 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
283 <LibraryClasses>
284 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
285 }
286 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
287
288 #
289 # Status Code Routing
290 #
291 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
292
293 #
294 # Platform Driver
295 #
296 OvmfPkg/Fdt/VirtioFdtDxe/VirtioFdtDxe.inf
297 EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
298 OvmfPkg/Fdt/HighMemDxe/HighMemDxe.inf
299 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
300 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
301 OvmfPkg/VirtioNetDxe/VirtioNet.inf
302 OvmfPkg/VirtioRngDxe/VirtioRng.inf
303
304 #
305 # FAT filesystem + GPT/MBR partitioning + UDF filesystem + virtio-fs
306 #
307 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
308 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
309 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
310 FatPkg/EnhancedFatDxe/Fat.inf
311 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
312 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
313
314 #
315 # Bds
316 #
317 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
318 <LibraryClasses>
319 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
320 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
321 }
322 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
323 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
324 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
325 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
326 MdeModulePkg/Logo/LogoDxe.inf
327 MdeModulePkg/Application/UiApp/UiApp.inf {
328 <LibraryClasses>
329 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
330 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
331 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
332 }
333
334 #
335 # SCSI Bus and Disk Driver
336 #
337 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
338 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
339
340 #
341 # PCI support
342 #
343 ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf {
344 <LibraryClasses>
345 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
346 }
347 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
348 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
349 <LibraryClasses>
350 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
351 }
352 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
353 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
354 OvmfPkg/Virtio10Dxe/Virtio10.inf
355
356 #
357 # ACPI Support
358 #
359 ArmVirtPkg/CloudHvPlatformHasAcpiDtDxe/CloudHvHasAcpiDtDxe.inf
360 [Components.AARCH64]
361 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
362 ArmVirtPkg/CloudHvAcpiPlatformDxe/CloudHvAcpiPlatformDxe.inf {
363 <LibraryClasses>
364 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
365 }