]> git.proxmox.com Git - mirror_edk2.git/blame - ArmVirtPkg/ArmVirtKvmTool.dsc
BaseTools: Add new CLANG8ELF tool chain for new LLVM/CLANG8
[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
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
166a32d0 63 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.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
178 #\r
179 # Set video resolution for boot options and for text setup.\r
180 # PlatformDxe can set the former at runtime.\r
181 #\r
182 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800\r
183 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600\r
184 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640\r
185 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480\r
186\r
187 ## Force DTB\r
188 gArmVirtTokenSpaceGuid.PcdForceNoAcpi|TRUE\r
189\r
190 # Setup Flash storage variables\r
191 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0\r
192 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x40000\r
193 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0\r
194 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x40000\r
195 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0\r
196 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x40000\r
197\r
198 ## RTC Register address in MMIO space.\r
199 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister64|0x0\r
200 gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister64|0x0\r
201\r
202################################################################################\r
203#\r
204# Components Section - list of all EDK II Modules needed by this Platform\r
205#\r
206################################################################################\r
207[Components.common]\r
208 #\r
209 # PEI Phase modules\r
210 #\r
211 ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf {\r
212 <LibraryClasses>\r
213 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf\r
214 LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
215 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf\r
216 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf\r
217 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf\r
218 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf\r
219 }\r
220\r
221 #\r
222 # DXE\r
223 #\r
224 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
225 <LibraryClasses>\r
226 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf\r
227 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
228 }\r
229 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {\r
230 <LibraryClasses>\r
231 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
232 }\r
233\r
234 #\r
235 # Architectural Protocols\r
236 #\r
237 ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r
238 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
239 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {\r
240 <LibraryClasses>\r
241 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf\r
242 NULL|EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf\r
243 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r
244 }\r
245\r
246 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
247 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
248 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf {\r
249 <LibraryClasses>\r
250 NULL|ArmVirtPkg/Library/NorFlashKvmtoolLib/NorFlashKvmtoolLib.inf\r
251 }\r
252\r
253 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
254 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf\r
255 MdeModulePkg/Universal/Metronome/Metronome.inf\r
256 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf {\r
257 <LibraryClasses>\r
258 NULL|ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.inf\r
259 }\r
260\r
261 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
262 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
263 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r
264 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
265 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r
266\r
267 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
268\r
269 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r
270 ArmPkg/Drivers/TimerDxe/TimerDxe.inf {\r
271 <LibraryClasses>\r
272 NULL|ArmVirtPkg/Library/ArmVirtTimerFdtClientLib/ArmVirtTimerFdtClientLib.inf\r
273 }\r
274\r
275 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf\r
276\r
277 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
278\r
279 #\r
280 # Platform Driver\r
281 #\r
282 ArmVirtPkg/KvmtoolPlatformDxe/KvmtoolPlatformDxe.inf\r
283 ArmVirtPkg/VirtioFdtDxe/VirtioFdtDxe.inf\r
284 ArmVirtPkg/FdtClientDxe/FdtClientDxe.inf\r
285 ArmVirtPkg/HighMemDxe/HighMemDxe.inf\r
286 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r
287 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf\r
288 OvmfPkg/VirtioNetDxe/VirtioNet.inf\r
289 OvmfPkg/VirtioRngDxe/VirtioRng.inf\r
290\r
291 #\r
292 # FAT filesystem + GPT/MBR partitioning + UDF filesystem\r
293 #\r
294 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
295 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
296 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
297 FatPkg/EnhancedFatDxe/Fat.inf\r
298 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf\r
299\r
300 #\r
301 # Bds\r
302 #\r
303 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {\r
304 <LibraryClasses>\r
305 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
306 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
307 }\r
308 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
309 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
310 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf\r
311 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf\r
312 MdeModulePkg/Logo/LogoDxe.inf\r
313 MdeModulePkg/Application/UiApp/UiApp.inf {\r
314 <LibraryClasses>\r
315 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf\r
316 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf\r
317 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf\r
318 }\r
319\r
320 #\r
321 # SCSI Bus and Disk Driver\r
322 #\r
323 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
324 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r