]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-A9x2.dsc
Patch from open source community for CryptoPkg to allow it to build for ARM using...
[mirror_edk2.git] / ArmPlatformPkg / ArmRealViewEbPkg / ArmRealViewEb-RTSM-A9x2.dsc
CommitLineData
1d5d0ae9 1#
2# Copyright (c) 2011, 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 = ArmRealViewEb-RTSM-A9x2
21 PLATFORM_GUID = f6c2f4a0-2027-11e0-a2a1-0002a5d5c51b
22 PLATFORM_VERSION = 0.1
23 DSC_SPECIFICATION = 0x00010005
24 OUTPUT_DIRECTORY = Build/ArmRealViewEb-RTSM-A9x2
25 SUPPORTED_ARCHITECTURES = ARM
26 BUILD_TARGETS = DEBUG|RELEASE
27 SKUID_IDENTIFIER = DEFAULT
28 FLASH_DEFINITION = ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-MPCore.fdf
29
30[LibraryClasses.common]
31!if $(BUILD_TARGETS) == RELEASE
32 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
33 UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
34!else
35 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
36 UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
37# UncachedMemoryAllocationLib|ArmPkg/Library/DebugUncachedMemoryAllocationLib/DebugUncachedMemoryAllocationLib.inf
38!endif
a54d2109 39 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
1d5d0ae9 40
41 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7MPCoreLib.inf
42 ArmPlatformLib|ArmPlatformPkg/ArmRealViewEbPkg/Library/ArmRealViewEbLibRTSM/ArmRealViewEbLib.inf
43 ArmMPCoreMailBoxLib|ArmPkg/Library/ArmMPCoreMailBoxLib/ArmMPCoreMailBoxLib.inf
44
45 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
46 BaseMemoryLib|ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm.inf
47
48 EfiResetSystemLib|ArmPlatformPkg/ArmRealViewEbPkg/Library/ResetSystemLib/ResetSystemLib.inf
49 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
50 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
51
52 EblCmdLib|ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.inf
53 EfiFileLib|EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
54 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
55
56 #
57 # Uncomment (and comment out the next line) For RealView Debugger. The Standard IO window
58 # in the debugger will show load and unload commands for symbols. You can cut and paste this
59 # into the command window to load symbols. We should be able to use a script to do this, but
60 # the version of RVD I have does not support scripts accessing system memory.
61 #
62# PeCoffExtraActionLib|ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
63 PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
64# PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
65
66 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
67 DefaultExceptioHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
68
69 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
70
71 RealTimeClockLib|ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf
72
73 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
74
75 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
76 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
77
78 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
79 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
80 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
81 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
82 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
83
84 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
85 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
86 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
87
88#
89# Assume everything is fixed at build
90#
91 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
92
93 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
94
95 EblAddExternalCommandLib|EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.inf
96
97 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
98 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
99
100 EblNetworkLib|EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.inf
101
102 ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
103 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
104 DebugAgentTimerLib|ArmPlatformPkg/ArmRealViewEbPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.inf
105
106 SerialPortLib|ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf
107 TimerLib|ArmPlatformPkg/Library/SP804TimerLib/SP804TimerLib.inf
108 GdbSerialLib|ArmPlatformPkg/ArmRealViewEbPkg/Library/GdbSerialLib/GdbSerialLib.inf
109 DmaLib|ArmPkg/Library/ArmDmaLib/ArmDmaLib.inf
110
111 BdsLib|ArmPkg/Library/BdsLib/BdsLib.inf
112
113[LibraryClasses.common.SEC]
114 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7MPCoreLibSec.inf
115 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
116 ArmPlatformLib|ArmPlatformPkg/ArmRealViewEbPkg/Library/ArmRealViewEbLibRTSM/ArmRealViewEbSecLib.inf
117
118 # 1/123 faster than Stm or Vstm version
119 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
120
121 # Uncomment to turn on GDB stub in SEC.
122 #DebugAgentLib|EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.inf
123
124 # L2 Cache Driver
125 L2X0CacheLib|ArmPkg/Library/L2X0CacheLibNull/L2X0CacheLibNull.inf
126 # ARM PL390 General Interrupt Driver in Secure and Non-secure
127 PL390GicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicSec.inf
128 PL390GicNonSecLib|ArmPkg/Drivers/PL390Gic/PL390GicNonSec.inf
129
130[LibraryClasses.common.PEI_CORE]
131 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
132 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
133 # note: this won't actually work since globals in PEI are not writeable
134 # need to generate an ARM PEI services table pointer implementation
135 PeiServicesTablePointerLib|ArmPlatformPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
136 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
137 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
138 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
139 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
140 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
141 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
142 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
143 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
144 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
145 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
146 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
147
148[LibraryClasses.common.PEIM]
149 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
150 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
151 # note: this won't actually work since globals in PEI are not writeable
152 # need to generate an ARM PEI services table pointer implementation
153 PeiServicesTablePointerLib|ArmPlatformPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
154 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
155 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
156 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
157 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
158 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
159 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
160 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
161 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
162 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
163 PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
164 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
165 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
166
167[LibraryClasses.common.DXE_CORE]
168 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
169 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
170 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
171 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
172 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
173 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
174 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
175
176 PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
177
178
179[LibraryClasses.common.DXE_DRIVER]
180 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
181 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
182 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
183 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
184 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
185
186
187[LibraryClasses.common.UEFI_APPLICATION]
188 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
189 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
190 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
191 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
192
193[LibraryClasses.common.UEFI_DRIVER]
194 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
195 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
196 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
197 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
198 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
199
200[LibraryClasses.common.DXE_RUNTIME_DRIVER]
201 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
202 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
203 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
204 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
205# PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
206 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
207
208[LibraryClasses.ARM]
209 #
210 # It is not possible to prevent the ARM compiler for generic intrinsic functions.
211 # This library provides the instrinsic functions generate by a given compiler.
212 # [LibraryClasses.ARM] and NULL mean link this library into all ARM images.
213 #
214 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
215
216[BuildOptions]
217 RVCT:*_*_ARM_ARCHCC_FLAGS == --cpu Cortex-A9 --thumb --fpu=softvfp -I$(WORKSPACE)/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform
218 RVCT:*_*_ARM_ARCHASM_FLAGS == --cpu Cortex-A9 -I$(WORKSPACE)/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform
219 RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG -I$(WORKSPACE)/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform
220
221 GCC:*_*_ARM_ARCHCC_FLAGS == -march=armv7-a -mthumb -I$(WORKSPACE)/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform
222 GCC:*_*_ARM_ARCHASM_FLAGS == -march=armv7-a -I$(WORKSPACE)/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform
223 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG -I$(WORKSPACE)/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform
224
225 XCODE:*_*_ARM_ARCHCC_FLAGS == -arch armv7 -march=armv7 -I$(WORKSPACE)/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform
226 XCODE:*_*_ARM_ARCHASM_FLAGS == -arch armv7 -I$(WORKSPACE)/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform
227 XCODE:*_*_ARM_ARCHDLINK_FLAGS == -arch armv7 -I$(WORKSPACE)/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform
228 XCODE:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG -I$(WORKSPACE)/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform
229
230
231################################################################################
232#
233# Pcd Section - list of all EDK II PCD Entries defined by this Platform
234#
235################################################################################
236
237[PcdsFeatureFlag.common]
238 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|TRUE
239 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|TRUE
240 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE
241 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE
242
243 gEmbeddedTokenSpaceGuid.PcdCacheEnable|TRUE
244
245 # Use the Vector Table location in CpuDxe. We will not copy the Vector Table at PcdCpuVectorBaseAddress
246 gArmTokenSpaceGuid.PcdRelocateVectorTable|FALSE
247
248 gArmTokenSpaceGuid.PcdCpuDxeProduceDebugSupport|FALSE
249
250 gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
251
252 gArmPlatformTokenSpaceGuid.PcdStandalone|TRUE
253
254!if $(EDK2_SKIP_PEICORE) == 1
255 gArmTokenSpaceGuid.PcdSkipPeiCore|TRUE
256!endif
257
258[PcdsFixedAtBuild.common]
259 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmRealViewEb %a"
260 gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|32
261 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|0
262 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
263 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
264 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
265 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
266 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
267 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|1
268 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
269 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
270
271# DEBUG_ASSERT_ENABLED 0x01
272# DEBUG_PRINT_ENABLED 0x02
273# DEBUG_CODE_ENABLED 0x04
274# CLEAR_MEMORY_ENABLED 0x08
275# ASSERT_BREAKPOINT_ENABLED 0x10
276# ASSERT_DEADLOOP_ENABLED 0x20
277 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
278
279# DEBUG_INIT 0x00000001 // Initialization
280# DEBUG_WARN 0x00000002 // Warnings
281# DEBUG_LOAD 0x00000004 // Load events
282# DEBUG_FS 0x00000008 // EFI File system
283# DEBUG_POOL 0x00000010 // Alloc & Free's
284# DEBUG_PAGE 0x00000020 // Alloc & Free's
285# DEBUG_INFO 0x00000040 // Verbose
286# DEBUG_DISPATCH 0x00000080 // PEI/DXE Dispatchers
287# DEBUG_VARIABLE 0x00000100 // Variable
288# DEBUG_BM 0x00000400 // Boot Manager
289# DEBUG_BLKIO 0x00001000 // BlkIo Driver
290# DEBUG_NET 0x00004000 // SNI Driver
291# DEBUG_UNDI 0x00010000 // UNDI Driver
292# DEBUG_LOADFILE 0x00020000 // UNDI Driver
293# DEBUG_EVENT 0x00080000 // Event messages
294# DEBUG_ERROR 0x80000000 // Error
295 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F
296
297 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
298
299 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|""
300 gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
301 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
302
303#
304# Optional feature to help prevent EFI memory map fragments
305# Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
306# Values are in EFI Pages (4K). DXE Core will make sure that
307# at least this much of each type of memory can be allocated
308# from a single memory range. This way you only end up with
309# maximum of two fragements for each type in the memory map
310# (the memory used, and the free memory that was prereserved
311# but not used).
312#
313 gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x00000000
314
315 gArmPlatformTokenSpaceGuid.PcdMPCoreSupport|1
316
317 # Stacks for MPCores in Secure World
318 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x4B000000 # Top of SEC Stack for Secure World
319 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecStackSize|0x2000 # Stack for each of the 4 CPU cores
320
321 # Stacks for MPCores in Monitor Mode
322 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecMonStackBase|0x4A000000 # Top of SEC Stack for Monitor World
323 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecMonStackSize|0x2000 # Stack for each of the 4 CPU cores
324
325 # Stacks for MPCores in Normal World
326 gArmPlatformTokenSpaceGuid.PcdCPUCoresNonSecStackBase|0x48000000 # Top of SEC Stack for Normal World
327 gArmPlatformTokenSpaceGuid.PcdCPUCoresNonSecStackSize|0x20000 # Stack for each of the 4 CPU cores
328 gArmPlatformTokenSpaceGuid.PcdPeiServicePtrAddr|0x48020004 # Pei Services Ptr just above stack
329
330 # Non Sec UEFI Firmware: These two PCDs must match PcdFlashFvMainBase/PcdFlashFvMainSize
262a9b04 331 gArmTokenSpaceGuid.PcdNormalFdBaseAddress|0x40050000 # Must be equal to gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase
332 gArmTokenSpaceGuid.PcdNormalFdSize|0x00100000 # Must be equal to gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize
1d5d0ae9 333
964680c1 334 # System Memory (256MB)
335 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x70000000
336 gArmTokenSpaceGuid.PcdSystemMemorySize|0x10000000
337
338 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
339 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
340
1d5d0ae9 341 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms
342
343 #
344 # ARM Pcds
345 #
346 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
347
348 #
349 # ARM EB PCDS
350 #
351 gArmRealViewEbPkgTokenSpaceGuid.PcdGdbUartBase|0x1000a000
352
353 #
354 # ARM PL390 General Interrupt Controller
355 #
356 gArmTokenSpaceGuid.PcdGicDistributorBase|0x10041000
357 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x10040000
358
359 #
360 # ARM OS Loader
361 #
362 # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux:
363 gArmTokenSpaceGuid.PcdArmMachineType|2272
364 gArmTokenSpaceGuid.PcdLinuxKernelDP|L"VenHw(02118005-9DA7-443a-92D5-781F022AEDBB)/MemoryMapped(0,0x46000000,0x46400000)"
365 gArmTokenSpaceGuid.PcdLinuxAtag|"rdinit=/bin/ash debug earlyprintk console=ttyAMA0,38400 mem=1G"
366 gArmTokenSpaceGuid.PcdFdtDP|L""
367
368 #
369 # ARM L2x0 PCDs
370 #
371 gArmTokenSpaceGuid.PcdL2x0ControllerBase|0x1F002000
372
373 #
374 # ARM VE MP Core Mailbox
375 #
376 gArmTokenSpaceGuid.PcdMPCoreMailboxSetAddress|0x10000030
377 gArmTokenSpaceGuid.PcdMPCoreMailboxGetAddress|0x10000030
378 gArmTokenSpaceGuid.PcdMPCoreMailboxClearAddress|0x10000034
379 gArmTokenSpaceGuid.PcdMPCoreMailboxClearValue|0xFFFFFFFF
380
381
382################################################################################
383#
384# Components Section - list of all EDK II Modules needed by this Platform
385#
386################################################################################
387[Components.common]
388
389#
390# SEC
391#
392 ArmPlatformPkg/Sec/Sec.inf
393 ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf
394
395#
396# PEI Phase modules
397#
398 MdeModulePkg/Core/Pei/PeiMain.inf
399 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
400 <LibraryClasses>
401 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
402 }
403 ArmPlatformPkg/PlatformPei/PlatformPei.inf
404 ArmPlatformPkg/MemoryInitPei/MemoryInitPei.inf
405 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
406 Nt32Pkg/BootModePei/BootModePei.inf
407 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
408 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
409 <LibraryClasses>
410 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
411 }
412
413#
414# DXE
415#
416 MdeModulePkg/Core/Dxe/DxeMain.inf {
417 <LibraryClasses>
418 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
419 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
420 }
421
422 #
423 # Architectural Protocols
424 #
425 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
426 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
427 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
428 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
429 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
430 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
431 EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
432
433 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
434 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
435 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
436
437 EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
438
439 ArmPlatformPkg/ArmRealViewEbPkg/FvbDxe/FvbDxe.inf
440 ArmPlatformPkg/ArmRealViewEbPkg/InterruptDxe/InterruptDxe.inf
441 ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf
442
443 #
444 # Semi-hosting filesystem
445 #
446 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
447
448 #
449 # FAT filesystem + GPT/MBR partitioning
450 #
451 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
452 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
453 FatPkg/EnhancedFatDxe/Fat.inf
454 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
455
456
457 #
458 # Application
459 #
460 EmbeddedPkg/Ebl/Ebl.inf
461
462 #
463 # Bds
464 #
465 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
466 ArmPlatformPkg/Bds/Bds.inf