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