]> git.proxmox.com Git - mirror_edk2.git/blob - BeagleBoardPkg/BeagleBoardPkg.dsc
6765fa8f0c823d9d97c6f82e82901f383fec60cf
[mirror_edk2.git] / BeagleBoardPkg / BeagleBoardPkg.dsc
1 #/** @file
2 # Beagle board package.
3 #
4 # Copyright (c) 2009, Apple Inc. All rights reserved.
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are licensed and made available under the terms and conditions of the BSD License
8 # which accompanies this distribution. The full text of the license may be found at
9 # http://opensource.org/licenses/bsd-license.php
10 #
11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 #
14 #**/
15
16 ################################################################################
17 #
18 # Defines Section - statements that will be processed to create a Makefile.
19 #
20 ################################################################################
21 [Defines]
22 PLATFORM_NAME = BeagleBoardPkg
23 PLATFORM_GUID = 91fa6c28-33df-46ac-aee6-292d6811ea31
24 PLATFORM_VERSION = 0.1
25 DSC_SPECIFICATION = 0x00010005
26 OUTPUT_DIRECTORY = Build/BeagleBoard
27 SUPPORTED_ARCHITECTURES = ARM
28 BUILD_TARGETS = DEBUG|RELEASE
29 SKUID_IDENTIFIER = DEFAULT
30 FLASH_DEFINITION = BeagleBoardPkg/BeagleBoardPkg.fdf
31 DEFINE TARGET_HACK = DEBUG
32
33
34 [LibraryClasses.common]
35 !if TARGET_HACK == DEBUG
36 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
37 !else
38 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
39 !endif
40
41
42 ArmLib|ArmPkg/Library/ArmLib/ArmCortexA/ArmCortexArmLib.inf
43
44 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
45 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
46
47 BeagleBoardSystemLib|BeagleBoardPkg/Library/BeagleBoardSystemLib/BeagleBoardSystemLib.inf
48 EfiResetSystemLib|BeagleBoardPkg/Library/ResetSystemLib/ResetSystemLib.inf
49
50 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
51 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
52 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
53
54 EblCmdLib|BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.inf
55
56 EfiFileLib|EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
57
58
59 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
60 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
61 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
62 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
63 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
64
65 SerialPortLib|BeagleBoardPkg/Library/SerialPortLib/SerialPortLib.inf
66 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
67
68 RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
69
70 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
71
72 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
73 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
74 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
75 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
76 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
77 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
78
79 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
80 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
81 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
82
83 #
84 # Assume everything is fixed at build
85 #
86 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
87
88 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
89
90 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
91 EblAddExternalCommandLib|EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.inf
92
93 UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
94
95 TimerLib|BeagleBoardPkg/Library/BeagleBoardTimerLib/BeagleBoardTimerLib.inf
96 OmapLib|BeagleBoardPkg/Library/OmapLib/OmapLib.inf
97 EblNetworkLib|EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.inf
98
99 GdbSerialLib|BeagleBoardPkg/Library/GdbSerialLib/GdbSerialLib.inf
100
101
102 [LibraryClasses.common.SEC]
103 ArmLib|ArmPkg/Library/ArmLib/ArmCortexA/ArmCortexArmLibPrePi.inf
104 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
105 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
106 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
107 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
108 LzmaDecompressLib|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
109
110 [LibraryClasses.common.PEI_CORE]
111 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
112 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
113
114 [LibraryClasses.common.DXE_CORE]
115 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
116 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
117 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
118 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
119 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
120 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
121 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
122
123 [LibraryClasses.common.DXE_DRIVER]
124 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
125 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
126 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
127
128
129 [LibraryClasses.common.UEFI_APPLICATION]
130 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
131 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
132
133 [LibraryClasses.common.UEFI_DRIVER]
134 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
135 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
136 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
137
138 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
139 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
140 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
141 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
142 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
143
144
145 [LibraryClasses.ARM]
146 #
147 # Note: This NULL library feature is not yet in the edk2/BaseTools, but it is checked in to
148 # the BaseTools project. So you need to build with the BaseTools project util this feature gets synced.
149 #
150 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
151
152
153 [BuildOptions]
154 XCODE:*_*_ARM_ARCHCC_FLAGS == -arch armv6 -march=armv6
155 XCODE:*_*_ARM_ARCHASM_FLAGS == -arch armv6
156 XCODE:*_*_ARM_ARCHDLINK_FLAGS == -arch armv6
157
158 RVCT:*_*_ARM_ARCHCC_FLAGS == --cpu Cortex-A8
159 RVCT:*_*_ARM_ARCHASM_FLAGS == --cpu Cortex-A8
160
161
162 ################################################################################
163 #
164 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
165 #
166 ################################################################################
167
168 [PcdsFeatureFlag.common]
169 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|TRUE
170 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|TRUE
171 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE
172 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE
173
174 #
175 # Control what commands are supported from the UI
176 # Turn these on and off to add features or save size
177 #
178 gEmbeddedTokenSpaceGuid.PcdEmbeddedMacBoot|TRUE
179 gEmbeddedTokenSpaceGuid.PcdEmbeddedDirCmd|TRUE
180 gEmbeddedTokenSpaceGuid.PcdEmbeddedHobCmd|TRUE
181 gEmbeddedTokenSpaceGuid.PcdEmbeddedHwDebugCmd|TRUE
182 gEmbeddedTokenSpaceGuid.PcdEmbeddedPciDebugCmd|TRUE
183 gEmbeddedTokenSpaceGuid.PcdEmbeddedIoEnable|FALSE
184 gEmbeddedTokenSpaceGuid.PcdEmbeddedScriptCmd|FALSE
185
186 gEmbeddedTokenSpaceGuid.PcdCacheEnable|TRUE
187
188 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
189 gArmTokenSpaceGuid.PcdCpuDxeProduceDebugSupport|FALSE
190
191 #
192 # Beagle board Specific PCDs
193 #
194
195 [PcdsFixedAtBuild.common]
196 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"BeagleEdk2"
197 gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|32
198 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|0
199 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
200 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
201 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
202 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
203 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
204 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|0
205 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
206 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
207
208 # DEBUG_ASSERT_ENABLED 0x01
209
210 # DEBUG_PRINT_ENABLED 0x02
211
212 # DEBUG_CODE_ENABLED 0x04
213
214 # CLEAR_MEMORY_ENABLED 0x08
215
216 # ASSERT_BREAKPOINT_ENABLED 0x10
217
218 # ASSERT_DEADLOOP_ENABLED 0x20
219
220 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
221
222 # DEBUG_INIT 0x00000001 // Initialization
223
224 # DEBUG_WARN 0x00000002 // Warnings
225
226 # DEBUG_LOAD 0x00000004 // Load events
227
228 # DEBUG_FS 0x00000008 // EFI File system
229
230 # DEBUG_POOL 0x00000010 // Alloc & Free's
231
232 # DEBUG_PAGE 0x00000020 // Alloc & Free's
233
234 # DEBUG_INFO 0x00000040 // Verbose
235
236 # DEBUG_DISPATCH 0x00000080 // PEI/DXE Dispatchers
237
238 # DEBUG_VARIABLE 0x00000100 // Variable
239
240 # DEBUG_BM 0x00000400 // Boot Manager
241
242 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
243
244 # DEBUG_NET 0x00004000 // SNI Driver
245
246 # DEBUG_UNDI 0x00010000 // UNDI Driver
247
248 # DEBUG_LOADFILE 0x00020000 // UNDI Driver
249
250 # DEBUG_EVENT 0x00080000 // Event messages
251
252 # DEBUG_ERROR 0x80000000 // Error
253
254 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000004
255
256 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
257
258 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|""
259 gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
260 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
261
262 gEmbeddedTokenSpaceGuid.PcdPrePiTempMemorySize|0
263 gEmbeddedTokenSpaceGuid.PcdPrePiBfvBaseAddress|0
264 gEmbeddedTokenSpaceGuid.PcdPrePiBfvSize|0
265 gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|0
266 gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize|0
267
268 #
269 # Optional feature to help prevent EFI memory map fragments
270 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
271 # Values are in EFI Pages (4K). DXE Core will make sure that
272 # at least this much of each type of memory can be allocated
273 # from a single memory range. This way you only end up with
274 # maximum of two fragements for each type in the memory map
275 # (the memory used, and the free memory that was prereserved
276 # but not used).
277 #
278 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
279 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
280 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
281 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|80
282 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|40
283 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|400
284 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|3000
285 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|10
286 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
287
288
289 #
290 # Beagle board Specific PCDs
291 #
292 gEmbeddedTokenSpaceGuid.PcdPrePiHobBase|0x80001000
293 gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0x87FE0000 # stack at top of memory
294 gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0x20000 # 128K stack
295 gBeagleBoardTokenSpaceGuid.PcdBeagleBoardIRAMFullSize|0x00000000
296 gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x80000000
297 gArmTokenSpaceGuid.PcdCpuResetAddress|0x80008000
298
299 gBeagleBoardTokenSpaceGuid.PcdBeagleGpmcOffset|0x6E000000
300 gBeagleBoardTokenSpaceGuid.PcdBeagleMMCHS1Base|0x4809C000
301
302 # Console
303 gBeagleBoardTokenSpaceGuid.PcdBeagleConsoleUart|3
304
305 # Timers
306 # gBeagleBoardTokenSpaceGuid.PcdBeagleArchTimer|OMAP3530_GPTIMER3
307 gBeagleBoardTokenSpaceGuid.PcdBeagleArchTimer|3
308 # gBeagleBoardTokenSpaceGuid.PcdBeagleFreeTimer|OMAP3530_GPTIMER4
309 gBeagleBoardTokenSpaceGuid.PcdBeagleFreeTimer|4
310 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000
311 gEmbeddedTokenSpaceGuid.PcdEmbeddedFdPerformanceCounterPeriodInNanoseconds|77
312 gEmbeddedTokenSpaceGuid.PcdEmbeddedFdPerformanceCounterFrequencyInHz|13000000
313
314 #
315 # ARM Pcds
316 #
317 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
318
319 ################################################################################
320 #
321 # Components Section - list of all EDK II Modules needed by this Platform
322 #
323 ################################################################################
324 [Components.common]
325
326 #
327 # SEC
328 #
329 BeagleBoardPkg/Sec/Sec.inf
330
331 #
332 # DXE
333 #
334 MdeModulePkg/Core/Dxe/DxeMain.inf {
335 <LibraryClasses>
336 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
337 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
338 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
339 }
340
341 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
342
343 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
344 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
345 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
346 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
347 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
348 EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
349 EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
350
351 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
352 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
353 EmbeddedPkg/TemplateMetronomeDxe/TemplateMetronomeDxe.inf
354
355 #
356 # Semi-hosting filesystem
357 #
358 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
359
360 #
361 # FAT filesystem + GPT/MBR partitioning
362 #
363 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
364 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
365 FatPkg/EnhancedFatDxe/Fat.inf
366 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
367
368 #
369 # USB
370 #
371 BeagleBoardPkg/PciEmulation/PciEmulation.inf
372
373 #NOTE: Open source EHCI stack doesn't work on Beagleboard.
374 #NOTE: UsbBus and UsbMassStorage don't work using iPhone SDK tool chain.
375 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf {
376 <PcdsFixedAtBuild>
377 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x800fffff
378 }
379 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
380 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
381
382 #
383 # Nand Flash
384 #
385 BeagleBoardPkg/Flash/Flash.inf
386
387 #
388 # MMC/SD
389 #
390 BeagleBoardPkg/MMCHSDxe/MMCHS.inf
391
392 #
393 # I2C
394 #
395 BeagleBoardPkg/SmbusDxe/Smbus.inf
396
397 #
398 # SoC Drivers
399 #
400 BeagleBoardPkg/Gpio/Gpio.inf
401 BeagleBoardPkg/InterruptDxe/InterruptDxe.inf
402 BeagleBoardPkg/TimerDxe/TimerDxe.inf
403
404 #
405 # Power IC
406 #
407 BeagleBoardPkg/TPS65950Dxe/TPS65950.inf
408
409 #
410 # Application
411 #
412 EmbeddedPkg/Ebl/Ebl.inf
413
414 #
415 # Bds
416 #
417 BeagleBoardPkg/Bds/Bds.inf
418
419 #
420 # Gdb Stub
421 #
422 EmbeddedPkg/GdbStub/GdbStub.inf
423 ArmPkg/Drivers/DebugSupportDxe/DebugSupportDxe.inf
424