]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb.dsc.inc
ArmPlatformPkg/ArmRealViewEbPkg: Introduce 'ArmRealViewEb.dsc.inc' to avoid duplicati...
[mirror_edk2.git] / ArmPlatformPkg / ArmRealViewEbPkg / ArmRealViewEb.dsc.inc
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 [LibraryClasses.common]
15 !if $(TARGET) == RELEASE
16 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
17 UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
18 !else
19 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
20 UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
21 # UncachedMemoryAllocationLib|ArmPkg/Library/DebugUncachedMemoryAllocationLib/DebugUncachedMemoryAllocationLib.inf
22 !endif
23 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
24
25 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
26 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
27 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
28 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
29 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
30 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
31 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
32 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
33 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
34
35 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
36 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
37 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
38 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
39 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
40 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
41 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
42 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
43 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
44 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
45
46 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
47
48 #
49 # Assume everything is fixed at build
50 #
51 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
52
53 # 1/123 faster than Stm or Vstm version
54 #BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
55 BaseMemoryLib|ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm.inf
56
57 # ARM Architectural Libraries
58 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
59 DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
60 ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
61 DmaLib|ArmPkg/Library/ArmDmaLib/ArmDmaLib.inf
62
63 # RealView Emulation Board Specific Libraries
64 EfiResetSystemLib|ArmPlatformPkg/ArmRealViewEbPkg/Library/ResetSystemLib/ResetSystemLib.inf
65 RealTimeClockLib|ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf
66 SerialPortLib|ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf
67 TimerLib|ArmPlatformPkg/Library/SP804TimerLib/SP804TimerLib.inf
68 # ARM PL011 UART Driver
69 PL011UartLib|ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.inf
70 NorFlashPlatformLib|ArmPlatformPkg/ArmRealViewEbPkg/Library/NorFlashArmRealViewEbLib/NorFlashArmRealViewEbLib.inf
71 LcdPlatformLib|ArmPlatformPkg/ArmRealViewEbPkg/Library/PL111LcdArmRealViewEbLib/PL111LcdArmRealViewEbLib.inf
72 ArmPlatformSysConfigLib|ArmPlatformPkg/ArmRealViewEbPkg/Library/SysConfigArmRealViewEbLib/SysConfigArmRealViewEbLib.inf
73
74 # EBL Related Libraries
75 EblCmdLib|ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.inf
76 EfiFileLib|EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
77 EblAddExternalCommandLib|EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.inf
78 EblNetworkLib|EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.inf
79
80 #
81 # Uncomment (and comment out the next line) For RealView Debugger. The Standard IO window
82 # in the debugger will show load and unload commands for symbols. You can cut and paste this
83 # into the command window to load symbols. We should be able to use a script to do this, but
84 # the version of RVD I have does not support scripts accessing system memory.
85 #
86 #PeCoffExtraActionLib|ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
87 PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
88 #PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
89
90 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
91 DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
92 #DebugAgentTimerLib|ArmPlatformPkg/ArmRealViewEbPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.inf
93
94 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
95
96 GdbSerialLib|ArmPlatformPkg/ArmRealViewEbPkg/Library/GdbSerialLib/GdbSerialLib.inf
97
98 # BDS Libraries
99 BdsLib|ArmPkg/Library/BdsLib/BdsLib.inf
100 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
101
102 [LibraryClasses.common.SEC]
103 DebugSecExtraActionLib|ArmPlatformPkg/Library/DebugSecExtraActionLib/DebugSecExtraActionLib.inf
104 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Sec/SecArmPlatformGlobalVariableLib.inf
105
106 DebugAgentLib|ArmPkg/Library/DebugAgentSymbolsOnlyLib/DebugAgentSymbolsOnlyLib.inf
107 # Uncomment to turn on GDB stub in SEC.
108 #DebugAgentLib|EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.inf
109
110 !if $(EDK2_SKIP_PEICORE) == 1
111 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
112 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
113 LzmaDecompressLib|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
114 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
115 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
116 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
117 PlatformPeiLib|ArmPlatformPkg/PlatformPei/PlatformPeiLib.inf
118 MemoryInitPeiLib|ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.inf
119 !endif
120
121 [LibraryClasses.common.PEI_CORE]
122 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
123 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
124 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
125 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
126 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
127 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
128 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
129 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
130 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
131 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
132
133 PeiServicesTablePointerLib|ArmPlatformPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
134 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
135
136 [LibraryClasses.common.PEIM]
137 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
138 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
139 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
140 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
141 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
142 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
143 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
144 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
145 PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
146 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
147 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
148
149 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
150 PeiServicesTablePointerLib|ArmPlatformPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
151
152 [LibraryClasses.common.DXE_CORE]
153 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
154 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
155 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
156 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
157 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
158 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
159 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
160 PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
161
162 [LibraryClasses.common.DXE_DRIVER]
163 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
164 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
165 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
166 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
167 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
168 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Dxe/DxeArmPlatformGlobalVariableLib.inf
169
170 [LibraryClasses.common.UEFI_APPLICATION]
171 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
172 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
173 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
174 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
175
176 [LibraryClasses.common.UEFI_DRIVER]
177 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
178 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
179 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
180 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
181 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
182
183 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
184 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
185 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
186 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
187 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
188
189 [LibraryClasses.ARM]
190 #
191 # It is not possible to prevent the ARM compiler for generic intrinsic functions.
192 # This library provides the instrinsic functions generate by a given compiler.
193 # [LibraryClasses.ARM] and NULL mean link this library into all ARM images.
194 #
195 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
196
197 [BuildOptions]
198 RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
199
200 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
201
202 XCODE:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
203
204
205 ################################################################################
206 #
207 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
208 #
209 ################################################################################
210
211 [PcdsFeatureFlag.common]
212 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|TRUE
213 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|TRUE
214 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE
215 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE
216
217 gEmbeddedTokenSpaceGuid.PcdCacheEnable|TRUE
218
219 # Use the Vector Table location in CpuDxe. We will not copy the Vector Table at PcdCpuVectorBaseAddress
220 gArmTokenSpaceGuid.PcdRelocateVectorTable|FALSE
221
222 gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
223
224 [PcdsFixedAtBuild.common]
225 gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|32
226 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|0
227 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
228 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
229 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
230 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
231 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
232 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|1
233 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
234 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
235
236 # DEBUG_ASSERT_ENABLED 0x01
237 # DEBUG_PRINT_ENABLED 0x02
238 # DEBUG_CODE_ENABLED 0x04
239 # CLEAR_MEMORY_ENABLED 0x08
240 # ASSERT_BREAKPOINT_ENABLED 0x10
241 # ASSERT_DEADLOOP_ENABLED 0x20
242 !if $(TARGET) == RELEASE
243 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
244 !else
245 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
246 !endif
247
248 # DEBUG_INIT 0x00000001 // Initialization
249 # DEBUG_WARN 0x00000002 // Warnings
250 # DEBUG_LOAD 0x00000004 // Load events
251 # DEBUG_FS 0x00000008 // EFI File system
252 # DEBUG_POOL 0x00000010 // Alloc & Free's
253 # DEBUG_PAGE 0x00000020 // Alloc & Free's
254 # DEBUG_INFO 0x00000040 // Verbose
255 # DEBUG_DISPATCH 0x00000080 // PEI/DXE Dispatchers
256 # DEBUG_VARIABLE 0x00000100 // Variable
257 # DEBUG_BM 0x00000400 // Boot Manager
258 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
259 # DEBUG_NET 0x00004000 // SNI Driver
260 # DEBUG_UNDI 0x00010000 // UNDI Driver
261 # DEBUG_LOADFILE 0x00020000 // UNDI Driver
262 # DEBUG_EVENT 0x00080000 // Event messages
263 # DEBUG_ERROR 0x80000000 // Error
264 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F
265
266 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
267
268 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|""
269 gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
270 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
271
272 #
273 # Optional feature to help prevent EFI memory map fragments
274 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
275 # Values are in EFI Pages (4K). DXE Core will make sure that
276 # at least this much of each type of memory can be allocated
277 # from a single memory range. This way you only end up with
278 # maximum of two fragements for each type in the memory map
279 # (the memory used, and the free memory that was prereserved
280 # but not used).
281 #
282 gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x00000000
283
284 #
285 # ARM OS Loader
286 #
287 gArmTokenSpaceGuid.PcdArmMachineType|827
288 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"SemiHosting"
289 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/zImage-RTSM"
290 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|""
291 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|1
292
293 # Use the Serial console (ConIn & ConOut) and the Graphic driver (ConOut)
294 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"
295 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N,1)/VenPcAnsi()"
296 gArmPlatformTokenSpaceGuid.PcdPlatformBootTimeOut|10