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