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