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