ArmPlatformPkg/ArmVirtualizationPkg: Add ArmVirtualizationQemu platform
[mirror_edk2.git] / ArmPlatformPkg / ArmVirtualizationPkg / ArmVirtualizationQemu.dsc
CommitLineData
6f5872b1
MC
1#\r
2# Copyright (c) 2011-2013, ARM Limited. All rights reserved.\r
3# Copyright (c) 2014, Linaro Limited. All rights reserved.\r
4#\r
5# This program and the accompanying materials\r
6# are licensed and made available under the terms and conditions of the BSD License\r
7# which accompanies this distribution. The full text of the license may be found at\r
8# http://opensource.org/licenses/bsd-license.php\r
9#\r
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12#\r
13#\r
14\r
15################################################################################\r
16#\r
17# Defines Section - statements that will be processed to create a Makefile.\r
18#\r
19################################################################################\r
20[Defines]\r
21 PLATFORM_NAME = ArmVirtualizationQemu\r
22 PLATFORM_GUID = 37d7e986-f7e9-45c2-8067-e371421a626c\r
23 PLATFORM_VERSION = 0.1\r
24 DSC_SPECIFICATION = 0x00010005\r
25 OUTPUT_DIRECTORY = Build/ArmVirtualizationQemu-$(ARCH)\r
26 SUPPORTED_ARCHITECTURES = AARCH64|ARM\r
27 BUILD_TARGETS = DEBUG|RELEASE\r
28 SKUID_IDENTIFIER = DEFAULT\r
29 FLASH_DEFINITION = ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.fdf\r
30\r
31!include ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualization.dsc.inc\r
32\r
33[LibraryClasses.AARCH64]\r
34 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf\r
35 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexAEMv8Lib/ArmCortexAEMv8Lib.inf\r
36\r
37[LibraryClasses.ARM]\r
38 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf\r
39 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexA15Lib/ArmCortexA15Lib.inf\r
40\r
41[LibraryClasses.common]\r
42 # Virtio Support\r
43 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf\r
44 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf\r
45\r
46 ArmPlatformLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/ArmVirtualizationPlatformLib.inf\r
47 ArmPlatformSysConfigLib|ArmPlatformPkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.inf\r
48\r
49 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf\r
50\r
51[LibraryClasses.common.UEFI_DRIVER]\r
52 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
53\r
54[LibraryClasses.AARCH64.SEC]\r
55 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibSec.inf\r
56\r
57[LibraryClasses.ARM.SEC]\r
58 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibSec.inf\r
59\r
60[BuildOptions]\r
61 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVirtualizationPkg/Include\r
62 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVirtualizationPkg/Include\r
63 GCC:*_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmPlatformPkg/ArmVirtualizationPkg/Include\r
64\r
65\r
66################################################################################\r
67#\r
68# Pcd Section - list of all EDK II PCD Entries defined by this Platform\r
69#\r
70################################################################################\r
71\r
72[PcdsFeatureFlag.common]\r
73 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.\r
74 # It could be set FALSE to save size.\r
75 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|FALSE\r
76\r
77[PcdsFixedAtBuild.common]\r
78 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F\r
79\r
80 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"QEMU"\r
81\r
82 gArmPlatformTokenSpaceGuid.PcdCoreCount|1\r
83!if $(ARCH) == AARCH64\r
84 gArmTokenSpaceGuid.PcdVFPEnabled|1\r
85!endif\r
86\r
87 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000\r
88 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000\r
89\r
90 # Size of the region used by UEFI in permanent memory (Reserved 64MB)\r
91 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000\r
92\r
93 #\r
94 # ARM Pcds\r
95 #\r
96 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000\r
97\r
98 ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)\r
99 gArmTokenSpaceGuid.PcdTrustzoneSupport|FALSE\r
100\r
101 #\r
102 # ARM PrimeCell\r
103 #\r
104\r
105 ## PL011 - Serial Terminal\r
106 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400\r
107\r
108 #\r
109 # ARM OS Loader\r
110 #\r
111 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux (EFI stub) on virtio31:hd0:part0"\r
112 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,003E000A00000000)/HD(1,MBR,0x00000000,0x3F,0x19FC0)/Image"\r
113 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"root=/dev/vda2 console=ttyAMA0 earlycon uefi_debug"\r
114 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|0\r
115\r
116 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)\r
117 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"\r
118 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"\r
119 gArmPlatformTokenSpaceGuid.PcdPlatformBootTimeOut|3\r
120\r
121 #\r
122 # ARM Virtual Architectural Timer\r
123 #\r
124 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|100000000\r
125\r
126 #\r
127 # NV Storage PCDs. Use base of 0x04000000 for NOR1\r
128 #\r
129 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x04000000\r
130 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00040000\r
131 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x04040000\r
132 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00040000\r
133 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x04080000\r
134 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00040000\r
135\r
136 # System Memory Base -- fixed at 0x4000_0000\r
137 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000\r
138\r
139 # initial location of the device tree blob passed by QEMU -- base of DRAM\r
140 gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000\r
141\r
142[PcdsDynamicDefault.common]\r
143 # System Memory Size -- 1 MB initially, actual size will be fetched from DT\r
144 gArmTokenSpaceGuid.PcdSystemMemorySize|0x00100000\r
145\r
146 # location of the device tree blob passed by QEMU\r
147 gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeBaseAddress|0x0\r
148\r
149 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0\r
150 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0\r
151 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0\r
152 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0\r
153\r
154 #\r
155 # ARM General Interrupt Controller\r
156 #\r
157 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0\r
158 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0\r
159\r
160 ## PL031 RealTimeClock\r
161 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0\r
162\r
163 gArmTokenSpaceGuid.PcdArmPsciMethod|0\r
164\r
165################################################################################\r
166#\r
167# Components Section - list of all EDK II Modules needed by this Platform\r
168#\r
169################################################################################\r
170[Components.common]\r
171 #\r
172 # PEI Phase modules\r
173 #\r
174 ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf {\r
175 <LibraryClasses>\r
176 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf\r
177 }\r
178 MdeModulePkg/Core/Pei/PeiMain.inf\r
179 MdeModulePkg/Universal/PCD/Pei/Pcd.inf\r
180 ArmPlatformPkg/PlatformPei/PlatformPeim.inf\r
181 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf\r
182 ArmPkg/Drivers/CpuPei/CpuPei.inf\r
183\r
184 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r
185 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {\r
186 <LibraryClasses>\r
187 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
188 }\r
189\r
190 #\r
191 # DXE\r
192 #\r
193 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
194 <LibraryClasses>\r
195 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf\r
196 }\r
197 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r
198\r
199 #\r
200 # Architectural Protocols\r
201 #\r
202 ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r
203 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
204 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
205 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
206 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r
207 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r
208 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
209 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r
210 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r
211 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r
212\r
213 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
214 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
215 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r
216 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
217 EmbeddedPkg/SerialDxe/SerialDxe.inf\r
218\r
219 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
220\r
221 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r
222 ArmPkg/Drivers/TimerDxe/TimerDxe.inf\r
223 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf {\r
224 <LibraryClasses>\r
225 NorFlashPlatformLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf\r
226 }\r
227 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
228\r
229 #\r
230 # Platform Driver\r
231 #\r
232 ArmPlatformPkg/ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.inf\r
233 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r
234 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf\r
235 OvmfPkg/VirtioNetDxe/VirtioNet.inf\r
236\r
237 #\r
238 # FAT filesystem + GPT/MBR partitioning\r
239 #\r
240 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
241 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
242 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
243\r
244 #\r
245 # Bds\r
246 #\r
247 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
248 ArmPlatformPkg/Bds/Bds.inf\r
249\r
250 #\r
251 # SCSI Bus and Disk Driver\r
252 #\r
253 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
254 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r