EmbeddedPkg: Remove unused TemplateSerialPortLib
[mirror_edk2.git] / EmbeddedPkg / EmbeddedPkg.dsc
1 #/** @file
2 # Embedded Package
3 #
4 #
5 # Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
6 # Copyright (c) 2012-2014, ARM Ltd. All rights reserved.<BR>
7 #
8 # This program and the accompanying materials
9 # are licensed and made available under the terms and conditions of the BSD License
10 # which accompanies this distribution. The full text of the license may be found at
11 # http://opensource.org/licenses/bsd-license.php
12 #
13 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #
16 #**/
17
18 ################################################################################
19 #
20 # Defines Section - statements that will be processed to create a Makefile.
21 #
22 ################################################################################
23 [Defines]
24 PLATFORM_NAME = Embedded
25 PLATFORM_GUID = 8DBB580B-CF89-4D57-95C6-DFE96C44686E
26 PLATFORM_VERSION = 0.1
27 DSC_SPECIFICATION = 0x00010005
28 OUTPUT_DIRECTORY = Build/Embedded
29 SUPPORTED_ARCHITECTURES = IA32|X64|IPF|ARM|AARCH64
30 BUILD_TARGETS = DEBUG|RELEASE
31 SKUID_IDENTIFIER = DEFAULT
32 FLASH_DEFINITION = EmbeddedPkg/EmbeddedPkg.fdf
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 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
55 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
56 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
57 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
58 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
59 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
60 EfiFileLib|EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
61
62 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
63
64 ReportStatusCodeLib|IntelFrameworkModulePkg/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 SerialPortExtLib|EmbeddedPkg/Library/TemplateSerialPortExtLib/TemplateSerialPortExtLib.inf
74 RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
75 EfiResetSystemLib|EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf
76 GdbSerialLib|EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.inf
77
78
79 #
80 # Need to change this for IPF
81 #
82 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
83
84 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
85 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
86 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.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 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
102
103 # Networking Requirements
104 NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
105 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
106 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
107
108 [LibraryClasses.common.DXE_DRIVER]
109 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
110 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
111
112
113 [LibraryClasses.common.UEFI_APPLICATION]
114 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
115 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
116
117 [LibraryClasses.common.UEFI_DRIVER]
118 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
119 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
120
121 [LibraryClasses.common.SEC]
122 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
123
124 [LibraryClasses.ARM, LibraryClasses.AARCH64]
125 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
126 ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
127 BdsLib|ArmPkg/Library/BdsLib/BdsLib.inf
128 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
129 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
130
131 # Add support for GCC stack protector
132 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
133
134 [LibraryClasses.ARM]
135 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
136
137 [LibraryClasses.AARCH64]
138 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf
139
140
141 ################################################################################
142 #
143 # Pcd Section - list of all PCD Entries defined by this Platform
144 #
145 ################################################################################
146
147 [PcdsFeatureFlag.common]
148 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE
149 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
150 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|FALSE
151 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|FALSE
152
153 #
154 # Control what commands are supported from the UI
155 # Turn these on and off to add features or save size
156 #
157 gEmbeddedTokenSpaceGuid.PcdEmbeddedMacBoot|TRUE
158 gEmbeddedTokenSpaceGuid.PcdEmbeddedDirCmd|TRUE
159 gEmbeddedTokenSpaceGuid.PcdEmbeddedHobCmd|TRUE
160 gEmbeddedTokenSpaceGuid.PcdEmbeddedHwDebugCmd|TRUE
161 gEmbeddedTokenSpaceGuid.PcdEmbeddedIoEnable|FALSE
162 gEmbeddedTokenSpaceGuid.PcdEmbeddedScriptCmd|FALSE
163 gEmbeddedTokenSpaceGuid.PcdEmbeddedPciDebugCmd|TRUE
164
165 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|FALSE
166
167
168 [PcdsFixedAtBuild.common]
169 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
170 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
171 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
172 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
173 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
174 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
175 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
176 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
177 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|0
178 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
179 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
180 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
181 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
182 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
183 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
184 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
185 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|L""
186 gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
187 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
188
189 gEmbeddedTokenSpaceGuid.PcdPrePiHobBase|0
190 gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0
191 gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0
192
193 #
194 # Optinal feature to help prevent EFI memory map fragments
195 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
196 # Values are in EFI Pages (4K). DXE Core will make sure that
197 # at least this much of each type of memory can be allocated
198 # from a single memory range. This way you only end up with
199 # maximum of two fragements for each type in the memory map
200 # (the memory used, and the free memory that was prereserved
201 # but not used).
202 #
203 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
204 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
205 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
206 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0
207 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0
208 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|0
209 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|0
210 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|0
211 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
212
213 #
214 # Timer config for this platform
215 #
216 gEmbeddedTokenSpaceGuid.PcdTimerBaseAddress|0x3c700000
217 gEmbeddedTokenSpaceGuid.PcdTimerVector|7
218 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000
219
220 [PcdsFixedAtBuild.IPF]
221 gEfiMdePkgTokenSpaceGuid.PcdIoBlockBaseAddressForIpf|0x0ffffc000000
222
223 #
224 # This makes it so you can source level debug with NT32. VC++ debugger limitiation!
225 #
226 #[BuildOptions]
227 # DEBUG_*_IA32_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /ALIGN:4096 /SUBSYSTEM:CONSOLE
228 # RELEASE_*_IA32_DLINK_FLAGS = /ALIGN:4096
229 # *_*_IA32_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D TIANO_RELEASE_VERSION=0x00080006
230
231 [BuildOptions]
232 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu=7-A.security
233
234
235 ################################################################################
236 #
237 # Components Section - list of all Modules needed by this Platform
238 #
239 ################################################################################
240 [Components.common]
241 EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.inf
242 EmbeddedPkg/Library/EblCmdLibNull/EblCmdLibNull.inf
243 EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
244 EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.inf
245 EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.inf
246 EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
247 EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
248 MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
249 EmbeddedPkg/Library/SerialPortExtLibNull/SerialPortExtLibNull.inf
250 EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf
251 EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
252 EmbeddedPkg/Library/LzmaHobCustomDecompressLib/LzmaHobCustomDecompressLib.inf
253 EmbeddedPkg/Library/NullDmaLib/NullDmaLib.inf
254
255 EmbeddedPkg/Ebl/Ebl.inf
256 #### EmbeddedPkg/EblExternCmd/EblExternCmd.inf
257 EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
258 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
259 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
260 EmbeddedPkg/SerialDxe/SerialDxe.inf
261 EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
262 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
263
264 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
265
266 # FDT Support
267 EmbeddedPkg/Library/FdtLoadLib/FdtLoadLib.inf
268
269 EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf
270 EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf
271 EmbeddedPkg/Drivers/AndroidFastbootTransportTcpDxe/FastbootTransportTcpDxe.inf
272
273 # Drivers
274 EmbeddedPkg/Drivers/Isp1761UsbDxe/Isp1761UsbDxe.inf
275 EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.inf
276
277 [Components.IA32, Components.X64, Components.IPF, Components.ARM]
278 EmbeddedPkg/GdbStub/GdbStub.inf