5 # Copyright (c) 2007 - 2018, 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 # SPDX-License-Identifier: BSD-2-Clause-Patent
13 ################################################################################
15 # Defines Section - statements that will be processed to create a Makefile.
17 ################################################################################
19 PLATFORM_NAME = Embedded
20 PLATFORM_GUID = 8DBB580B-CF89-4D57-95C6-DFE96C44686E
21 PLATFORM_VERSION = 0.1
22 DSC_SPECIFICATION = 0x00010005
23 OUTPUT_DIRECTORY = Build/Embedded
24 SUPPORTED_ARCHITECTURES = IA32|X64|ARM|AARCH64
25 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
26 SKUID_IDENTIFIER = DEFAULT
29 ################################################################################
31 # SKU Identification section - list of all SKU IDs supported by this
34 ################################################################################
36 0|DEFAULT # The entry: 0|DEFAULT is reserved and always required.
38 ################################################################################
40 # Library Class section - list of all Library Classes needed by this Platform.
42 ################################################################################
43 [LibraryClasses.common]
44 # DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
45 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
48 AndroidBootImgLib|EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.inf
49 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
50 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
51 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
52 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
53 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
54 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
56 ReportStatusCodeLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
58 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
59 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
60 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
61 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
62 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
64 SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
65 RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
66 EfiResetSystemLib|EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf
67 GdbSerialLib|EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.inf
71 # Need to change this for IPF
73 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
75 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
76 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
77 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
78 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
79 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
80 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
81 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
82 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
84 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
85 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
86 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
88 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
90 AcpiLib|EmbeddedPkg/Library/AcpiLib/AcpiLib.inf
91 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
94 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
95 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
96 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
98 # Networking Requirements
99 !include NetworkPkg/NetworkLibs.dsc.inc
100 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
101 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
103 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
104 DtPlatformDtbLoaderLib|EmbeddedPkg/Library/DxeDtPlatformDtbLoaderLibDefault/DxeDtPlatformDtbLoaderLibDefault.inf
106 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
108 [LibraryClasses.common.DXE_DRIVER]
109 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
110 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
113 [LibraryClasses.common.UEFI_APPLICATION]
114 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
115 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
117 [LibraryClasses.common.UEFI_DRIVER]
118 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
119 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
121 [LibraryClasses.common.SEC]
122 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
124 [LibraryClasses.ARM, LibraryClasses.AARCH64]
125 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
126 ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
127 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
128 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
130 # Add support for GCC stack protector
131 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
133 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
135 ################################################################################
137 # Pcd Section - list of all PCD Entries defined by this Platform
139 ################################################################################
141 [PcdsFeatureFlag.common]
142 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE
143 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
144 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|FALSE
145 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|FALSE
147 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|FALSE
150 [PcdsFixedAtBuild.common]
151 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
152 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
153 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
154 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
155 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
156 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
157 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
158 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
159 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|0
160 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
161 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
162 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
163 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
164 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
165 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
166 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
168 gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0
169 gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0
172 # Optinal feature to help prevent EFI memory map fragments
173 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
174 # Values are in EFI Pages (4K). DXE Core will make sure that
175 # at least this much of each type of memory can be allocated
176 # from a single memory range. This way you only end up with
177 # maximum of two fragments for each type in the memory map
178 # (the memory used, and the free memory that was prereserved
181 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
182 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
183 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
184 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0
185 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0
186 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|0
187 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|0
188 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|0
189 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
192 # Timer config for this platform
194 gEmbeddedTokenSpaceGuid.PcdTimerBaseAddress|0x3c700000
195 gEmbeddedTokenSpaceGuid.PcdTimerVector|7
196 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000
199 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu=7-A.security
200 *_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
202 ################################################################################
204 # Components Section - list of all Modules needed by this Platform
206 ################################################################################
208 EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.inf
209 EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.inf
210 EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
211 EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
212 EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf
213 EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
214 EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.inf
215 EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.inf
216 EmbeddedPkg/Library/DxeDtPlatformDtbLoaderLibDefault/DxeDtPlatformDtbLoaderLibDefault.inf
217 EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.inf
219 EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
220 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
221 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
222 EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
223 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf {
225 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
228 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
230 EmbeddedPkg/Library/AcpiLib/AcpiLib.inf
231 EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
232 EmbeddedPkg/Library/FdtLib/FdtLib.inf
233 EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
234 EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
236 EmbeddedPkg/Drivers/ConsolePrefDxe/ConsolePrefDxe.inf
237 EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.inf
239 EmbeddedPkg/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.inf {
241 DmaLib|EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.inf
244 [Components.ARM, Components.AARCH64]
245 EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.inf
246 EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf
247 EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf
248 EmbeddedPkg/Drivers/AndroidFastbootTransportTcpDxe/FastbootTransportTcpDxe.inf
250 [Components.IA32, Components.X64, Components.ARM]
251 EmbeddedPkg/GdbStub/GdbStub.inf