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