VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/ArmVirtPkg/ArmVirtKvmTool.dsc

最後變更 在這個檔案是 105670,由 vboxsync 提交於 3 月 前

Devices/EFI/FirmwareNew: Merge edk2-stable-202405 and make it build on aarch64, bugref:4643

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

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