1ef593f0860d59ce7e4c280cce839d779b185fdd
[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
101 [LibraryClasses.common.SEC]
102 ArmPlatformSecExtraActionLib|ArmPlatformPkg/Library/DebugSecExtraActionLib/DebugSecExtraActionLib.inf
103 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Sec/SecArmPlatformGlobalVariableLib.inf
104
105 DebugAgentLib|ArmPkg/Library/DebugAgentSymbolsOnlyLib/DebugAgentSymbolsOnlyLib.inf
106 # Uncomment to turn on GDB stub in SEC.
107 #DebugAgentLib|EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.inf
108
109 !ifdef $(EDK2_SKIP_PEICORE)
110 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
111 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
112 LzmaDecompressLib|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
113 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
114 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
115 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
116 PlatformPeiLib|ArmPlatformPkg/PlatformPei/PlatformPeiLib.inf
117 MemoryInitPeiLib|ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.inf
118 !endif
119
120 [LibraryClasses.common.PEI_CORE]
121 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
122 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
123 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
124 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
125 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
126 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
127 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
128 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
129 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
130 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
131
132 PeiServicesTablePointerLib|ArmPlatformPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
133 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
134
135 [LibraryClasses.common.PEIM]
136 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
137 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
138 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
139 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
140 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
141 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
142 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
143 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
144 PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
145 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
146 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
147
148 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
149 PeiServicesTablePointerLib|ArmPlatformPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
150
151 [LibraryClasses.common.DXE_CORE]
152 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
153 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
154 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
155 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
156 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
157 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
158 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
159 PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
160
161 [LibraryClasses.common.DXE_DRIVER]
162 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
163 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
164 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
165 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
166 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
167 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Dxe/DxeArmPlatformGlobalVariableLib.inf
168
169 [LibraryClasses.common.UEFI_APPLICATION]
170 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
171 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
172 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
173 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
174
175 [LibraryClasses.common.UEFI_DRIVER]
176 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
177 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
178 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
179 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
180 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
181
182 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
183 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
184 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
185 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
186 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
187
188 [LibraryClasses.ARM]
189 #
190 # It is not possible to prevent the ARM compiler for generic intrinsic functions.
191 # This library provides the instrinsic functions generate by a given compiler.
192 # [LibraryClasses.ARM] and NULL mean link this library into all ARM images.
193 #
194 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
195
196 [BuildOptions]
197 RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
198
199 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
200
201 XCODE:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
202
203
204 ################################################################################
205 #
206 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
207 #
208 ################################################################################
209
210 [PcdsFeatureFlag.common]
211 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|TRUE
212 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|TRUE
213 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE
214 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE
215
216 gEmbeddedTokenSpaceGuid.PcdCacheEnable|TRUE
217
218 # Use the Vector Table location in CpuDxe. We will not copy the Vector Table at PcdCpuVectorBaseAddress
219 gArmTokenSpaceGuid.PcdRelocateVectorTable|FALSE
220
221 gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
222
223 [PcdsFixedAtBuild.common]
224 gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|32
225 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|0
226 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
227 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
228 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
229 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
230 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
231 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|1
232 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
233 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
234
235 # DEBUG_ASSERT_ENABLED 0x01
236 # DEBUG_PRINT_ENABLED 0x02
237 # DEBUG_CODE_ENABLED 0x04
238 # CLEAR_MEMORY_ENABLED 0x08
239 # ASSERT_BREAKPOINT_ENABLED 0x10
240 # ASSERT_DEADLOOP_ENABLED 0x20
241 !if $(TARGET) == RELEASE
242 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
243 !else
244 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
245 !endif
246
247 # DEBUG_INIT 0x00000001 // Initialization
248 # DEBUG_WARN 0x00000002 // Warnings
249 # DEBUG_LOAD 0x00000004 // Load events
250 # DEBUG_FS 0x00000008 // EFI File system
251 # DEBUG_POOL 0x00000010 // Alloc & Free's
252 # DEBUG_PAGE 0x00000020 // Alloc & Free's
253 # DEBUG_INFO 0x00000040 // Verbose
254 # DEBUG_DISPATCH 0x00000080 // PEI/DXE Dispatchers
255 # DEBUG_VARIABLE 0x00000100 // Variable
256 # DEBUG_BM 0x00000400 // Boot Manager
257 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
258 # DEBUG_NET 0x00004000 // SNI Driver
259 # DEBUG_UNDI 0x00010000 // UNDI Driver
260 # DEBUG_LOADFILE 0x00020000 // UNDI Driver
261 # DEBUG_EVENT 0x00080000 // Event messages
262 # DEBUG_ERROR 0x80000000 // Error
263 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F
264
265 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
266
267 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|""
268 gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
269 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
270
271 #
272 # Optional feature to help prevent EFI memory map fragments
273 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
274 # Values are in EFI Pages (4K). DXE Core will make sure that
275 # at least this much of each type of memory can be allocated
276 # from a single memory range. This way you only end up with
277 # maximum of two fragements for each type in the memory map
278 # (the memory used, and the free memory that was prereserved
279 # but not used).
280 #
281 gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x00000000
282
283 #
284 # ARM OS Loader
285 #
286 gArmTokenSpaceGuid.PcdArmMachineType|827
287 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"SemiHosting"
288 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/zImage-RTSM"
289 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|""
290 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|1
291
292 # Use the Serial console (ConIn & ConOut) and the Graphic driver (ConOut)
293 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"
294 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N,1)/VenPcAnsi()"
295 gArmPlatformTokenSpaceGuid.PcdPlatformBootTimeOut|10