]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.dsc
ArmVirtualizationPkg/ArmVirtualizationQemu: add USB keyboard input
[mirror_edk2.git] / ArmPlatformPkg / ArmVirtualizationPkg / ArmVirtualizationQemu.dsc
1 #
2 # Copyright (c) 2011-2013, ARM Limited. All rights reserved.
3 # Copyright (c) 2014, Linaro Limited. All rights reserved.
4 #
5 # This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php
9 #
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 #
13 #
14
15 ################################################################################
16 #
17 # Defines Section - statements that will be processed to create a Makefile.
18 #
19 ################################################################################
20 [Defines]
21 PLATFORM_NAME = ArmVirtualizationQemu
22 PLATFORM_GUID = 37d7e986-f7e9-45c2-8067-e371421a626c
23 PLATFORM_VERSION = 0.1
24 DSC_SPECIFICATION = 0x00010005
25 OUTPUT_DIRECTORY = Build/ArmVirtualizationQemu-$(ARCH)
26 SUPPORTED_ARCHITECTURES = AARCH64|ARM
27 BUILD_TARGETS = DEBUG|RELEASE
28 SKUID_IDENTIFIER = DEFAULT
29 FLASH_DEFINITION = ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.fdf
30
31 !include ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualization.dsc.inc
32
33 [LibraryClasses.AARCH64]
34 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf
35 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexAEMv8Lib/ArmCortexAEMv8Lib.inf
36
37 [LibraryClasses.ARM]
38 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
39 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexA15Lib/ArmCortexA15Lib.inf
40
41 [LibraryClasses.common]
42 # Virtio Support
43 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
44 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
45 QemuFwCfgLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf
46
47 ArmPlatformLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/ArmVirtualizationPlatformLib.inf
48 ArmPlatformSysConfigLib|ArmPlatformPkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.inf
49
50 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
51
52 !ifdef INTEL_BDS
53 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
54 GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
55 PlatformBdsLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf
56 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
57 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
58 !endif
59
60 [LibraryClasses.common.UEFI_DRIVER]
61 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
62
63 [LibraryClasses.AARCH64.SEC]
64 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibSec.inf
65
66 [LibraryClasses.ARM.SEC]
67 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibSec.inf
68
69 [BuildOptions]
70 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVirtualizationPkg/Include
71 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVirtualizationPkg/Include
72 *_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmPlatformPkg/ArmVirtualizationPkg/Include
73
74
75 ################################################################################
76 #
77 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
78 #
79 ################################################################################
80
81 [PcdsFeatureFlag.common]
82 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation|TRUE
83 gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation|TRUE
84
85 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
86 # It could be set FALSE to save size.
87 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
88 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
89
90 # Activate KVM workaround for now.
91 gArmVirtualizationTokenSpaceGuid.PcdKludgeMapPciMmioAsCached|TRUE
92
93 [PcdsFixedAtBuild.common]
94 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
95
96 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"QEMU"
97
98 gArmPlatformTokenSpaceGuid.PcdCoreCount|1
99 !if $(ARCH) == AARCH64
100 gArmTokenSpaceGuid.PcdVFPEnabled|1
101 !endif
102
103 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000
104 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
105
106 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
107 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
108
109 #
110 # ARM Pcds
111 #
112 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
113
114 ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)
115 gArmTokenSpaceGuid.PcdTrustzoneSupport|FALSE
116
117 #
118 # ARM PrimeCell
119 #
120
121 ## PL011 - Serial Terminal
122 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
123
124 #
125 # ARM OS Loader
126 #
127 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux (EFI stub) on virtio31:hd0:part0"
128 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,003E000A00000000)/HD(1,MBR,0x00000000,0x3F,0x19FC0)/Image"
129 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"root=/dev/vda2 console=ttyAMA0 earlycon uefi_debug"
130 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|0
131
132 #
133 # Use the serial console (ConIn & ConOut), the USB keyboard (ConIn), and the
134 # Graphic driver (ConOut).
135 #
136 # For the PCI VGA device path to work, you must start QEMU with the option
137 # '-device VGA,addr=01.0' (see "Pci(0x1,0x0)").
138 #
139 # For the USB keyboard device path to work, the following QEMU options are
140 # needed (see "docs/usb2.txt" and "docs/ich9-ehci-uhci.cfg"):
141 #
142 # -device ich9-usb-ehci1,multifunction=on,addr=1d.7,id=ehci
143 # -device ich9-usb-uhci1,multifunction=on,addr=1d.0,masterbus=ehci.0,firstport=0
144 # -device ich9-usb-uhci2,multifunction=on,addr=1d.1,masterbus=ehci.0,firstport=2
145 # -device ich9-usb-uhci3,multifunction=on,addr=1d.2,masterbus=ehci.0,firstport=4
146 # -device usb-kbd,bus=ehci.0
147 #
148 # Note the match between addr=1d.7 and Pci(0x1D,0x7).
149 #
150 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100();PciRoot(0x0)/Pci(0x1,0x0)/AcpiAdr(0x80010100)"
151 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100();PciRoot(0x0)/Pci(0x1D,0x7)/USB(0x0,0x0)"
152 gArmPlatformTokenSpaceGuid.PcdPlatformBootTimeOut|3
153
154 #
155 # ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM
156 #
157 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
158
159 #
160 # NV Storage PCDs. Use base of 0x04000000 for NOR1
161 #
162 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x04000000
163 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00040000
164 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x04040000
165 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00040000
166 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x04080000
167 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00040000
168
169 # System Memory Base -- fixed at 0x4000_0000
170 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000
171
172 # initial location of the device tree blob passed by QEMU -- base of DRAM
173 gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000
174
175 !ifdef INTEL_BDS
176 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
177 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
178 !endif
179
180 #
181 # The maximum physical I/O addressability of the processor, set with
182 # BuildCpuHob().
183 #
184 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
185
186 [PcdsDynamicDefault.common]
187 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
188 # enumeration to complete before installing ACPI tables.
189 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
190
191 # System Memory Size -- 1 MB initially, actual size will be fetched from DT
192 gArmTokenSpaceGuid.PcdSystemMemorySize|0x00100000
193
194 # location of the device tree blob passed by QEMU
195 gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeBaseAddress|0x0
196
197 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
198 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
199 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
200 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
201
202 #
203 # ARM General Interrupt Controller
204 #
205 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
206 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
207
208 ## PL031 RealTimeClock
209 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
210
211 gArmPlatformTokenSpaceGuid.PcdPciBusMin|0x0
212 gArmPlatformTokenSpaceGuid.PcdPciBusMax|0x0
213 gArmPlatformTokenSpaceGuid.PcdPciIoBase|0x0
214 gArmPlatformTokenSpaceGuid.PcdPciIoSize|0x0
215 gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0
216 gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0
217 gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0
218 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0
219
220 gArmVirtualizationTokenSpaceGuid.PcdArmPsciMethod|0
221
222 gArmVirtualizationTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0
223 gArmVirtualizationTokenSpaceGuid.PcdFwCfgDataAddress|0x0
224
225 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
226
227 #
228 # Set video resolution for boot options and for text setup.
229 # PlatformDxe can set the former at runtime.
230 #
231 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
232 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
233 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
234 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
235
236 ################################################################################
237 #
238 # Components Section - list of all EDK II Modules needed by this Platform
239 #
240 ################################################################################
241 [Components.common]
242 #
243 # PEI Phase modules
244 #
245 ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf {
246 <LibraryClasses>
247 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
248 }
249 MdeModulePkg/Core/Pei/PeiMain.inf
250 MdeModulePkg/Universal/PCD/Pei/Pcd.inf
251 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
252 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
253 ArmPkg/Drivers/CpuPei/CpuPei.inf
254
255 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
256 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
257 <LibraryClasses>
258 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
259 }
260
261 #
262 # DXE
263 #
264 MdeModulePkg/Core/Dxe/DxeMain.inf {
265 <LibraryClasses>
266 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
267 }
268 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
269
270 #
271 # Architectural Protocols
272 #
273 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
274 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
275 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
276 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
277 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
278 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
279 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
280 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
281 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
282 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
283
284 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
285 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
286 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
287 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
288 EmbeddedPkg/SerialDxe/SerialDxe.inf
289
290 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
291
292 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
293 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
294 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf {
295 <LibraryClasses>
296 NorFlashPlatformLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf
297 }
298 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
299
300 #
301 # Platform Driver
302 #
303 ArmPlatformPkg/ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.inf
304 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
305 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
306 OvmfPkg/VirtioNetDxe/VirtioNet.inf
307
308 #
309 # FAT filesystem + GPT/MBR partitioning
310 #
311 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
312 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
313 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
314
315 #
316 # Bds
317 #
318 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
319 !ifdef INTEL_BDS
320 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
321 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
322 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
323 !else
324 ArmPlatformPkg/Bds/Bds.inf
325 !endif
326
327 #
328 # SCSI Bus and Disk Driver
329 #
330 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
331 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
332
333 #
334 # ACPI Support
335 #
336 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
337 OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf
338
339 #
340 # PCI support
341 #
342 ArmPlatformPkg/ArmVirtualizationPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
343 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
344 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
345
346 #
347 # Video support
348 #
349 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
350 <LibraryClasses>
351 BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
352 }
353 OvmfPkg/PlatformDxe/Platform.inf
354
355 #
356 # USB Support
357 #
358 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
359 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
360 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
361 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf