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