2 # Copyright (c) 2021, ARM Limited. All rights reserved.
4 # SPDX-License-Identifier: BSD-2-Clause-Patent
8 ################################################################################
10 # Defines Section - statements that will be processed to create a Makefile.
12 ################################################################################
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
25 # Defines for default states. These can be changed on the command line.
28 DEFINE TTY_TERMINAL = FALSE
29 DEFINE SECURE_BOOT_ENABLE = FALSE
31 !include ArmVirtPkg/ArmVirt.dsc.inc
33 [LibraryClasses.common]
34 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
35 ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
38 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
39 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
41 ArmPlatformLib|ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
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
57 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
59 !include MdePkg/MdeLibs.dsc.inc
61 [LibraryClasses.common.PEIM]
62 ArmVirtMemInfoLib|ArmVirtPkg/Library/QemuVirtMemInfoLib/QemuVirtMemInfoPeiLib.inf
64 [LibraryClasses.common.DXE_DRIVER]
65 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
67 [LibraryClasses.common.UEFI_DRIVER]
68 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
71 !include NetworkPkg/NetworkBuildOptions.dsc.inc
73 ################################################################################
75 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
77 ################################################################################
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
85 gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
87 [PcdsFixedAtBuild.common]
88 !if $(ARCH) == AARCH64
89 gArmTokenSpaceGuid.PcdVFPEnabled|1
92 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000
93 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
94 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
95 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
96 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
98 # Rsdp base address in Cloud Hypervisor
99 gArmVirtTokenSpaceGuid.PcdCloudHvAcpiRsdpBaseAddress|0x40200000
101 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x4000000
102 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x40000
103 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
104 !if $(NETWORK_TLS_ENABLE) == TRUE
106 # The cumulative and individual VOLATILE variable size limits should be set
107 # high enough for accommodating several and/or large CA certificates.
109 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
110 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
113 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
114 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
120 ## PL011 - Serial Terminal
121 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
123 ## Default Terminal Type
124 ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
125 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
127 # System Memory Base -- fixed at 0x4000_0000
128 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000
130 # initial location of the device tree blob passed by Cloud Hypervisor -- base of DRAM
131 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000
133 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
134 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
137 # The maximum physical I/O addressability of the processor, set with
140 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
143 # Enable the non-executable DXE stack. (This gets set up by DxeIpl)
145 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
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
154 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|3
155 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
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
166 [PcdsDynamicDefault.common]
167 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
169 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
170 # enumeration to complete before installing ACPI tables.
171 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
173 # System Memory Size -- 1 MB initially, actual size will be fetched from DT
174 gArmTokenSpaceGuid.PcdSystemMemorySize|0x00100000
176 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
177 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
178 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
179 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
182 # ARM General Interrupt Controller
184 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
185 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
186 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
188 ## PL031 RealTimeClock
189 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
191 # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
192 # PCD and PcdPciDisableBusEnumeration above have not been assigned yet
193 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
195 gArmTokenSpaceGuid.PcdPciIoTranslation|0
197 gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress|0x0
200 gArmVirtTokenSpaceGuid.PcdForceNoAcpi|L"ForceNoAcpi"|gArmVirtVariableGuid|0x0|FALSE|NV,BS
202 ################################################################################
204 # Components Section - list of all EDK II Modules needed by this Platform
206 ################################################################################
211 ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
212 MdeModulePkg/Core/Pei/PeiMain.inf
213 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
215 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
217 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
218 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
219 ArmPkg/Drivers/CpuPei/CpuPei.inf
221 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
223 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
225 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
231 MdeModulePkg/Core/Dxe/DxeMain.inf {
233 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
234 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
236 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
238 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
242 # Architectural Protocols
244 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
245 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
246 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
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
252 !if $(SECURE_BOOT_ENABLE) == TRUE
253 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
255 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
257 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
258 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
260 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
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 {
268 NULL|ArmVirtPkg/Library/ArmVirtPL031FdtClientLib/ArmVirtPL031FdtClientLib.inf
270 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
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
278 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
280 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
281 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
283 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
285 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
288 # Status Code Routing
290 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
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
304 # FAT filesystem + GPT/MBR partitioning + UDF filesystem + virtio-fs
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
316 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
318 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
319 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
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 {
328 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
329 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
330 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
334 # SCSI Bus and Disk Driver
336 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
337 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
342 ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf {
344 NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
346 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
347 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
349 NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
351 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
352 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
353 OvmfPkg/Virtio10Dxe/Virtio10.inf
358 ArmVirtPkg/CloudHvPlatformHasAcpiDtDxe/CloudHvHasAcpiDtDxe.inf
360 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
361 ArmVirtPkg/CloudHvAcpiPlatformDxe/CloudHvAcpiPlatformDxe.inf {
363 NULL|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf