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