3914eb7cfa5a4ef6889de0719447d0cc203d7280
[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|NOOPT
32 SKUID_IDENTIFIER = DEFAULT
33
34
35 ################################################################################
36 #
37 # SKU Identification section - list of all SKU IDs supported by this
38 # Platform.
39 #
40 ################################################################################
41 [SkuIds]
42 0|DEFAULT # The entry: 0|DEFAULT is reserved and always required.
43
44 ################################################################################
45 #
46 # Library Class section - list of all Library Classes needed by this Platform.
47 #
48 ################################################################################
49 [LibraryClasses.common]
50 # DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
51 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
52
53
54 AndroidBootImgLib|EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.inf
55 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
56 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
57 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
58 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
59 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
60 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
61
62 ReportStatusCodeLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
63
64 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
65 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
66 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
67 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
68 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
69
70 SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
71 RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
72 EfiResetSystemLib|EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf
73 GdbSerialLib|EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.inf
74
75
76 #
77 # Need to change this for IPF
78 #
79 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
80
81 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
82 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
83 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
84 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
85 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
86 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
87 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
88 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
89
90 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
91 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
92 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
93
94 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
95
96 AcpiLib|EmbeddedPkg/Library/AcpiLib/AcpiLib.inf
97 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
98
99 # Shell libraries
100 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
101 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
102 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
103
104 # Networking Requirements
105 NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
106 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
107 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
108
109 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
110 DtPlatformDtbLoaderLib|EmbeddedPkg/Library/DxeDtPlatformDtbLoaderLibDefault/DxeDtPlatformDtbLoaderLibDefault.inf
111
112 [LibraryClasses.common.DXE_DRIVER]
113 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
114 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
115
116
117 [LibraryClasses.common.UEFI_APPLICATION]
118 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
119 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
120
121 [LibraryClasses.common.UEFI_DRIVER]
122 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
123 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
124
125 [LibraryClasses.common.SEC]
126 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
127
128 [LibraryClasses.ARM, LibraryClasses.AARCH64]
129 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
130 ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
131 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
132 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
133
134 # Add support for GCC stack protector
135 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
136
137 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
138
139 ################################################################################
140 #
141 # Pcd Section - list of all PCD Entries defined by this Platform
142 #
143 ################################################################################
144
145 [PcdsFeatureFlag.common]
146 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE
147 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
148 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|FALSE
149 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|FALSE
150
151 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|FALSE
152
153
154 [PcdsFixedAtBuild.common]
155 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
156 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
157 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
158 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
159 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
160 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
161 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
162 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
163 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|0
164 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
165 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
166 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
167 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
168 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
169 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
170 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
171
172 gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0
173 gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0
174
175 #
176 # Optinal feature to help prevent EFI memory map fragments
177 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
178 # Values are in EFI Pages (4K). DXE Core will make sure that
179 # at least this much of each type of memory can be allocated
180 # from a single memory range. This way you only end up with
181 # maximum of two fragements for each type in the memory map
182 # (the memory used, and the free memory that was prereserved
183 # but not used).
184 #
185 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
186 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
187 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
188 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0
189 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0
190 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|0
191 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|0
192 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|0
193 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
194
195 #
196 # Timer config for this platform
197 #
198 gEmbeddedTokenSpaceGuid.PcdTimerBaseAddress|0x3c700000
199 gEmbeddedTokenSpaceGuid.PcdTimerVector|7
200 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000
201
202 [PcdsFixedAtBuild.IPF]
203 gEfiMdePkgTokenSpaceGuid.PcdIoBlockBaseAddressForIpf|0x0ffffc000000
204
205 #
206 # This makes it so you can source level debug with NT32. VC++ debugger limitiation!
207 #
208 #[BuildOptions]
209 # DEBUG_*_IA32_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /ALIGN:4096 /SUBSYSTEM:CONSOLE
210 # RELEASE_*_IA32_DLINK_FLAGS = /ALIGN:4096
211 # *_*_IA32_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D TIANO_RELEASE_VERSION=0x00080006
212
213 [BuildOptions]
214 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu=7-A.security
215 *_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
216
217 ################################################################################
218 #
219 # Components Section - list of all Modules needed by this Platform
220 #
221 ################################################################################
222 [Components.common]
223 EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.inf
224 EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.inf
225 EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
226 EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
227 EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf
228 EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
229 EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.inf
230 EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.inf
231 EmbeddedPkg/Library/DxeDtPlatformDtbLoaderLibDefault/DxeDtPlatformDtbLoaderLibDefault.inf
232
233 EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
234 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
235 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
236 EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
237 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf {
238 <LibraryClasses>
239 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
240 }
241
242 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
243
244 # Drivers
245 EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.inf
246 EmbeddedPkg/Drivers/SataSiI3132Dxe/SataSiI3132Dxe.inf
247
248 EmbeddedPkg/Library/AcpiLib/AcpiLib.inf
249 EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
250 EmbeddedPkg/Library/FdtLib/FdtLib.inf
251 EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.inf
252 EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
253 EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
254
255 EmbeddedPkg/Drivers/ConsolePrefDxe/ConsolePrefDxe.inf
256 EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.inf
257
258 [Components.ARM]
259 EmbeddedPkg/Drivers/Isp1761UsbDxe/Isp1761UsbDxe.inf
260
261 [Components.ARM, Components.AARCH64]
262 EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.inf
263 EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf
264 EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf
265 EmbeddedPkg/Drivers/AndroidFastbootTransportTcpDxe/FastbootTransportTcpDxe.inf
266
267 [Components.IA32, Components.X64, Components.IPF, Components.ARM]
268 EmbeddedPkg/GdbStub/GdbStub.inf