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>
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
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.
19 ################################################################################
21 # Defines Section - statements that will be processed to create a Makefile.
23 ################################################################################
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
36 ################################################################################
38 # SKU Identification section - list of all SKU IDs supported by this
41 ################################################################################
43 0|DEFAULT # The entry: 0|DEFAULT is reserved and always required.
45 ################################################################################
47 # Library Class section - list of all Library Classes needed by this Platform.
49 ################################################################################
50 [LibraryClasses.common]
51 # DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
52 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
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
64 ReportStatusCodeLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
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
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
79 # Need to change this for IPF
81 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
83 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
84 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
85 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
86 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
87 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
88 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
89 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
91 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
92 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
93 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
95 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
96 EblCmdLib|EmbeddedPkg/Library/EblCmdLibNull/EblCmdLibNull.inf
98 EblNetworkLib|EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.inf
100 AcpiLib|EmbeddedPkg/Library/AcpiLib/AcpiLib.inf
101 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
104 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
105 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
106 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
108 # Networking Requirements
109 NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
110 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
111 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
113 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
114 DtPlatformDtbLoaderLib|EmbeddedPkg/Library/DxeDtPlatformDtbLoaderLibDefault/DxeDtPlatformDtbLoaderLibDefault.inf
116 [LibraryClasses.common.DXE_DRIVER]
117 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
118 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
121 [LibraryClasses.common.UEFI_APPLICATION]
122 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
123 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
125 [LibraryClasses.common.UEFI_DRIVER]
126 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
127 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
129 [LibraryClasses.common.SEC]
130 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
132 [LibraryClasses.ARM, LibraryClasses.AARCH64]
133 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
134 ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
135 BdsLib|ArmPkg/Library/BdsLib/BdsLib.inf
136 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
137 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
139 # Add support for GCC stack protector
140 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
142 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
144 ################################################################################
146 # Pcd Section - list of all PCD Entries defined by this Platform
148 ################################################################################
150 [PcdsFeatureFlag.common]
151 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE
152 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
153 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|FALSE
154 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|FALSE
157 # Control what commands are supported from the UI
158 # Turn these on and off to add features or save size
160 gEmbeddedTokenSpaceGuid.PcdEmbeddedMacBoot|TRUE
161 gEmbeddedTokenSpaceGuid.PcdEmbeddedDirCmd|TRUE
162 gEmbeddedTokenSpaceGuid.PcdEmbeddedHobCmd|TRUE
163 gEmbeddedTokenSpaceGuid.PcdEmbeddedHwDebugCmd|TRUE
164 gEmbeddedTokenSpaceGuid.PcdEmbeddedIoEnable|FALSE
165 gEmbeddedTokenSpaceGuid.PcdEmbeddedScriptCmd|FALSE
166 gEmbeddedTokenSpaceGuid.PcdEmbeddedPciDebugCmd|TRUE
168 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|FALSE
171 [PcdsFixedAtBuild.common]
172 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
173 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
174 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
175 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
176 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
177 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
178 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
179 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
180 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|0
181 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
182 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
183 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
184 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
185 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
186 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
187 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
188 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|L""
189 gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
190 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
192 gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0
193 gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0
196 # Optinal feature to help prevent EFI memory map fragments
197 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
198 # Values are in EFI Pages (4K). DXE Core will make sure that
199 # at least this much of each type of memory can be allocated
200 # from a single memory range. This way you only end up with
201 # maximum of two fragements for each type in the memory map
202 # (the memory used, and the free memory that was prereserved
205 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
206 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
207 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
208 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0
209 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0
210 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|0
211 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|0
212 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|0
213 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
216 # Timer config for this platform
218 gEmbeddedTokenSpaceGuid.PcdTimerBaseAddress|0x3c700000
219 gEmbeddedTokenSpaceGuid.PcdTimerVector|7
220 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000
222 [PcdsFixedAtBuild.IPF]
223 gEfiMdePkgTokenSpaceGuid.PcdIoBlockBaseAddressForIpf|0x0ffffc000000
226 # This makes it so you can source level debug with NT32. VC++ debugger limitiation!
229 # DEBUG_*_IA32_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /ALIGN:4096 /SUBSYSTEM:CONSOLE
230 # RELEASE_*_IA32_DLINK_FLAGS = /ALIGN:4096
231 # *_*_IA32_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D TIANO_RELEASE_VERSION=0x00080006
234 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu=7-A.security
235 *_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
237 ################################################################################
239 # Components Section - list of all Modules needed by this Platform
241 ################################################################################
243 EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.inf
244 EmbeddedPkg/Library/EblCmdLibNull/EblCmdLibNull.inf
245 EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
246 EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.inf
247 EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.inf
248 EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
249 EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
250 EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf
251 EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
252 EmbeddedPkg/Library/LzmaHobCustomDecompressLib/LzmaHobCustomDecompressLib.inf
253 EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.inf
254 EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.inf
255 EmbeddedPkg/Library/DxeDtPlatformDtbLoaderLibDefault/DxeDtPlatformDtbLoaderLibDefault.inf
257 EmbeddedPkg/Ebl/Ebl.inf
258 #### EmbeddedPkg/EblExternCmd/EblExternCmd.inf
259 EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
260 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
261 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
262 EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
263 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf {
265 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
268 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
271 EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.inf
272 EmbeddedPkg/Drivers/SataSiI3132Dxe/SataSiI3132Dxe.inf
274 EmbeddedPkg/Library/AcpiLib/AcpiLib.inf
275 EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
276 EmbeddedPkg/Library/DxeHobPeCoffLib/DxeHobPeCoffLib.inf
277 EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.inf
278 EmbeddedPkg/Library/FdtLib/FdtLib.inf
279 EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.inf
280 EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
281 EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
283 EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.inf
286 EmbeddedPkg/Drivers/Isp1761UsbDxe/Isp1761UsbDxe.inf
288 [Components.ARM, Components.AARCH64]
289 EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.inf
290 EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf {
292 # It depends on BdsLib that depends on TimerLib
293 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
295 EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf
296 EmbeddedPkg/Drivers/AndroidFastbootTransportTcpDxe/FastbootTransportTcpDxe.inf
299 EmbeddedPkg/Drivers/FdtPlatformDxe/FdtPlatformDxe.inf {
301 # It depends on BdsLib that depends on TimerLib
302 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
305 [Components.IA32, Components.X64, Components.IPF, Components.ARM]
306 EmbeddedPkg/GdbStub/GdbStub.inf