]> git.proxmox.com Git - mirror_edk2.git/blob - EmbeddedPkg/EmbeddedPkg.dsc
d0af235f9902e04e582896c795075228e75c3bb4
[mirror_edk2.git] / EmbeddedPkg / EmbeddedPkg.dsc
1 #/** @file
2 # Embedded Package
3 #
4 #
5 # Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>
6 # Copyright (c) 2012-2015, ARM Ltd. All rights reserved.<BR>
7 # Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>
8 #
9 # This program and the accompanying materials
10 # are licensed and made available under the terms and conditions of the BSD License
11 # which accompanies this distribution. The full text of the license may be found at
12 # http://opensource.org/licenses/bsd-license.php
13 #
14 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #
17 #**/
18
19 ################################################################################
20 #
21 # Defines Section - statements that will be processed to create a Makefile.
22 #
23 ################################################################################
24 [Defines]
25 PLATFORM_NAME = Embedded
26 PLATFORM_GUID = 8DBB580B-CF89-4D57-95C6-DFE96C44686E
27 PLATFORM_VERSION = 0.1
28 DSC_SPECIFICATION = 0x00010005
29 OUTPUT_DIRECTORY = Build/Embedded
30 SUPPORTED_ARCHITECTURES = IA32|X64|IPF|ARM|AARCH64
31 BUILD_TARGETS = DEBUG|RELEASE
32 SKUID_IDENTIFIER = DEFAULT
33 FLASH_DEFINITION = EmbeddedPkg/EmbeddedPkg.fdf
34
35
36 ################################################################################
37 #
38 # SKU Identification section - list of all SKU IDs supported by this
39 # Platform.
40 #
41 ################################################################################
42 [SkuIds]
43 0|DEFAULT # The entry: 0|DEFAULT is reserved and always required.
44
45 ################################################################################
46 #
47 # Library Class section - list of all Library Classes needed by this Platform.
48 #
49 ################################################################################
50 [LibraryClasses.common]
51 # DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
52 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
53
54
55 AndroidBootImgLib|EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.inf
56 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
57 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
58 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
59 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
60 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
61 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
62 EfiFileLib|EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
63
64 ReportStatusCodeLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
65
66 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
67 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
68 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
69 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
70 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
71
72 SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
73 RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
74 EfiResetSystemLib|EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf
75 GdbSerialLib|EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.inf
76
77
78 #
79 # Need to change this for IPF
80 #
81 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
82
83 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
84 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
85 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
86 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
87 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
88 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
89 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
90 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
91
92 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
93 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
94 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
95
96 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
97 EblCmdLib|EmbeddedPkg/Library/EblCmdLibNull/EblCmdLibNull.inf
98
99 EblNetworkLib|EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.inf
100
101 AcpiLib|EmbeddedPkg/Library/AcpiLib/AcpiLib.inf
102 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
103
104 # Shell libraries
105 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
106 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
107 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
108
109 # Networking Requirements
110 NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
111 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
112 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
113
114 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
115 DtPlatformDtbLoaderLib|EmbeddedPkg/Library/DxeDtPlatformDtbLoaderLibDefault/DxeDtPlatformDtbLoaderLibDefault.inf
116
117 [LibraryClasses.common.DXE_DRIVER]
118 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
119 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
120
121
122 [LibraryClasses.common.UEFI_APPLICATION]
123 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
124 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
125
126 [LibraryClasses.common.UEFI_DRIVER]
127 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
128 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
129
130 [LibraryClasses.common.SEC]
131 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
132
133 [LibraryClasses.ARM, LibraryClasses.AARCH64]
134 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
135 ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
136 BdsLib|ArmPkg/Library/BdsLib/BdsLib.inf
137 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
138 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
139
140 # Add support for GCC stack protector
141 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
142
143 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
144
145 ################################################################################
146 #
147 # Pcd Section - list of all PCD Entries defined by this Platform
148 #
149 ################################################################################
150
151 [PcdsFeatureFlag.common]
152 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE
153 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
154 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|FALSE
155 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|FALSE
156
157 #
158 # Control what commands are supported from the UI
159 # Turn these on and off to add features or save size
160 #
161 gEmbeddedTokenSpaceGuid.PcdEmbeddedMacBoot|TRUE
162 gEmbeddedTokenSpaceGuid.PcdEmbeddedDirCmd|TRUE
163 gEmbeddedTokenSpaceGuid.PcdEmbeddedHobCmd|TRUE
164 gEmbeddedTokenSpaceGuid.PcdEmbeddedHwDebugCmd|TRUE
165 gEmbeddedTokenSpaceGuid.PcdEmbeddedIoEnable|FALSE
166 gEmbeddedTokenSpaceGuid.PcdEmbeddedScriptCmd|FALSE
167 gEmbeddedTokenSpaceGuid.PcdEmbeddedPciDebugCmd|TRUE
168
169 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|FALSE
170
171
172 [PcdsFixedAtBuild.common]
173 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
174 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
175 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
176 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
177 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
178 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
179 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
180 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
181 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|0
182 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
183 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
184 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
185 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
186 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
187 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
188 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
189 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|L""
190 gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
191 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
192
193 gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0
194 gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0
195
196 #
197 # Optinal feature to help prevent EFI memory map fragments
198 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
199 # Values are in EFI Pages (4K). DXE Core will make sure that
200 # at least this much of each type of memory can be allocated
201 # from a single memory range. This way you only end up with
202 # maximum of two fragements for each type in the memory map
203 # (the memory used, and the free memory that was prereserved
204 # but not used).
205 #
206 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
207 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
208 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
209 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0
210 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0
211 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|0
212 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|0
213 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|0
214 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
215
216 #
217 # Timer config for this platform
218 #
219 gEmbeddedTokenSpaceGuid.PcdTimerBaseAddress|0x3c700000
220 gEmbeddedTokenSpaceGuid.PcdTimerVector|7
221 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000
222
223 [PcdsFixedAtBuild.IPF]
224 gEfiMdePkgTokenSpaceGuid.PcdIoBlockBaseAddressForIpf|0x0ffffc000000
225
226 #
227 # This makes it so you can source level debug with NT32. VC++ debugger limitiation!
228 #
229 #[BuildOptions]
230 # DEBUG_*_IA32_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /ALIGN:4096 /SUBSYSTEM:CONSOLE
231 # RELEASE_*_IA32_DLINK_FLAGS = /ALIGN:4096
232 # *_*_IA32_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D TIANO_RELEASE_VERSION=0x00080006
233
234 [BuildOptions]
235 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu=7-A.security
236 *_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
237
238 ################################################################################
239 #
240 # Components Section - list of all Modules needed by this Platform
241 #
242 ################################################################################
243 [Components.common]
244 EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.inf
245 EmbeddedPkg/Library/EblCmdLibNull/EblCmdLibNull.inf
246 EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
247 EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.inf
248 EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.inf
249 EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
250 EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
251 EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf
252 EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
253 EmbeddedPkg/Library/LzmaHobCustomDecompressLib/LzmaHobCustomDecompressLib.inf
254 EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.inf
255 EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.inf
256 EmbeddedPkg/Library/DxeDtPlatformDtbLoaderLibDefault/DxeDtPlatformDtbLoaderLibDefault.inf
257
258 EmbeddedPkg/Ebl/Ebl.inf
259 #### EmbeddedPkg/EblExternCmd/EblExternCmd.inf
260 EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
261 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
262 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
263 EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
264 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf {
265 <LibraryClasses>
266 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
267 }
268
269 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
270
271 # Drivers
272 EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.inf
273 EmbeddedPkg/Drivers/SataSiI3132Dxe/SataSiI3132Dxe.inf
274
275 EmbeddedPkg/Library/AcpiLib/AcpiLib.inf
276 EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
277 EmbeddedPkg/Library/DxeHobPeCoffLib/DxeHobPeCoffLib.inf
278 EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.inf
279 EmbeddedPkg/Library/FdtLib/FdtLib.inf
280 EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.inf
281 EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
282 EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
283
284 EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.inf
285
286 [Components.ARM]
287 EmbeddedPkg/Drivers/Isp1761UsbDxe/Isp1761UsbDxe.inf
288
289 [Components.ARM, Components.AARCH64]
290 EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.inf
291 EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf {
292 <LibraryClasses>
293 # It depends on BdsLib that depends on TimerLib
294 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
295 }
296 EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf
297 EmbeddedPkg/Drivers/AndroidFastbootTransportTcpDxe/FastbootTransportTcpDxe.inf
298
299 # FDT installation
300 EmbeddedPkg/Drivers/FdtPlatformDxe/FdtPlatformDxe.inf {
301 <LibraryClasses>
302 # It depends on BdsLib that depends on TimerLib
303 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
304 }
305
306 [Components.IA32, Components.X64, Components.IPF, Components.ARM]
307 EmbeddedPkg/GdbStub/GdbStub.inf