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 $(BUILD_TARGETS) == RELEASE
36 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
37 UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
39 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
40 UncachedMemoryAllocationLib|ArmPkg/Library/DebugUncachedMemoryAllocationLib/DebugUncachedMemoryAllocationLib.inf
43 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
44 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
46 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
47 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
49 EfiResetSystemLib|BeagleBoardPkg/Library/ResetSystemLib/ResetSystemLib.inf
51 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
52 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
53 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
55 EblCmdLib|BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.inf
57 EfiFileLib|EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
60 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
63 # Uncomment (and comment out the next line) For RealView Debugger. The Standard IO window
64 # in the debugger will show load and unload commands for symbols. You can cut and paste this
65 # into the command window to load symbols. We should be able to use a script to do this, but
66 # the version of RVD I have does not support scipts accessing system memory.
68 # PeCoffExtraActionLib|ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
69 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
72 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
73 DefaultExceptioHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
74 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
76 SerialPortLib|Omap35xxPkg/Library/SerialPortLib/SerialPortLib.inf
77 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
79 RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
81 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
83 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
84 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
85 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
86 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
87 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
88 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
90 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
91 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
92 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
95 # Assume everything is fixed at build
97 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
99 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
101 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
102 EblAddExternalCommandLib|EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.inf
105 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
107 TimerLib|Omap35xxPkg/Library/Omap35xxTimerLib/Omap35xxTimerLib.inf
108 OmapLib|Omap35xxPkg/Library/OmapLib/OmapLib.inf
109 EblNetworkLib|EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.inf
111 GdbSerialLib|Omap35xxPkg/Library/GdbSerialLib/GdbSerialLib.inf
112 ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
113 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.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
211 gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
213 [PcdsFixedAtBuild.common]
214 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"BeagleEdk2"
215 gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|32
216 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|0
217 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
218 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
219 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
220 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
221 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
222 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|0
223 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
224 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
226 # DEBUG_ASSERT_ENABLED 0x01
227 # DEBUG_PRINT_ENABLED 0x02
228 # DEBUG_CODE_ENABLED 0x04
229 # CLEAR_MEMORY_ENABLED 0x08
230 # ASSERT_BREAKPOINT_ENABLED 0x10
231 # ASSERT_DEADLOOP_ENABLED 0x20
233 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
235 # DEBUG_INIT 0x00000001 // Initialization
236 # DEBUG_WARN 0x00000002 // Warnings
237 # DEBUG_LOAD 0x00000004 // Load events
238 # DEBUG_FS 0x00000008 // EFI File system
239 # DEBUG_POOL 0x00000010 // Alloc & Free's
240 # DEBUG_PAGE 0x00000020 // Alloc & Free's
241 # DEBUG_INFO 0x00000040 // Verbose
242 # DEBUG_DISPATCH 0x00000080 // PEI/DXE Dispatchers
243 # DEBUG_VARIABLE 0x00000100 // Variable
244 # DEBUG_BM 0x00000400 // Boot Manager
245 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
246 # DEBUG_NET 0x00004000 // SNI Driver
247 # DEBUG_UNDI 0x00010000 // UNDI Driver
248 # DEBUG_LOADFILE 0x00020000 // UNDI Driver
249 # DEBUG_EVENT 0x00080000 // Event messages
250 # DEBUG_ERROR 0x80000000 // Error
252 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000004
254 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
256 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|""
257 gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
258 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
260 gEmbeddedTokenSpaceGuid.PcdPrePiTempMemorySize|0
261 gEmbeddedTokenSpaceGuid.PcdPrePiBfvBaseAddress|0
262 gEmbeddedTokenSpaceGuid.PcdPrePiBfvSize|0
263 gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|0
264 gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize|0
267 # Optional feature to help prevent EFI memory map fragments
268 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
269 # Values are in EFI Pages (4K). DXE Core will make sure that
270 # at least this much of each type of memory can be allocated
271 # from a single memory range. This way you only end up with
272 # maximum of two fragements for each type in the memory map
273 # (the memory used, and the free memory that was prereserved
276 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
277 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
278 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
279 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|80
280 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|40
281 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|400
282 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|3000
283 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|10
284 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
288 # Beagle board Specific PCDs
290 gEmbeddedTokenSpaceGuid.PcdPrePiHobBase|0x80001000
291 gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0x87FE0000 # stack at top of memory
292 gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0x20000 # 128K stack
294 gEmbeddedTokenSpaceGuid.PcdMemoryBase|0x80000000
295 gEmbeddedTokenSpaceGuid.PcdMemorySize|0x10000000
298 gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x80000000
299 gArmTokenSpaceGuid.PcdCpuResetAddress|0x80008000
301 gBeagleBoardTokenSpaceGuid.PcdBeagleGpmcOffset|0x6E000000
302 gBeagleBoardTokenSpaceGuid.PcdBeagleMMCHS1Base|0x4809C000
305 gBeagleBoardTokenSpaceGuid.PcdBeagleConsoleUart|3
308 gBeagleBoardTokenSpaceGuid.PcdBeagleArchTimer|3
309 gBeagleBoardTokenSpaceGuid.PcdBeagleFreeTimer|4
310 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000
311 gEmbeddedTokenSpaceGuid.PcdEmbeddedFdPerformanceCounterPeriodInNanoseconds|77
312 gEmbeddedTokenSpaceGuid.PcdEmbeddedFdPerformanceCounterFrequencyInHz|13000000
317 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
319 ################################################################################
321 # Components Section - list of all EDK II Modules needed by this Platform
323 ################################################################################
329 BeagleBoardPkg/Sec/Sec.inf
334 MdeModulePkg/Core/Dxe/DxeMain.inf {
336 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
337 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
338 # NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
339 NULL|EmbeddedPkg/Library/LzmaHobCustomDecompressLib/LzmaHobCustomDecompressLib.inf
342 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
344 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
345 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
346 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
347 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
348 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
349 EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
350 EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
352 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
353 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
354 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
357 # Semi-hosting filesystem
359 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
362 # FAT filesystem + GPT/MBR partitioning
364 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
365 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
366 FatPkg/EnhancedFatDxe/Fat.inf
367 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
372 Omap35xxPkg/PciEmulation/PciEmulation.inf
374 #NOTE: Open source EHCI stack doesn't work on Beagleboard.
375 #NOTE: UsbBus and UsbMassStorage don't work using iPhone SDK tool chain.
376 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf {
378 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x800fffff
380 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
381 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
386 Omap35xxPkg/Flash/Flash.inf
391 Omap35xxPkg/MMCHSDxe/MMCHS.inf
396 Omap35xxPkg/SmbusDxe/Smbus.inf
401 Omap35xxPkg/Gpio/Gpio.inf
402 Omap35xxPkg/InterruptDxe/InterruptDxe.inf
403 Omap35xxPkg/TimerDxe/TimerDxe.inf
408 Omap35xxPkg/TPS65950Dxe/TPS65950.inf
413 EmbeddedPkg/Ebl/Ebl.inf
418 BeagleBoardPkg/Bds/Bds.inf
423 EmbeddedPkg/GdbStub/GdbStub.inf
424 ArmPkg/Drivers/DebugSupportDxe/DebugSupportDxe.inf