]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-FVP-AArch64.dsc
ArmPlatformPkg: Link separated VarCheckUefiLib NULL class library instance
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / ArmVExpress-FVP-AArch64.dsc
1 #
2 # Copyright (c) 2011-2015, ARM Limited. All rights reserved.
3 #
4 # This program and the accompanying materials
5 # are licensed and made available under the terms and conditions of the BSD License
6 # which accompanies this distribution. The full text of the license may be found at
7 # http://opensource.org/licenses/bsd-license.php
8 #
9 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 #
12 #
13
14 ################################################################################
15 #
16 # Defines Section - statements that will be processed to create a Makefile.
17 #
18 ################################################################################
19 [Defines]
20 PLATFORM_NAME = ArmVExpress-FVP-AArch64
21 PLATFORM_GUID = 0de70077-9b3b-43bf-ba38-0ea37d77141b
22 PLATFORM_VERSION = 0.1
23 DSC_SPECIFICATION = 0x00010005
24 OUTPUT_DIRECTORY = Build/ArmVExpress-FVP-AArch64
25 SUPPORTED_ARCHITECTURES = AARCH64
26 BUILD_TARGETS = DEBUG|RELEASE
27 SKUID_IDENTIFIER = DEFAULT
28 FLASH_DEFINITION = ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-FVP-AArch64.fdf
29
30 !ifndef ARM_FVP_RUN_NORFLASH
31 DEFINE EDK2_SKIP_PEICORE=1
32 !endif
33
34
35 !include ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc
36
37 [LibraryClasses.common]
38 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf
39 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexAEMv8Lib/ArmCortexAEMv8Lib.inf
40 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf
41
42 ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf
43 NorFlashPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpressLib.inf
44 !ifndef ARM_FOUNDATION_FVP
45 LcdPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/PL111LcdArmVExpressLib/PL111LcdArmVExpressLib.inf
46 !endif
47
48 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
49
50 # Virtio Support
51 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
52 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
53
54 [LibraryClasses.common.SEC]
55 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibSec.inf
56 ArmPlatformSecLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibRTSM/ArmVExpressSecLib.inf
57 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLibSec.inf
58
59 [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_DRIVER]
60 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
61
62 [BuildOptions]
63 GCC:*_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM
64
65
66 ################################################################################
67 #
68 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
69 #
70 ################################################################################
71
72 [PcdsFeatureFlag.common]
73
74 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
75 # It could be set FALSE to save size.
76 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
77
78 # Force the UEFI GIC driver to use GICv2 legacy mode. To use
79 # GICv3 without GICv2 legacy in UEFI, the ARM Trusted Firmware needs
80 # to configure the Non-Secure interrupts in the GIC Redistributors
81 # which is not supported at the moment.
82 gArmTokenSpaceGuid.PcdArmGicV3WithV2Legacy|TRUE
83
84 [PcdsFixedAtBuild.common]
85 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Fixed Virtual Platform"
86 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ARM-FVP"
87
88 !ifndef ARM_FOUNDATION_FVP
89 # Up to 8 cores on Base models. This works fine if model happens to have less.
90 gArmPlatformTokenSpaceGuid.PcdCoreCount|8
91 gArmPlatformTokenSpaceGuid.PcdClusterCount|2
92 !else
93 # Up to 4 cores on Foundation models. This works fine if model happens to have less.
94 gArmPlatformTokenSpaceGuid.PcdCoreCount|4
95 !endif
96
97 #
98 # NV Storage PCDs. Use base of 0x0C000000 for NOR1
99 #
100 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0FFC0000
101 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
102 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0FFD0000
103 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
104 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0FFE0000
105 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
106
107 gArmTokenSpaceGuid.PcdVFPEnabled|1
108
109 # FVP models can have 2 clusters with 4 cpus each
110 # Stacks for MPCores in Secure World
111 # Trusted SRAM (DRAM on Foundation model)
112 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x04000000
113 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x1000
114 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecSecondaryStackSize|0x800
115
116 # Stacks for MPCores in Normal World
117 # Non-Trusted SRAM
118 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x2E000000
119 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
120 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecondaryStackSize|0x1000
121
122 # System Memory (2GB - 16MB of Trusted DRAM at the top of the 32bit address space)
123 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000
124 gArmTokenSpaceGuid.PcdSystemMemorySize|0x7F000000
125
126 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
127 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
128
129 #
130 # ARM Pcds
131 #
132 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
133
134 ## Trustzone enable (to make the transition from EL3 to NS EL2 in ArmPlatformPkg/Sec)
135 gArmTokenSpaceGuid.PcdTrustzoneSupport|TRUE
136
137 #
138 # ARM PrimeCell
139 #
140
141 ## SP805 Watchdog - Motherboard Watchdog at 24MHz
142 gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1C0F0000
143 gArmPlatformTokenSpaceGuid.PcdSP805WatchdogClockFrequencyInHz|24000000
144
145 ## PL011 - Serial Terminal
146 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1c090000
147 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
148
149 ## PL031 RealTimeClock
150 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000
151
152 !ifndef ARM_FOUNDATION_FVP
153 ## PL111 Versatile Express Motherboard controller
154 gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1C1F0000
155
156 ## PL180 MMC/SD card controller
157 gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x1C010048
158 gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x1C050000
159 !endif
160
161 #
162 # ARM General Interrupt Controller
163 #
164 !ifdef ARM_FVP_LEGACY_GICV2_LOCATION
165 gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000
166 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C002000
167 !else
168 gArmTokenSpaceGuid.PcdGicDistributorBase|0x2f000000
169 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x2f100000
170 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C000000
171 !endif
172
173 #
174 # ARM OS Loader
175 #
176 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from SemiHosting"
177 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"Fv(87940482-FC81-41C3-87E6-399CF85AC8A0)/LinuxLoader.efi"
178 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/Image -f VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/filesystem.cpio.gz -c \"console=ttyAMA0 earlycon=pl011,0x1c090000 debug user_debug=31 loglevel=9\""
179
180 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
181 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"
182 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"
183
184 #
185 # ARM Architectural Timer Frequency
186 #
187 # Set tick frequency value to 100Mhz
188 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|100000000
189
190 [PcdsDynamicDefault.common]
191 #
192 # The size of a dynamic PCD of the (VOID*) type can not be increased at run
193 # time from its size at build time. Set the "PcdFdtDevicePaths" PCD to a 128
194 # character "empty" string, to allow to be able to set FDT text device paths
195 # up to 128 characters long.
196 #
197 gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L" "
198
199 ################################################################################
200 #
201 # Components Section - list of all EDK II Modules needed by this Platform
202 #
203 ################################################################################
204 [Components.common]
205
206 #
207 # SEC
208 #
209 ArmPlatformPkg/Sec/Sec.inf {
210 <LibraryClasses>
211 # Use the implementation which set the Secure bits
212 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicSecLib.inf
213 }
214
215 #
216 # PEI Phase modules
217 #
218 !ifdef EDK2_SKIP_PEICORE
219 # UEFI is placed in RAM by bootloader
220 ArmPlatformPkg/PrePi/PeiMPCore.inf {
221 <LibraryClasses>
222 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf
223 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf
224 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf
225 }
226 !else
227 # UEFI lives in FLASH and copies itself to RAM
228 ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {
229 <LibraryClasses>
230 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
231 }
232 MdeModulePkg/Core/Pei/PeiMain.inf
233 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
234 <LibraryClasses>
235 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
236 }
237 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
238 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
239 ArmPkg/Drivers/CpuPei/CpuPei.inf
240 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
241 Nt32Pkg/BootModePei/BootModePei.inf
242 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
243 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
244 <LibraryClasses>
245 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
246 }
247 !endif
248
249 #
250 # DXE
251 #
252 MdeModulePkg/Core/Dxe/DxeMain.inf {
253 <LibraryClasses>
254 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
255 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
256 }
257
258 #
259 # Architectural Protocols
260 #
261 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
262 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
263 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
264 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
265 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
266 <LibraryClasses>
267 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
268 }
269 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
270 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
271 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
272 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
273 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
274
275 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
276 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
277 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
278 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
279 EmbeddedPkg/SerialDxe/SerialDxe.inf
280
281 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
282
283 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
284 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
285 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
286 !ifndef ARM_FOUNDATION_FVP
287 ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
288 !endif
289 ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf
290
291 #
292 # Semi-hosting filesystem
293 #
294 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
295
296 !ifndef ARM_FOUNDATION_FVP
297 #
298 # Multimedia Card Interface
299 #
300 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
301 ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
302 !endif
303
304 #
305 # Platform Driver
306 #
307 ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmFvpDxe.inf
308 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
309
310 #
311 # FAT filesystem + GPT/MBR partitioning
312 #
313 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
314 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
315 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
316
317 #
318 # Bds
319 #
320 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
321 ArmPlatformPkg/Bds/Bds.inf