]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.dsc
ArmVirtualizationPkg/VirtFdtDxe: parse "pci-host-ecam-generic" properties
[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|FALSE
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|FALSE
88
89 [PcdsFixedAtBuild.common]
90 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
91
92 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"QEMU"
93
94 gArmPlatformTokenSpaceGuid.PcdCoreCount|1
95 !if $(ARCH) == AARCH64
96 gArmTokenSpaceGuid.PcdVFPEnabled|1
97 !endif
98
99 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000
100 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
101
102 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
103 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
104
105 #
106 # ARM Pcds
107 #
108 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
109
110 ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)
111 gArmTokenSpaceGuid.PcdTrustzoneSupport|FALSE
112
113 #
114 # ARM PrimeCell
115 #
116
117 ## PL011 - Serial Terminal
118 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
119
120 #
121 # ARM OS Loader
122 #
123 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux (EFI stub) on virtio31:hd0:part0"
124 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,003E000A00000000)/HD(1,MBR,0x00000000,0x3F,0x19FC0)/Image"
125 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"root=/dev/vda2 console=ttyAMA0 earlycon uefi_debug"
126 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|0
127
128 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
129 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"
130 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"
131 gArmPlatformTokenSpaceGuid.PcdPlatformBootTimeOut|3
132
133 #
134 # ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM
135 #
136 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
137
138 #
139 # NV Storage PCDs. Use base of 0x04000000 for NOR1
140 #
141 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x04000000
142 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00040000
143 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x04040000
144 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00040000
145 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x04080000
146 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00040000
147
148 # System Memory Base -- fixed at 0x4000_0000
149 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000
150
151 # initial location of the device tree blob passed by QEMU -- base of DRAM
152 gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000
153
154 !ifdef INTEL_BDS
155 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
156 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
157 !endif
158
159 [PcdsDynamicDefault.common]
160 ## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
161 # enumeration to complete before installing ACPI tables.
162 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
163
164 # System Memory Size -- 1 MB initially, actual size will be fetched from DT
165 gArmTokenSpaceGuid.PcdSystemMemorySize|0x00100000
166
167 # location of the device tree blob passed by QEMU
168 gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeBaseAddress|0x0
169
170 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
171 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
172 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
173 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
174
175 #
176 # ARM General Interrupt Controller
177 #
178 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
179 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
180
181 ## PL031 RealTimeClock
182 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
183
184 gArmPlatformTokenSpaceGuid.PcdPciBusMin|0x0
185 gArmPlatformTokenSpaceGuid.PcdPciBusMax|0x0
186 gArmPlatformTokenSpaceGuid.PcdPciIoBase|0x0
187 gArmPlatformTokenSpaceGuid.PcdPciIoSize|0x0
188 gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0
189 gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0
190 gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0
191 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0
192
193 gArmVirtualizationTokenSpaceGuid.PcdArmPsciMethod|0
194
195 gArmVirtualizationTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0
196 gArmVirtualizationTokenSpaceGuid.PcdFwCfgDataAddress|0x0
197
198 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
199
200 ################################################################################
201 #
202 # Components Section - list of all EDK II Modules needed by this Platform
203 #
204 ################################################################################
205 [Components.common]
206 #
207 # PEI Phase modules
208 #
209 ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf {
210 <LibraryClasses>
211 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
212 }
213 MdeModulePkg/Core/Pei/PeiMain.inf
214 MdeModulePkg/Universal/PCD/Pei/Pcd.inf
215 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
216 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
217 ArmPkg/Drivers/CpuPei/CpuPei.inf
218
219 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
220 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
221 <LibraryClasses>
222 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
223 }
224
225 #
226 # DXE
227 #
228 MdeModulePkg/Core/Dxe/DxeMain.inf {
229 <LibraryClasses>
230 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
231 }
232 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
233
234 #
235 # Architectural Protocols
236 #
237 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
238 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
239 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
240 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
241 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
242 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
243 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
244 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
245 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
246 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
247
248 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
249 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
250 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
251 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
252 EmbeddedPkg/SerialDxe/SerialDxe.inf
253
254 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
255
256 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
257 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
258 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf {
259 <LibraryClasses>
260 NorFlashPlatformLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf
261 }
262 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
263
264 #
265 # Platform Driver
266 #
267 ArmPlatformPkg/ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.inf
268 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
269 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
270 OvmfPkg/VirtioNetDxe/VirtioNet.inf
271
272 #
273 # FAT filesystem + GPT/MBR partitioning
274 #
275 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
276 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
277 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
278
279 #
280 # Bds
281 #
282 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
283 !ifdef INTEL_BDS
284 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
285 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
286 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
287 !else
288 ArmPlatformPkg/Bds/Bds.inf
289 !endif
290
291 #
292 # SCSI Bus and Disk Driver
293 #
294 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
295 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
296
297 #
298 # ACPI Support
299 #
300 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
301 OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf