]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.dsc
IntelFrameworkModulePkg: Update LegacyBiosDxe to use UmaAddress and UmaSize in CSM...
[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 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"QEMU"
95
96 gArmPlatformTokenSpaceGuid.PcdCoreCount|1
97 !if $(ARCH) == AARCH64
98 gArmTokenSpaceGuid.PcdVFPEnabled|1
99 !endif
100
101 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000
102 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
103
104 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
105 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
106
107 #
108 # ARM Pcds
109 #
110 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
111
112 ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)
113 gArmTokenSpaceGuid.PcdTrustzoneSupport|FALSE
114
115 #
116 # ARM PrimeCell
117 #
118
119 ## PL011 - Serial Terminal
120 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
121
122 #
123 # ARM OS Loader
124 #
125 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux (EFI stub) on virtio31:hd0:part0"
126 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,003E000A00000000)/HD(1,MBR,0x00000000,0x3F,0x19FC0)/Image"
127 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"root=/dev/vda2 console=ttyAMA0 earlycon uefi_debug"
128 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|0
129
130 #
131 # Settings for ARM BDS -- use the serial console (ConIn & ConOut).
132 #
133 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"
134 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"
135 gArmPlatformTokenSpaceGuid.PcdPlatformBootTimeOut|3
136
137 #
138 # ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM
139 #
140 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
141
142 #
143 # NV Storage PCDs. Use base of 0x04000000 for NOR1
144 #
145 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x04000000
146 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00040000
147 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x04040000
148 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00040000
149 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x04080000
150 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00040000
151
152 # System Memory Base -- fixed at 0x4000_0000
153 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000
154
155 # initial location of the device tree blob passed by QEMU -- base of DRAM
156 gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000
157
158 !ifdef INTEL_BDS
159 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
160 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
161 !endif
162
163 #
164 # The maximum physical I/O addressability of the processor, set with
165 # BuildCpuHob().
166 #
167 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
168
169 [PcdsDynamicDefault.common]
170 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
171 # enumeration to complete before installing ACPI tables.
172 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
173
174 # System Memory Size -- 1 MB initially, actual size will be fetched from DT
175 gArmTokenSpaceGuid.PcdSystemMemorySize|0x00100000
176
177 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
178 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
179 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
180 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
181
182 #
183 # ARM General Interrupt Controller
184 #
185 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
186 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x0
187 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
188
189 ## PL031 RealTimeClock
190 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
191
192 gArmPlatformTokenSpaceGuid.PcdPciBusMin|0x0
193 gArmPlatformTokenSpaceGuid.PcdPciBusMax|0x0
194 gArmPlatformTokenSpaceGuid.PcdPciIoBase|0x0
195 gArmPlatformTokenSpaceGuid.PcdPciIoSize|0x0
196 gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0
197 gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0
198 gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0
199 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0
200
201 gArmVirtualizationTokenSpaceGuid.PcdArmPsciMethod|0
202
203 gArmVirtualizationTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0
204 gArmVirtualizationTokenSpaceGuid.PcdFwCfgDataAddress|0x0
205
206 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
207
208 #
209 # Set video resolution for boot options and for text setup.
210 # PlatformDxe can set the former at runtime.
211 #
212 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
213 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
214 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
215 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
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 ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf {
227 <LibraryClasses>
228 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
229 }
230 MdeModulePkg/Core/Pei/PeiMain.inf
231 MdeModulePkg/Universal/PCD/Pei/Pcd.inf
232 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
233 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
234 ArmPkg/Drivers/CpuPei/CpuPei.inf
235
236 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
237 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
238 <LibraryClasses>
239 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
240 }
241
242 #
243 # DXE
244 #
245 MdeModulePkg/Core/Dxe/DxeMain.inf {
246 <LibraryClasses>
247 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
248 }
249 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
250
251 #
252 # Architectural Protocols
253 #
254 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
255 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
256 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
257 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
258 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
259 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
260 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
261 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
262 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
263 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
264
265 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
266 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
267 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
268 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
269 EmbeddedPkg/SerialDxe/SerialDxe.inf
270
271 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
272
273 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
274 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
275 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf {
276 <LibraryClasses>
277 NorFlashPlatformLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf
278 }
279 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
280
281 #
282 # Platform Driver
283 #
284 ArmPlatformPkg/ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.inf
285 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
286 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
287 OvmfPkg/VirtioNetDxe/VirtioNet.inf
288
289 #
290 # FAT filesystem + GPT/MBR partitioning
291 #
292 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
293 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
294 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
295
296 #
297 # Bds
298 #
299 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
300 !ifdef INTEL_BDS
301 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
302 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
303 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
304 !else
305 ArmPlatformPkg/Bds/Bds.inf
306 !endif
307
308 #
309 # SCSI Bus and Disk Driver
310 #
311 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
312 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
313
314 #
315 # ACPI Support
316 #
317 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
318 OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf
319
320 #
321 # PCI support
322 #
323 ArmPlatformPkg/ArmVirtualizationPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
324 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
325 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
326
327 #
328 # Video support
329 #
330 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
331 <LibraryClasses>
332 BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
333 }
334 OvmfPkg/PlatformDxe/Platform.inf
335
336 #
337 # USB Support
338 #
339 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
340 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
341 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
342 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
343 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf