2 # Beagle board package.
4 # Copyright (c) 2009, Apple Inc. All rights reserved.
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
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.
16 ################################################################################
18 # Defines Section - statements that will be processed to create a Makefile.
20 ################################################################################
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
34 [LibraryClasses.common]
35 !if DEBUG_TARGET == RELEASE
36 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
38 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
41 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
42 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
44 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
45 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
47 BeagleBoardSystemLib|BeagleBoardPkg/Library/BeagleBoardSystemLib/BeagleBoardSystemLib.inf
48 EfiResetSystemLib|BeagleBoardPkg/Library/ResetSystemLib/ResetSystemLib.inf
50 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
51 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
52 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
54 EblCmdLib|BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.inf
56 EfiFileLib|EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
59 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
62 # Uncomment (and comment out the next line) For RealView Debugger. The Standard IO window
63 # in the debugger will show load and unload commands for symbols. You can cut and paste this
64 # into the command window to load symbols. We should be able to use a script to do this, but
65 # the version of RVD I have does not support scipts accessing system memory.
67 # PeCoffExtraActionLib|ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
68 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
71 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
72 DefaultExceptioHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
73 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
75 SerialPortLib|Omap35xxPkg/Library/SerialPortLib/SerialPortLib.inf
76 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
78 RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
80 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
82 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
83 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
84 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
85 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
86 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
87 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
89 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
90 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
91 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
94 # Assume everything is fixed at build
96 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
98 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
100 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
101 EblAddExternalCommandLib|EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.inf
103 UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
104 # UncachedMemoryAllocationLib|ArmPkg/Library/DebugUncachedMemoryAllocationLib/DebugUncachedMemoryAllocationLib.inf
106 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
108 TimerLib|Omap35xxPkg/Library/BeagleBoardTimerLib/BeagleBoardTimerLib.inf
109 OmapLib|Omap35xxPkg/Library/OmapLib/OmapLib.inf
110 EblNetworkLib|EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.inf
112 GdbSerialLib|Omap35xxPkg/Library/GdbSerialLib/GdbSerialLib.inf
113 ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
116 [LibraryClasses.common.SEC]
117 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibPrePi.inf
118 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
119 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
120 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
121 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
122 LzmaDecompressLib|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
123 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
125 [LibraryClasses.common.PEI_CORE]
126 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
127 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
129 [LibraryClasses.common.DXE_CORE]
130 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
131 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
132 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
133 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
134 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
135 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
136 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
137 # PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
138 PeCoffLib|EmbeddedPkg/Library/DxeHobPeCoffLib/DxeHobPeCoffLib.inf
140 [LibraryClasses.common.DXE_DRIVER]
141 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
142 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
143 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
146 [LibraryClasses.common.UEFI_APPLICATION]
147 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
148 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
150 [LibraryClasses.common.UEFI_DRIVER]
151 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
152 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
153 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
155 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
156 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
157 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
158 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
159 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
160 # PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
161 PeCoffLib|EmbeddedPkg/Library/DxeHobPeCoffLib/DxeHobPeCoffLib.inf
166 # It is not possible to prevent the ARM compiler for generic intrinsic functions.
167 # This library provides the instrinsic functions generate by a given compiler.
168 # [LibraryClasses.ARM] and NULL mean link this library into all ARM images.
170 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
174 XCODE:*_*_ARM_ARCHCC_FLAGS == -arch armv7 -march=armv7
175 XCODE:*_*_ARM_ARCHASM_FLAGS == -arch armv7
176 XCODE:*_*_ARM_ARCHDLINK_FLAGS == -arch armv7
177 XCODE:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
179 RVCT:*_*_ARM_ARCHCC_FLAGS == --cpu 7-A --thumb
180 RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
182 ################################################################################
184 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
186 ################################################################################
188 [PcdsFeatureFlag.common]
189 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|TRUE
190 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|TRUE
191 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE
192 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE
195 # Control what commands are supported from the UI
196 # Turn these on and off to add features or save size
198 gEmbeddedTokenSpaceGuid.PcdEmbeddedMacBoot|TRUE
199 gEmbeddedTokenSpaceGuid.PcdEmbeddedDirCmd|TRUE
200 gEmbeddedTokenSpaceGuid.PcdEmbeddedHobCmd|TRUE
201 gEmbeddedTokenSpaceGuid.PcdEmbeddedHwDebugCmd|TRUE
202 gEmbeddedTokenSpaceGuid.PcdEmbeddedPciDebugCmd|TRUE
203 gEmbeddedTokenSpaceGuid.PcdEmbeddedIoEnable|FALSE
204 gEmbeddedTokenSpaceGuid.PcdEmbeddedScriptCmd|FALSE
206 gEmbeddedTokenSpaceGuid.PcdCacheEnable|TRUE
208 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
209 gArmTokenSpaceGuid.PcdCpuDxeProduceDebugSupport|FALSE
212 # Beagle board Specific PCDs
215 [PcdsFixedAtBuild.common]
216 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"BeagleEdk2"
217 gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|32
218 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|0
219 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
220 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
221 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
222 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
223 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
224 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|0
225 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
226 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
228 # DEBUG_ASSERT_ENABLED 0x01
229 # DEBUG_PRINT_ENABLED 0x02
230 # DEBUG_CODE_ENABLED 0x04
231 # CLEAR_MEMORY_ENABLED 0x08
232 # ASSERT_BREAKPOINT_ENABLED 0x10
233 # ASSERT_DEADLOOP_ENABLED 0x20
235 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
237 # DEBUG_INIT 0x00000001 // Initialization
238 # DEBUG_WARN 0x00000002 // Warnings
239 # DEBUG_LOAD 0x00000004 // Load events
240 # DEBUG_FS 0x00000008 // EFI File system
241 # DEBUG_POOL 0x00000010 // Alloc & Free's
242 # DEBUG_PAGE 0x00000020 // Alloc & Free's
243 # DEBUG_INFO 0x00000040 // Verbose
244 # DEBUG_DISPATCH 0x00000080 // PEI/DXE Dispatchers
245 # DEBUG_VARIABLE 0x00000100 // Variable
246 # DEBUG_BM 0x00000400 // Boot Manager
247 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
248 # DEBUG_NET 0x00004000 // SNI Driver
249 # DEBUG_UNDI 0x00010000 // UNDI Driver
250 # DEBUG_LOADFILE 0x00020000 // UNDI Driver
251 # DEBUG_EVENT 0x00080000 // Event messages
252 # DEBUG_ERROR 0x80000000 // Error
254 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000004
256 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
258 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|""
259 gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
260 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
262 gEmbeddedTokenSpaceGuid.PcdPrePiTempMemorySize|0
263 gEmbeddedTokenSpaceGuid.PcdPrePiBfvBaseAddress|0
264 gEmbeddedTokenSpaceGuid.PcdPrePiBfvSize|0
265 gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|0
266 gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize|0
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
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
290 # Beagle board Specific PCDs
292 gEmbeddedTokenSpaceGuid.PcdPrePiHobBase|0x80001000
293 gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0x87FE0000 # stack at top of memory
294 gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0x20000 # 128K stack
296 gEmbeddedTokenSpaceGuid.PcdMemoryBase|0x80000000
297 gEmbeddedTokenSpaceGuid.PcdMemorySize|0x10000000
300 gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x80000000
301 gArmTokenSpaceGuid.PcdCpuResetAddress|0x80008000
303 gBeagleBoardTokenSpaceGuid.PcdBeagleGpmcOffset|0x6E000000
304 gBeagleBoardTokenSpaceGuid.PcdBeagleMMCHS1Base|0x4809C000
307 gBeagleBoardTokenSpaceGuid.PcdBeagleConsoleUart|3
310 gBeagleBoardTokenSpaceGuid.PcdBeagleArchTimer|3
311 gBeagleBoardTokenSpaceGuid.PcdBeagleFreeTimer|4
312 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000
313 gEmbeddedTokenSpaceGuid.PcdEmbeddedFdPerformanceCounterPeriodInNanoseconds|77
314 gEmbeddedTokenSpaceGuid.PcdEmbeddedFdPerformanceCounterFrequencyInHz|13000000
319 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
321 ################################################################################
323 # Components Section - list of all EDK II Modules needed by this Platform
325 ################################################################################
331 BeagleBoardPkg/Sec/Sec.inf
336 MdeModulePkg/Core/Dxe/DxeMain.inf {
338 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
339 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
340 # NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
341 NULL|EmbeddedPkg/Library/LzmaHobCustomDecompressLib/LzmaHobCustomDecompressLib.inf
344 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
346 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
347 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
348 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
349 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
350 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
351 EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
352 EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
354 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
355 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
356 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
359 # Semi-hosting filesystem
361 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
364 # FAT filesystem + GPT/MBR partitioning
366 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
367 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
368 FatPkg/EnhancedFatDxe/Fat.inf
369 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
374 Omap35xxPkg/PciEmulation/PciEmulation.inf
376 #NOTE: Open source EHCI stack doesn't work on Beagleboard.
377 #NOTE: UsbBus and UsbMassStorage don't work using iPhone SDK tool chain.
378 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf {
380 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x800fffff
382 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
383 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
388 Omap35xxPkg/Flash/Flash.inf
393 Omap35xxPkg/MMCHSDxe/MMCHS.inf
398 Omap35xxPkg/SmbusDxe/Smbus.inf
403 Omap35xxPkg/Gpio/Gpio.inf
404 Omap35xxPkg/InterruptDxe/InterruptDxe.inf
405 Omap35xxPkg/TimerDxe/TimerDxe.inf
410 Omap35xxPkg/TPS65950Dxe/TPS65950.inf
415 EmbeddedPkg/Ebl/Ebl.inf
420 BeagleBoardPkg/Bds/Bds.inf
425 EmbeddedPkg/GdbStub/GdbStub.inf
426 ArmPkg/Drivers/DebugSupportDxe/DebugSupportDxe.inf