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