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