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 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
36 # DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
38 ArmLib|ArmPkg/Library/ArmLib/ArmCortexA/ArmCortexArmLib.inf
39 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
41 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
42 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
44 BeagleBoardSystemLib|BeagleBoardPkg/Library/BeagleBoardSystemLib/BeagleBoardSystemLib.inf
45 EfiResetSystemLib|BeagleBoardPkg/Library/ResetSystemLib/ResetSystemLib.inf
47 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
48 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
49 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
51 EblCmdLib|BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.inf
53 EfiFileLib|EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
56 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
57 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
60 # Uncomment (and comment out the next line) For RealView Debugger. The Standard IO window
61 # in the debugger will show load and unload commands for symbols. You can cut and paste this
62 # into the command window to load symbols. We should be able to use a script to do this, but
63 # the version of RVD I have does not support scipts accessing system memory.
65 # PeCoffExtraActionLib|ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
66 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
69 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
70 DefaultExceptioHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
71 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
73 SerialPortLib|Omap35xxPkg/Library/SerialPortLib/SerialPortLib.inf
74 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
76 RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
78 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
80 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
81 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
82 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
83 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
84 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
85 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
87 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
88 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
89 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
92 # Assume everything is fixed at build
94 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
96 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
98 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
99 EblAddExternalCommandLib|EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.inf
101 # UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
102 UncachedMemoryAllocationLib|ArmPkg/Library/DebugUncachedMemoryAllocationLib/DebugUncachedMemoryAllocationLib.inf
104 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
106 TimerLib|Omap35xxPkg/Library/BeagleBoardTimerLib/BeagleBoardTimerLib.inf
107 OmapLib|Omap35xxPkg/Library/OmapLib/OmapLib.inf
108 EblNetworkLib|EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.inf
110 GdbSerialLib|Omap35xxPkg/Library/GdbSerialLib/GdbSerialLib.inf
113 [LibraryClasses.common.SEC]
114 ArmLib|ArmPkg/Library/ArmLib/ArmCortexA/ArmCortexArmLibPrePi.inf
115 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
116 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
117 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
118 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
119 LzmaDecompressLib|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
121 [LibraryClasses.common.PEI_CORE]
122 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
123 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
125 [LibraryClasses.common.DXE_CORE]
126 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
127 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
128 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
129 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
130 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
131 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
132 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
134 [LibraryClasses.common.DXE_DRIVER]
135 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
136 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
137 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
140 [LibraryClasses.common.UEFI_APPLICATION]
141 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
142 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
144 [LibraryClasses.common.UEFI_DRIVER]
145 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
146 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
147 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
149 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
150 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
151 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
152 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
153 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
158 # Note: This NULL library feature is not yet in the edk2/BaseTools, but it is checked in to
159 # the BaseTools project. So you need to build with the BaseTools project util this feature gets synced.
161 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
165 XCODE:*_*_ARM_ARCHCC_FLAGS == -arch armv6 -march=armv6
166 XCODE:*_*_ARM_ARCHASM_FLAGS == -arch armv6
167 XCODE:*_*_ARM_ARCHDLINK_FLAGS == -arch armv6
168 XCODE:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
170 RVCT:*_*_ARM_ARCHCC_FLAGS == --cpu Cortex-A8
171 RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
173 ################################################################################
175 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
177 ################################################################################
179 [PcdsFeatureFlag.common]
180 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|TRUE
181 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|TRUE
182 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE
183 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE
186 # Control what commands are supported from the UI
187 # Turn these on and off to add features or save size
189 gEmbeddedTokenSpaceGuid.PcdEmbeddedMacBoot|TRUE
190 gEmbeddedTokenSpaceGuid.PcdEmbeddedDirCmd|TRUE
191 gEmbeddedTokenSpaceGuid.PcdEmbeddedHobCmd|TRUE
192 gEmbeddedTokenSpaceGuid.PcdEmbeddedHwDebugCmd|TRUE
193 gEmbeddedTokenSpaceGuid.PcdEmbeddedPciDebugCmd|TRUE
194 gEmbeddedTokenSpaceGuid.PcdEmbeddedIoEnable|FALSE
195 gEmbeddedTokenSpaceGuid.PcdEmbeddedScriptCmd|FALSE
197 gEmbeddedTokenSpaceGuid.PcdCacheEnable|TRUE
199 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
200 gArmTokenSpaceGuid.PcdCpuDxeProduceDebugSupport|FALSE
203 # Beagle board Specific PCDs
206 [PcdsFixedAtBuild.common]
207 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"BeagleEdk2"
208 gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|32
209 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|0
210 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
211 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
212 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
213 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
214 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
215 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|0
216 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
217 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
219 # DEBUG_ASSERT_ENABLED 0x01
220 # DEBUG_PRINT_ENABLED 0x02
221 # DEBUG_CODE_ENABLED 0x04
222 # CLEAR_MEMORY_ENABLED 0x08
223 # ASSERT_BREAKPOINT_ENABLED 0x10
224 # ASSERT_DEADLOOP_ENABLED 0x20
226 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
228 # DEBUG_INIT 0x00000001 // Initialization
229 # DEBUG_WARN 0x00000002 // Warnings
230 # DEBUG_LOAD 0x00000004 // Load events
231 # DEBUG_FS 0x00000008 // EFI File system
232 # DEBUG_POOL 0x00000010 // Alloc & Free's
233 # DEBUG_PAGE 0x00000020 // Alloc & Free's
234 # DEBUG_INFO 0x00000040 // Verbose
235 # DEBUG_DISPATCH 0x00000080 // PEI/DXE Dispatchers
236 # DEBUG_VARIABLE 0x00000100 // Variable
237 # DEBUG_BM 0x00000400 // Boot Manager
238 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
239 # DEBUG_NET 0x00004000 // SNI Driver
240 # DEBUG_UNDI 0x00010000 // UNDI Driver
241 # DEBUG_LOADFILE 0x00020000 // UNDI Driver
242 # DEBUG_EVENT 0x00080000 // Event messages
243 # DEBUG_ERROR 0x80000000 // Error
245 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000004
247 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
249 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|""
250 gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
251 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
253 gEmbeddedTokenSpaceGuid.PcdPrePiTempMemorySize|0
254 gEmbeddedTokenSpaceGuid.PcdPrePiBfvBaseAddress|0
255 gEmbeddedTokenSpaceGuid.PcdPrePiBfvSize|0
256 gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|0
257 gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize|0
260 # Optional feature to help prevent EFI memory map fragments
261 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
262 # Values are in EFI Pages (4K). DXE Core will make sure that
263 # at least this much of each type of memory can be allocated
264 # from a single memory range. This way you only end up with
265 # maximum of two fragements for each type in the memory map
266 # (the memory used, and the free memory that was prereserved
269 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
270 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
271 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
272 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|80
273 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|40
274 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|400
275 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|3000
276 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|10
277 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
281 # Beagle board Specific PCDs
283 gEmbeddedTokenSpaceGuid.PcdPrePiHobBase|0x80001000
284 gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0x87FE0000 # stack at top of memory
285 gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0x20000 # 128K stack
286 gBeagleBoardTokenSpaceGuid.PcdBeagleBoardIRAMFullSize|0x00000000
287 gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x80000000
288 gArmTokenSpaceGuid.PcdCpuResetAddress|0x80008000
290 gBeagleBoardTokenSpaceGuid.PcdBeagleGpmcOffset|0x6E000000
291 gBeagleBoardTokenSpaceGuid.PcdBeagleMMCHS1Base|0x4809C000
294 gBeagleBoardTokenSpaceGuid.PcdBeagleConsoleUart|3
297 # gBeagleBoardTokenSpaceGuid.PcdBeagleArchTimer|OMAP3530_GPTIMER3
298 gBeagleBoardTokenSpaceGuid.PcdBeagleArchTimer|3
299 # gBeagleBoardTokenSpaceGuid.PcdBeagleFreeTimer|OMAP3530_GPTIMER4
300 gBeagleBoardTokenSpaceGuid.PcdBeagleFreeTimer|4
301 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000
302 gEmbeddedTokenSpaceGuid.PcdEmbeddedFdPerformanceCounterPeriodInNanoseconds|77
303 gEmbeddedTokenSpaceGuid.PcdEmbeddedFdPerformanceCounterFrequencyInHz|13000000
308 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
310 ################################################################################
312 # Components Section - list of all EDK II Modules needed by this Platform
314 ################################################################################
320 BeagleBoardPkg/Sec/Sec.inf
325 MdeModulePkg/Core/Dxe/DxeMain.inf {
327 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
328 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
329 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
332 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
334 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
335 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
336 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
337 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
338 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
339 EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
340 EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
342 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
343 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
344 EmbeddedPkg/TemplateMetronomeDxe/TemplateMetronomeDxe.inf
347 # Semi-hosting filesystem
349 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
352 # FAT filesystem + GPT/MBR partitioning
354 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
355 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
356 FatPkg/EnhancedFatDxe/Fat.inf
357 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
362 Omap35xxPkg/PciEmulation/PciEmulation.inf
364 #NOTE: Open source EHCI stack doesn't work on Beagleboard.
365 #NOTE: UsbBus and UsbMassStorage don't work using iPhone SDK tool chain.
366 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf {
368 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x800fffff
370 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
371 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
376 Omap35xxPkg/Flash/Flash.inf
381 Omap35xxPkg/MMCHSDxe/MMCHS.inf
386 Omap35xxPkg/SmbusDxe/Smbus.inf
391 Omap35xxPkg/Gpio/Gpio.inf
392 Omap35xxPkg/InterruptDxe/InterruptDxe.inf
393 Omap35xxPkg/TimerDxe/TimerDxe.inf
398 Omap35xxPkg/TPS65950Dxe/TPS65950.inf
403 EmbeddedPkg/Ebl/Ebl.inf
408 BeagleBoardPkg/Bds/Bds.inf
413 EmbeddedPkg/GdbStub/GdbStub.inf
414 ArmPkg/Drivers/DebugSupportDxe/DebugSupportDxe.inf