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