blob: 9eaf7dc97af5b7be4f4ec122529382dd713f54fa [file] [log] [blame]
oliviermartin1e57a462013-01-25 11:28:06 +00001#/** @file
2# Embedded Package
3#
4#
5# Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
Olivier Martin35a3e762014-03-01 11:01:44 +00006# Copyright (c) 2012-2014, ARM Ltd. All rights reserved.<BR>
oliviermartin1e57a462013-01-25 11:28:06 +00007#
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
Olivier Martin35a3e762014-03-01 11:01:44 +000029 SUPPORTED_ARCHITECTURES = IA32|X64|IPF|ARM|AARCH64
oliviermartin1e57a462013-01-25 11:28:06 +000030 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|EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.inf
oliviermartind38c35f2013-03-12 00:40:11 +000073 SerialPortExtLib|EmbeddedPkg/Library/TemplateSerialPortExtLib/TemplateSerialPortExtLib.inf
oliviermartin1e57a462013-01-25 11:28:06 +000074 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
97 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
98 EblCmdLib|EmbeddedPkg/Library/EblCmdLibNull/EblCmdLibNull.inf
99
100 EblNetworkLib|EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.inf
101
102
103[LibraryClasses.common.DXE_DRIVER]
104 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
105 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
106
107
108[LibraryClasses.common.UEFI_APPLICATION]
109 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
110 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
111
112[LibraryClasses.common.UEFI_DRIVER]
113 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
114 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
115
116[LibraryClasses.common.SEC]
117 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
118
Olivier Martin35a3e762014-03-01 11:01:44 +0000119[LibraryClasses.ARM, LibraryClasses.AARCH64]
oliviermartin1e57a462013-01-25 11:28:06 +0000120 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
oliviermartin1e57a462013-01-25 11:28:06 +0000121 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
122
123
124################################################################################
125#
126# Pcd Section - list of all PCD Entries defined by this Platform
127#
128################################################################################
129
130[PcdsFeatureFlag.common]
131 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|FALSE
132 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|FALSE
133 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|FALSE
134 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|FALSE
135
136 #
137 # Control what commands are supported from the UI
138 # Turn these on and off to add features or save size
139 #
140 gEmbeddedTokenSpaceGuid.PcdEmbeddedMacBoot|TRUE
141 gEmbeddedTokenSpaceGuid.PcdEmbeddedDirCmd|TRUE
142 gEmbeddedTokenSpaceGuid.PcdEmbeddedHobCmd|TRUE
143 gEmbeddedTokenSpaceGuid.PcdEmbeddedHwDebugCmd|TRUE
144 gEmbeddedTokenSpaceGuid.PcdEmbeddedIoEnable|FALSE
145 gEmbeddedTokenSpaceGuid.PcdEmbeddedScriptCmd|FALSE
146 gEmbeddedTokenSpaceGuid.PcdEmbeddedPciDebugCmd|TRUE
147
148 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|FALSE
149
150
151[PcdsFixedAtBuild.common]
152 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
153 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
154 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
155 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
156 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
157 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
158 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x06
159 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
160 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|0
161 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
162 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
163 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
164 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
165 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
166 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
167 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000
Olivier Martin8f12aa72013-08-23 18:21:46 +0000168 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|L""
oliviermartin1e57a462013-01-25 11:28:06 +0000169 gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
170 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
171
172 gEmbeddedTokenSpaceGuid.PcdPrePiHobBase|0
173 gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0
174 gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0
175
176#
177# Optinal feature to help prevent EFI memory map fragments
178# Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
179# Values are in EFI Pages (4K). DXE Core will make sure that
180# at least this much of each type of memory can be allocated
181# from a single memory range. This way you only end up with
182# maximum of two fragements for each type in the memory map
183# (the memory used, and the free memory that was prereserved
184# but not used).
185#
186 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
187 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
188 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
189 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0
190 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0
191 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|0
192 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|0
193 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|0
194 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
195
196#
197# Timer config for this platform
198#
199 gEmbeddedTokenSpaceGuid.PcdTimerBaseAddress|0x3c700000
200 gEmbeddedTokenSpaceGuid.PcdTimerVector|7
201 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000
202
oliviermartin1e57a462013-01-25 11:28:06 +0000203[PcdsFixedAtBuild.IPF]
204 gEfiMdePkgTokenSpaceGuid.PcdIoBlockBaseAddressForIpf|0x0ffffc000000
205
206#
207# This makes it so you can source level debug with NT32. VC++ debugger limitiation!
208#
209#[BuildOptions]
210# DEBUG_*_IA32_DLINK_FLAGS = /EXPORT:InitializeDriver=$(IMAGE_ENTRY_POINT) /ALIGN:4096 /SUBSYSTEM:CONSOLE
211# RELEASE_*_IA32_DLINK_FLAGS = /ALIGN:4096
212# *_*_IA32_CC_FLAGS = /D EFI_SPECIFICATION_VERSION=0x0002000A /D TIANO_RELEASE_VERSION=0x00080006
213
214
215################################################################################
216#
217# Components Section - list of all Modules needed by this Platform
218#
219################################################################################
220[Components.common]
221 EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.inf
222 EmbeddedPkg/Library/EblCmdLibNull/EblCmdLibNull.inf
223 EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
224 EmbeddedPkg/Library/GdbSerialDebugPortLib/GdbSerialDebugPortLib.inf
225 EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.inf
226 EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
227 EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
228 EmbeddedPkg/Library/TemplateSerialPortLib/TemplateSerialPortLib.inf
229 EmbeddedPkg/Library/TemplateResetSystemLib/TemplateResetSystemLib.inf
230 EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
231 EmbeddedPkg/Library/LzmaHobCustomDecompressLib/LzmaHobCustomDecompressLib.inf
232 EmbeddedPkg/Library/NullDmaLib/NullDmaLib.inf
233
234 EmbeddedPkg/Ebl/Ebl.inf
235#### EmbeddedPkg/EblExternCmd/EblExternCmd.inf
236 EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
oliviermartin1e57a462013-01-25 11:28:06 +0000237 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
238 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
239 EmbeddedPkg/SerialDxe/SerialDxe.inf
240 EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
241 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
242
243 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
oliviermartin1e57a462013-01-25 11:28:06 +0000244
Olivier Martin35a3e762014-03-01 11:01:44 +0000245[Components.IA32, Components.X64, Components.IPF, Components.ARM]
246 EmbeddedPkg/GdbStub/GdbStub.inf