]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.dsc
d23832fc013024be5dd65e43ab92bd4dfcad120e
[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
46 ArmPlatformLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/ArmVirtualizationPlatformLib/ArmVirtualizationPlatformLib.inf
47 ArmPlatformSysConfigLib|ArmPlatformPkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.inf
48
49 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
50
51 !ifdef INTEL_BDS
52 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
53 GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
54 PlatformBdsLib|ArmPlatformPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf
55 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
56 !endif
57
58 [LibraryClasses.common.UEFI_DRIVER]
59 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
60
61 [LibraryClasses.AARCH64.SEC]
62 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibSec.inf
63
64 [LibraryClasses.ARM.SEC]
65 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibSec.inf
66
67 [BuildOptions]
68 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVirtualizationPkg/Include
69 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVirtualizationPkg/Include
70 *_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmPlatformPkg/ArmVirtualizationPkg/Include
71
72
73 ################################################################################
74 #
75 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
76 #
77 ################################################################################
78
79 [PcdsFeatureFlag.common]
80 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
81 # It could be set FALSE to save size.
82 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|FALSE
83
84 [PcdsFixedAtBuild.common]
85 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
86
87 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"QEMU"
88
89 gArmPlatformTokenSpaceGuid.PcdCoreCount|1
90 !if $(ARCH) == AARCH64
91 gArmTokenSpaceGuid.PcdVFPEnabled|1
92 !endif
93
94 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x4007c000
95 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
96
97 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
98 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
99
100 #
101 # ARM Pcds
102 #
103 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
104
105 ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)
106 gArmTokenSpaceGuid.PcdTrustzoneSupport|FALSE
107
108 #
109 # ARM PrimeCell
110 #
111
112 ## PL011 - Serial Terminal
113 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
114
115 #
116 # ARM OS Loader
117 #
118 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux (EFI stub) on virtio31:hd0:part0"
119 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,003E000A00000000)/HD(1,MBR,0x00000000,0x3F,0x19FC0)/Image"
120 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"root=/dev/vda2 console=ttyAMA0 earlycon uefi_debug"
121 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|0
122
123 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
124 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"
125 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenVt100()"
126 gArmPlatformTokenSpaceGuid.PcdPlatformBootTimeOut|3
127
128 #
129 # ARM Virtual Architectural Timer
130 #
131 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|100000000
132
133 #
134 # NV Storage PCDs. Use base of 0x04000000 for NOR1
135 #
136 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x04000000
137 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00040000
138 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x04040000
139 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00040000
140 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x04080000
141 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00040000
142
143 # System Memory Base -- fixed at 0x4000_0000
144 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x40000000
145
146 # initial location of the device tree blob passed by QEMU -- base of DRAM
147 gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeInitialBaseAddress|0x40000000
148
149 !ifdef INTEL_BDS
150 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
151 !endif
152
153 [PcdsDynamicDefault.common]
154 # System Memory Size -- 1 MB initially, actual size will be fetched from DT
155 gArmTokenSpaceGuid.PcdSystemMemorySize|0x00100000
156
157 # location of the device tree blob passed by QEMU
158 gArmVirtualizationTokenSpaceGuid.PcdDeviceTreeBaseAddress|0x0
159
160 gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
161 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x0
162 gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x0
163 gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x0
164
165 #
166 # ARM General Interrupt Controller
167 #
168 gArmTokenSpaceGuid.PcdGicDistributorBase|0x0
169 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x0
170
171 ## PL031 RealTimeClock
172 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x0
173
174 gArmVirtualizationTokenSpaceGuid.PcdArmPsciMethod|0
175
176 gArmVirtualizationTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0
177 gArmVirtualizationTokenSpaceGuid.PcdFwCfgDataAddress|0x0
178
179 ################################################################################
180 #
181 # Components Section - list of all EDK II Modules needed by this Platform
182 #
183 ################################################################################
184 [Components.common]
185 #
186 # PEI Phase modules
187 #
188 ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf {
189 <LibraryClasses>
190 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
191 }
192 MdeModulePkg/Core/Pei/PeiMain.inf
193 MdeModulePkg/Universal/PCD/Pei/Pcd.inf
194 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
195 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
196 ArmPkg/Drivers/CpuPei/CpuPei.inf
197
198 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
199 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
200 <LibraryClasses>
201 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
202 }
203
204 #
205 # DXE
206 #
207 MdeModulePkg/Core/Dxe/DxeMain.inf {
208 <LibraryClasses>
209 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
210 }
211 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
212
213 #
214 # Architectural Protocols
215 #
216 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
217 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
218 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
219 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
220 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
221 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
222 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
223 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
224 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
225 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
226
227 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
228 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
229 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
230 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
231 EmbeddedPkg/SerialDxe/SerialDxe.inf
232
233 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
234
235 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
236 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
237 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf {
238 <LibraryClasses>
239 NorFlashPlatformLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf
240 }
241 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
242
243 #
244 # Platform Driver
245 #
246 ArmPlatformPkg/ArmVirtualizationPkg/VirtFdtDxe/VirtFdtDxe.inf
247 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
248 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
249 OvmfPkg/VirtioNetDxe/VirtioNet.inf
250
251 #
252 # FAT filesystem + GPT/MBR partitioning
253 #
254 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
255 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
256 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
257
258 #
259 # Bds
260 #
261 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
262 !ifdef INTEL_BDS
263 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
264 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
265 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
266 !else
267 ArmPlatformPkg/Bds/Bds.inf
268 !endif
269
270 #
271 # SCSI Bus and Disk Driver
272 #
273 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
274 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf