Program SD Cards into 4-bit mode (support for this is required in the spec). This...
[mirror_edk2.git] / ArmEbPkg / ArmEbPkg.dsc
1 #/** @file
2 # ARM EB package.
3 #
4 # Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>
5 #
6 # 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 = ArmEbPkg
23 PLATFORM_GUID = F4C1AD3E-9D3E-4F61-8791-B3BB1C43D04C
24 PLATFORM_VERSION = 0.1
25 DSC_SPECIFICATION = 0x00010005
26 OUTPUT_DIRECTORY = Build/ArmEB
27 SUPPORTED_ARCHITECTURES = ARM
28 BUILD_TARGETS = DEBUG|RELEASE
29 SKUID_IDENTIFIER = DEFAULT
30 #
31 # Add .fdf file after we get a critical mass of drivers ported over
32 # FLASH_DEFINITION = ArmEbPkg/ArmEbPkg.fdf
33 DEFINE TARGET_HACK = DEBUG
34
35
36 [LibraryClasses.common]
37 !if $(BUILD_TARGETS) == RELEASE
38 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
39 !else
40 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
41 !endif
42
43 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
44 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
45
46 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
47 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
48
49 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
50
51 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
52 DefaultExceptioHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
53 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
54
55 RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
56
57 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
58
59 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
60 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
61 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
62 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
63 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
64
65 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
66 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
67 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
68
69 #
70 # Assume everything is fixed at build
71 #
72 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
73
74 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
75
76 # UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
77 UncachedMemoryAllocationLib|ArmPkg/Library/DebugUncachedMemoryAllocationLib/DebugUncachedMemoryAllocationLib.inf
78
79 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
80 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
81
82 SerialPortLib|ArmEbPkg/Library/SerialPortLib/SerialPortLib.inf
83
84 #
85 # Uncomment (and comment out the next line) For RealView Debugger. The Standard IO window
86 # in the debugger will show load and unload commands for symbols. You can cut and paste this
87 # into the command window to load symbols. We should be able to use a script to do this, but
88 # the version of RVD I have does not support scipts accessing system memory.
89 #
90 # PeCoffExtraActionLib|ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
91 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
92
93
94
95 [LibraryClasses.common.SEC]
96 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibPrePi.inf
97 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
98 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
99 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
100 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
101 LzmaDecompressLib|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
102 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
103
104 [LibraryClasses.common.DXE_DRIVER]
105 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
106
107
108 [LibraryClasses.ARM]
109 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
110
111
112 [BuildOptions]
113 XCODE:*_*_ARM_ARCHCC_FLAGS == -arch armv7 -march=armv7
114 XCODE:*_*_ARM_ARCHASM_FLAGS == -arch armv7
115 XCODE:*_*_ARM_ARCHDLINK_FLAGS == -arch armv7
116
117 RVCT:*_*_ARM_ARCHCC_FLAGS == --cpu 7-A
118 RVCT:*_*_ARM_ARCHASM_FLAGS == --cpu 7-A
119
120
121 ################################################################################
122 #
123 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
124 #
125 ################################################################################
126
127
128 [PcdsFixedAtBuild.common]
129
130 # DEBUG_ASSERT_ENABLED 0x01
131 # DEBUG_PRINT_ENABLED 0x02
132 # DEBUG_CODE_ENABLED 0x04
133 # CLEAR_MEMORY_ENABLED 0x08
134 # ASSERT_BREAKPOINT_ENABLED 0x10
135 # ASSERT_DEADLOOP_ENABLED 0x20
136 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
137
138 # DEBUG_INIT 0x00000001 // Initialization
139 # DEBUG_WARN 0x00000002 // Warnings
140 # DEBUG_LOAD 0x00000004 // Load events
141 # DEBUG_FS 0x00000008 // EFI File system
142 # DEBUG_POOL 0x00000010 // Alloc & Free's
143 # DEBUG_PAGE 0x00000020 // Alloc & Free's
144 # DEBUG_INFO 0x00000040 // Verbose
145 # DEBUG_DISPATCH 0x00000080 // PEI/DXE Dispatchers
146 # DEBUG_VARIABLE 0x00000100 // Variable
147 # DEBUG_BM 0x00000400 // Boot Manager
148 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
149 # DEBUG_NET 0x00004000 // SNI Driver
150 # DEBUG_UNDI 0x00010000 // UNDI Driver
151 # DEBUG_LOADFILE 0x00020000 // UNDI Driver
152 # DEBUG_EVENT 0x00080000 // Event messages
153 # DEBUG_ERROR 0x80000000 // Error
154 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000004
155
156 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
157
158 gEmbeddedTokenSpaceGuid.PcdPrePiTempMemorySize|0
159 gEmbeddedTokenSpaceGuid.PcdPrePiBfvBaseAddress|0
160 gEmbeddedTokenSpaceGuid.PcdPrePiBfvSize|0
161 gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|0
162 gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize|0
163
164 gEmbeddedTokenSpaceGuid.PcdPrePiHobBase|0x80001000
165 gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0x87FE0000 # stack at top of memory
166 gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0x20000 # 128K stack
167 gEmbeddedTokenSpaceGuid.PcdMemoryBase|0x80000000
168 gEmbeddedTokenSpaceGuid.PcdMemorySize|0x10000000
169
170 gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x80000000
171 gArmTokenSpaceGuid.PcdCpuResetAddress|0x80008000
172 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
173
174 ################################################################################
175 #
176 # Components Section - list of all EDK II Modules needed by this Platform
177 #
178 ################################################################################
179 [Components.common]
180 ArmEbPkg/Library/ResetSystemLib/ResetSystemLib.inf
181 ArmEbPkg/Library/SerialPortLib/SerialPortLib.inf
182 # Omap35xxPkg/Library/BeagleBoardTimerLib/BeagleBoardTimerLib.inf
183 # Omap35xxPkg/Library/OmapLib/OmapLib.inf
184
185 # Omap35xxPkg/Flash/Flash.inf
186 # Omap35xxPkg/MMCHSDxe/MMCHS.inf
187 # Omap35xxPkg/SmbusDxe/Smbus.inf
188 # Omap35xxPkg/Gpio/Gpio.inf
189 ArmEbPkg/Sec/Sec.inf
190 ArmEbPkg/InterruptDxe/InterruptDxe.inf
191 # Omap35xxPkg/TimerDxe/TimerDxe.inf
192 # Omap35xxPkg/TPS65950Dxe/TPS65950.inf
193
194
195