VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/ArmVirtPkg/ArmVirtKvmTool.dsc@ 109019

Last change on this file since 109019 was 108794, checked in by vboxsync, 4 weeks ago

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

  • Property svn:eol-style set to native
File size: 15.0 KB
Line 
1# @file
2# Workspace file for KVMTool virtual platform.
3#
4# Copyright (c) 2018 - 2023, Arm Limited. All rights reserved.
5#
6# SPDX-License-Identifier: BSD-2-Clause-Patent
7#
8#
9
10################################################################################
11#
12# Defines Section - statements that will be processed to create a Makefile.
13#
14################################################################################
15[Defines]
16 PLATFORM_NAME = ArmVirtKvmTool
17 PLATFORM_GUID = 4CB2C61E-FA32-4130-8E37-54ABC71A1A43
18 PLATFORM_VERSION = 0.1
19 DSC_SPECIFICATION = 0x0001001B
20!ifdef $(EDK2_OUT_DIR)
21 OUTPUT_DIRECTORY = $(EDK2_OUT_DIR)
22!else
23 OUTPUT_DIRECTORY = Build/ArmVirtKvmTool-$(ARCH)
24!endif
25 SUPPORTED_ARCHITECTURES = AARCH64|ARM
26 BUILD_TARGETS = DEBUG|RELEASE
27 SKUID_IDENTIFIER = DEFAULT
28 FLASH_DEFINITION = ArmVirtPkg/ArmVirtKvmTool.fdf
29
30[Defines.AARCH64]
31 DEFINE ACPIVIEW_ENABLE = TRUE
32
33
34# This comes before MdeLibs to ensure stack cookie configuration is chosen
35!include ArmVirtPkg/ArmVirt.dsc.inc
36
37!if $(ARCH) == AARCH64
38!include DynamicTablesPkg/DynamicTables.dsc.inc
39!endif
40
41!include MdePkg/MdeLibs.dsc.inc
42
43[LibraryClasses.common]
44 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
45 ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
46
47 # Virtio Support
48 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
49 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
50
51 ArmPlatformLib|ArmPlatformPkg/Library/ArmPlatformLibNull/ArmPlatformLibNull.inf
52 ArmVirtMemInfoLib|ArmVirtPkg/Library/KvmtoolVirtMemInfoLib/KvmtoolVirtMemInfoLib.inf
53
54 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
55 VirtNorFlashPlatformLib|ArmVirtPkg/Library/NorFlashKvmtoolLib/NorFlashKvmtoolLib.inf
56
57 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
58
59 # BDS Libraries
60 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
61 PlatformBootManagerLib|ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
62 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
63
64 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
65 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
66
67 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
68
69 PciPcdProducerLib|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
70 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
71 PciHostBridgeLib|OvmfPkg/Fdt/FdtPciHostBridgeLib/FdtPciHostBridgeLib.inf
72 PciHostBridgeUtilityLib|ArmVirtPkg/Library/ArmVirtPciHostBridgeUtilityLib/ArmVirtPciHostBridgeUtilityLib.inf
73
74 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
75 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
76
77 PlatformPeiLib|ArmVirtPkg/Library/KvmtoolPlatformPeiLib/KvmtoolPlatformPeiLib.inf
78
79 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
80 PlatformHookLib|ArmVirtPkg/Library/Fdt16550SerialPortHookLib/Fdt16550SerialPortHookLib.inf
81 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
82!if $(TARGET) != RELEASE
83 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
84!endif
85
86 HwInfoParserLib|DynamicTablesPkg/Library/FdtHwInfoParserLib/FdtHwInfoParserLib.inf
87 DynamicPlatRepoLib|DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/DynamicPlatRepoLib.inf
88
89 ArmMonitorLib|ArmVirtPkg/Library/ArmVirtMonitorLib/ArmVirtMonitorLib.inf
90 ArmTrngLib|ArmPkg/Library/ArmTrngLib/ArmTrngLib.inf
91
92[LibraryClasses.common.SEC, LibraryClasses.common.PEI_CORE, LibraryClasses.common.PEIM]
93 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
94 PlatformHookLib|ArmVirtPkg/Library/Fdt16550SerialPortHookLib/EarlyFdt16550SerialPortHookLib.inf
95 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
96!if $(TARGET) != RELEASE
97 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
98!endif
99
100[LibraryClasses.common.DXE_RUNTIME_DRIVER]
101!if $(TARGET) != RELEASE
102 DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
103!endif
104
105[LibraryClasses.common.UEFI_DRIVER]
106 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
107
108[BuildOptions]
109 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
110 #
111 # We need to avoid jump tables in SEC and BASE modules, so that the PE/COFF
112 # self-relocation code itself is guaranteed to be position independent.
113 #
114 GCC:*_*_*_CC_XIPFLAGS = -fno-jump-tables
115
116################################################################################
117#
118# Pcd Section - list of all EDK II PCD Entries defined by this Platform
119#
120################################################################################
121
122[PcdsFeatureFlag.common]
123 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
124 # It could be set FALSE to save size.
125 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
126 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
127
128 # Use MMIO for accessing RTC controller registers.
129 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcUseMmio|TRUE
130
131[PcdsFixedAtBuild.common]
132 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F
133
134 gArmPlatformTokenSpaceGuid.PcdCoreCount|1
135
136!if $(ARCH) == AARCH64
137 gArmTokenSpaceGuid.PcdVFPEnabled|1
138!endif
139
140 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
141 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
142 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
143
144 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
145 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
146
147 #
148 # TTY Terminal Type
149 # 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
150 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
151
152 # Use MMIO for accessing Serial port registers.
153 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|TRUE
154 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialPciDeviceInfo|{0xFF}
155
156 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
157 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
158
159 #
160 # The maximum physical I/O addressability of the processor, set with
161 # BuildCpuHob().
162 #
163 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
164
165[PcdsPatchableInModule.common]
166 #
167 # This will be overridden in the code
168 #
169 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
170 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
171
172 #
173 # The device tree base address is handed off by kvmtool.
174 # We are booting from RAM using the Linux kernel boot protocol,
175 # x0 will point to the DTB image in memory.
176 #
177 gUefiOvmfPkgTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0
178
179 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
180 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
181
182 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x0
183
184[PcdsDynamicHii]
185 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5
186
187[PcdsDynamicDefault.common]
188 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
189 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
190 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
191 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
192 gArmTokenSpaceGuid.PcdArmArchTimerHypVirtIntrNum|0x0
193
194 #
195 # ARM General Interrupt Controller
196 #
197 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
198 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
199 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
200
201 #
202 # PCI settings
203 #
204 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
205
206 # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
207 # PCD and PcdPciDisableBusEnumeration above have not been assigned yet
208 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
209
210 gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x0
211
212 #
213 # Set video resolution for boot options and for text setup.
214 # PlatformDxe can set the former at runtime.
215 #
216 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
217 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
218 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
219 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
220
221 # Setup Flash storage variables
222 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0
223 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x40000
224 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
225 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x40000
226 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
227 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x40000
228
229 # Define PCD for emulating Runtime Variable storage when
230 # CFI flash is absent.
231 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|FALSE
232
233 ## RTC Register address in MMIO space.
234 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister64|0x0
235 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister64|0x0
236
237################################################################################
238#
239# Components Section - list of all EDK II Modules needed by this Platform
240#
241################################################################################
242[Components.common]
243 #
244 # PEI Phase modules
245 #
246 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
247 <LibraryClasses>
248 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
249 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
250 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
251 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
252 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
253 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
254 }
255
256 #
257 # DXE
258 #
259 MdeModulePkg/Core/Dxe/DxeMain.inf {
260 <LibraryClasses>
261 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
262 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
263 }
264 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
265 <LibraryClasses>
266 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
267 }
268
269 #
270 # Architectural Protocols
271 #
272 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
273 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
274 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
275 <LibraryClasses>
276 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
277 NULL|EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf
278 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
279 }
280
281 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
282 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
283 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf {
284 <LibraryClasses>
285 NULL|ArmVirtPkg/Library/NorFlashKvmtoolLib/NorFlashKvmtoolLib.inf
286 }
287
288 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
289 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
290 MdeModulePkg/Universal/Metronome/Metronome.inf
291 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf {
292 <LibraryClasses>
293 NULL|ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.inf
294 }
295
296 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
297 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
298 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
299 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
300 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
301
302 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
303
304 ArmPkg/Drivers/ArmGicDxe/ArmGicDxe.inf {
305 <LibraryClasses>
306 NULL|ArmVirtPkg/Library/ArmVirtGicArchLib/ArmVirtGicArchLib.inf
307 }
308 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
309 <LibraryClasses>
310 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
311 }
312
313 OvmfPkg/VirtNorFlashDxe/VirtNorFlashDxe.inf {
314 <LibraryClasses>
315 # don't use unaligned CopyMem () on the UEFI varstore NOR flash region
316 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
317 }
318
319 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
320
321 #
322 # Platform Driver
323 #
324 ArmVirtPkg/KvmtoolPlatformDxe/KvmtoolPlatformDxe.inf {
325 <LibraryClasses>
326 NULL|ArmVirtPkg/Library/NorFlashKvmtoolLib/NorFlashKvmtoolLib.inf
327 }
328 OvmfPkg/Fdt/VirtioFdtDxe/VirtioFdtDxe.inf
329 EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
330 OvmfPkg/Fdt/HighMemDxe/HighMemDxe.inf
331 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
332 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
333 OvmfPkg/VirtioNetDxe/VirtioNet.inf
334 OvmfPkg/VirtioRngDxe/VirtioRng.inf
335
336 #
337 # FAT filesystem + GPT/MBR partitioning + UDF filesystem
338 #
339 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
340 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
341 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
342 FatPkg/EnhancedFatDxe/Fat.inf
343 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
344
345 #
346 # Bds
347 #
348 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
349 <LibraryClasses>
350 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
351 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
352 }
353 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
354 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
355 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
356 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
357 MdeModulePkg/Logo/LogoDxe.inf
358 MdeModulePkg/Application/UiApp/UiApp.inf {
359 <LibraryClasses>
360 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
361 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
362 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
363 }
364
365 #
366 # SCSI Bus and Disk Driver
367 #
368 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
369 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
370 #
371 # PCI support
372 #
373 UefiCpuPkg/CpuMmio2Dxe/CpuMmio2Dxe.inf {
374 <LibraryClasses>
375 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
376 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
377 }
378 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
379 <LibraryClasses>
380 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
381 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
382 }
383 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
384 <LibraryClasses>
385 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
386 PciExpressLib|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
387 }
388 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
389 OvmfPkg/Virtio10Dxe/Virtio10.inf
390
391 #
392 # Rng Support
393 #
394 SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
395
396!if $(ARCH) == AARCH64
397 #
398 # ACPI Support
399 #
400 ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManagerDxe.inf
401!endif
Note: See TracBrowser for help on using the repository browser.

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