]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/ArmVirtKvmTool.dsc
a1bf4b9be87bfcf7573ceefe550eac3d12aedd73
[mirror_edk2.git] / ArmVirtPkg / ArmVirtKvmTool.dsc
1 # @file
2 # Workspace file for KVMTool virtual platform.
3 #
4 # Copyright (c) 2018 - 2022, 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 NorFlashPlatformLib|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
81 HwInfoParserLib|DynamicTablesPkg/Library/FdtHwInfoParserLib/FdtHwInfoParserLib.inf
82 DynamicPlatRepoLib|DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/DynamicPlatRepoLib.inf
83
84 [LibraryClasses.common.SEC, LibraryClasses.common.PEI_CORE, LibraryClasses.common.PEIM]
85 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
86 PlatformHookLib|ArmVirtPkg/Library/Fdt16550SerialPortHookLib/EarlyFdt16550SerialPortHookLib.inf
87 SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
88
89 [LibraryClasses.common.UEFI_DRIVER]
90 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
91
92 [BuildOptions]
93 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
94 #
95 # We need to avoid jump tables in SEC and BASE modules, so that the PE/COFF
96 # self-relocation code itself is guaranteed to be position independent.
97 #
98 GCC:*_*_*_CC_XIPFLAGS = -fno-jump-tables
99
100 ################################################################################
101 #
102 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
103 #
104 ################################################################################
105
106 [PcdsFeatureFlag.common]
107 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
108 # It could be set FALSE to save size.
109 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
110 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
111
112 # Use MMIO for accessing RTC controller registers.
113 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcUseMmio|TRUE
114
115 [PcdsFixedAtBuild.common]
116 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F
117
118 gArmPlatformTokenSpaceGuid.PcdCoreCount|1
119
120 !if $(ARCH) == AARCH64
121 gArmTokenSpaceGuid.PcdVFPEnabled|1
122 !endif
123
124 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
125 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
126 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
127
128 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
129 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
130
131 #
132 # TTY Terminal Type
133 # 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
134 gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
135
136 #
137 # ARM Virtual Architectural Timer -- fetch frequency from KVM
138 #
139 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
140
141 # Use MMIO for accessing Serial port registers.
142 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|TRUE
143 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialPciDeviceInfo|{0xFF}
144
145 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
146 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
147
148 #
149 # The maximum physical I/O addressability of the processor, set with
150 # BuildCpuHob().
151 #
152 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
153
154 [PcdsPatchableInModule.common]
155 #
156 # This will be overridden in the code
157 #
158 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0
159 gArmTokenSpaceGuid.PcdSystemMemorySize|0x0
160
161 #
162 # The device tree base address is handed off by kvmtool.
163 # We are booting from RAM using the Linux kernel boot protocol,
164 # x0 will point to the DTB image in memory.
165 #
166 gArmVirtTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x0
167
168 gArmTokenSpaceGuid.PcdFdBaseAddress|0x0
169 gArmTokenSpaceGuid.PcdFvBaseAddress|0x0
170
171 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x0
172
173 [PcdsDynamicDefault.common]
174 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
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 #
189 # PCI settings
190 #
191 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
192
193 # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
194 # PCD and PcdPciDisableBusEnumeration above have not been assigned yet
195 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
196
197 gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x0
198
199 #
200 # Set video resolution for boot options and for text setup.
201 # PlatformDxe can set the former at runtime.
202 #
203 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
204 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
205 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
206 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
207
208 # Setup Flash storage variables
209 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0
210 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x40000
211 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
212 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x40000
213 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
214 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x40000
215
216 ## RTC Register address in MMIO space.
217 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister64|0x0
218 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister64|0x0
219
220 ################################################################################
221 #
222 # Components Section - list of all EDK II Modules needed by this Platform
223 #
224 ################################################################################
225 [Components.common]
226 #
227 # PEI Phase modules
228 #
229 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {
230 <LibraryClasses>
231 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
232 LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
233 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
234 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
235 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
236 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
237 }
238
239 #
240 # DXE
241 #
242 MdeModulePkg/Core/Dxe/DxeMain.inf {
243 <LibraryClasses>
244 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
245 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
246 }
247 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
248 <LibraryClasses>
249 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
250 }
251
252 #
253 # Architectural Protocols
254 #
255 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
256 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
257 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
258 <LibraryClasses>
259 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
260 NULL|EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf
261 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
262 }
263
264 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
265 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
266 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf {
267 <LibraryClasses>
268 NULL|ArmVirtPkg/Library/NorFlashKvmtoolLib/NorFlashKvmtoolLib.inf
269 }
270
271 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
272 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
273 MdeModulePkg/Universal/Metronome/Metronome.inf
274 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf {
275 <LibraryClasses>
276 NULL|ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.inf
277 }
278
279 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
280 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
281 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
282 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
283 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
284
285 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
286
287 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
288 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {
289 <LibraryClasses>
290 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf
291 }
292
293 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
294
295 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
296
297 #
298 # Platform Driver
299 #
300 ArmVirtPkg/KvmtoolPlatformDxe/KvmtoolPlatformDxe.inf
301 OvmfPkg/Fdt/VirtioFdtDxe/VirtioFdtDxe.inf
302 EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
303 OvmfPkg/Fdt/HighMemDxe/HighMemDxe.inf
304 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
305 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
306 OvmfPkg/VirtioNetDxe/VirtioNet.inf
307 OvmfPkg/VirtioRngDxe/VirtioRng.inf
308
309 #
310 # FAT filesystem + GPT/MBR partitioning + UDF filesystem
311 #
312 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
313 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
314 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
315 FatPkg/EnhancedFatDxe/Fat.inf
316 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
317
318 #
319 # Bds
320 #
321 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
322 <LibraryClasses>
323 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
324 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
325 }
326 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
327 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
328 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
329 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
330 MdeModulePkg/Logo/LogoDxe.inf
331 MdeModulePkg/Application/UiApp/UiApp.inf {
332 <LibraryClasses>
333 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
334 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
335 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
336 }
337
338 #
339 # SCSI Bus and Disk Driver
340 #
341 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
342 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
343 #
344 # PCI support
345 #
346 ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf {
347 <LibraryClasses>
348 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
349 NULL|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
350 }
351 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
352 <LibraryClasses>
353 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
354 NULL|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
355 }
356 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
357 <LibraryClasses>
358 NULL|OvmfPkg/Fdt/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
359 NULL|OvmfPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf
360 }
361 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
362 OvmfPkg/Virtio10Dxe/Virtio10.inf
363
364 !if $(ARCH) == AARCH64
365 #
366 # ACPI Support
367 #
368 ArmVirtPkg/KvmtoolCfgMgrDxe/ConfigurationManagerDxe.inf
369 !endif