]>
Commit | Line | Data |
---|---|---|
f9cec5f1 | 1 | #\r |
04f1a709 | 2 | # Copyright (c) 2011-2015, ARM Limited. All rights reserved.\r |
f9cec5f1 HL |
3 | #\r |
4 | # This program and the accompanying materials\r | |
5 | # are licensed and made available under the terms and conditions of the BSD License\r | |
6 | # which accompanies this distribution. The full text of the license may be found at\r | |
7 | # http://opensource.org/licenses/bsd-license.php\r | |
8 | #\r | |
9 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
10 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
11 | #\r | |
12 | #\r | |
13 | \r | |
14 | ################################################################################\r | |
15 | #\r | |
16 | # Defines Section - statements that will be processed to create a Makefile.\r | |
17 | #\r | |
18 | ################################################################################\r | |
19 | [Defines]\r | |
20 | PLATFORM_NAME = ArmVExpressPkg-RTSM-AEMv8Ax4-foundation\r | |
21 | PLATFORM_GUID = 2a9d4992-0730-11e2-9829-1c6f650265cc\r | |
22 | PLATFORM_VERSION = 0.1\r | |
23 | DSC_SPECIFICATION = 0x00010005\r | |
24 | OUTPUT_DIRECTORY = Build/ArmVExpress-RTSM-AEMv8Ax4-foundation\r | |
25 | SUPPORTED_ARCHITECTURES = AARCH64\r | |
26 | BUILD_TARGETS = DEBUG|RELEASE\r | |
27 | SKUID_IDENTIFIER = DEFAULT\r | |
28 | FLASH_DEFINITION = ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-AEMv8Ax4-foundation.fdf\r | |
29 | \r | |
30 | !include ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc\r | |
31 | \r | |
32 | [LibraryClasses.common]\r | |
33 | ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf\r | |
34 | ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexAEMv8Lib/ArmCortexAEMv8Lib.inf\r | |
35 | ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressFoundationLib.inf\r | |
36 | \r | |
974d6117 LE |
37 | # Virtio Support\r |
38 | VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf\r | |
39 | VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf\r | |
40 | \r | |
f9cec5f1 HL |
41 | ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf\r |
42 | \r | |
43 | TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf\r | |
44 | \r | |
45 | # Foundation model does not have an RTC. Use the NULL version.\r | |
46 | RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf\r | |
47 | \r | |
48 | [LibraryClasses.common.SEC]\r | |
49 | ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibSec.inf\r | |
50 | ArmPlatformSecLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibRTSM/ArmVExpressFoundationSecLib.inf\r | |
51 | ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressFoundationLibSec.inf\r | |
52 | \r | |
04f1a709 RC |
53 | [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_DRIVER]\r |
54 | PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r | |
55 | \r | |
f9cec5f1 HL |
56 | [BuildOptions]\r |
57 | GCC:*_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM\r | |
58 | \r | |
59 | \r | |
60 | ################################################################################\r | |
61 | #\r | |
62 | # Pcd Section - list of all EDK II PCD Entries defined by this Platform\r | |
63 | #\r | |
64 | ################################################################################\r | |
65 | \r | |
66 | [PcdsFeatureFlag.common]\r | |
67 | \r | |
68 | !ifdef $(EDK2_SKIP_PEICORE)\r | |
69 | gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE\r | |
70 | gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE\r | |
71 | !endif\r | |
72 | \r | |
73 | ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.\r | |
74 | # It could be set FALSE to save size.\r | |
75 | gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|FALSE\r | |
76 | \r | |
04f1a709 RC |
77 | #\r |
78 | # FDT installation : enable the development specific features\r | |
79 | #\r | |
80 | gEmbeddedTokenSpaceGuid.PcdOverridePlatformFdt|TRUE\r | |
81 | \r | |
f9cec5f1 HL |
82 | [PcdsFixedAtBuild.common]\r |
83 | gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Foundation Model"\r | |
84 | gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmFoundation"\r | |
85 | \r | |
86 | gArmPlatformTokenSpaceGuid.PcdCoreCount|4\r | |
87 | \r | |
88 | gArmTokenSpaceGuid.PcdVFPEnabled|1\r | |
89 | \r | |
90 | # Stacks for MPCores in Secure World (No SRAM on foundation model, put in RAM at 64MB)\r | |
7cf1a5b3 | 91 | gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0xA4008000\r |
f9cec5f1 HL |
92 | gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x1000\r |
93 | \r | |
f9cec5f1 HL |
94 | # Stacks for MPCores in Normal World (No SRAM on foundation model, put in RAM at 64MB)\r |
95 | gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0xA4000000\r | |
96 | gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000\r | |
97 | \r | |
98 | # System Memory (2GB)\r | |
99 | gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000\r | |
100 | gArmTokenSpaceGuid.PcdSystemMemorySize|0x80000000\r | |
101 | \r | |
102 | # Size of the region used by UEFI in permanent memory (Reserved 64MB)\r | |
103 | gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000\r | |
104 | \r | |
105 | #\r | |
106 | # ARM Pcds\r | |
107 | #\r | |
108 | gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000\r | |
109 | \r | |
a639401d OM |
110 | ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)\r |
111 | gArmTokenSpaceGuid.PcdTrustzoneSupport|TRUE\r | |
112 | \r | |
f9cec5f1 HL |
113 | #\r |
114 | # ARM PrimeCell\r | |
115 | #\r | |
116 | \r | |
117 | ## PL011 - Serial Terminal\r | |
118 | gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1c090000\r | |
119 | gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400\r | |
120 | \r | |
121 | #\r | |
017baa1c | 122 | # ARM General Interrupt Controller\r |
f9cec5f1 HL |
123 | #\r |
124 | gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000\r | |
125 | gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C002000\r | |
126 | \r | |
127 | #\r | |
128 | # ARM OS Loader\r | |
129 | #\r | |
130 | # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux:\r | |
131 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from SemiHosting"\r | |
132 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/Image"\r | |
0171906d | 133 | gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"root=/dev/vda2 rw console=ttyAMA0 earlyprintk=pl011,0x1c090000 maxcpus=4 debug user_debug=31 loglevel=9"\r |
f9cec5f1 | 134 | gArmPlatformTokenSpaceGuid.PcdDefaultBootType|2\r |
f9cec5f1 HL |
135 | \r |
136 | # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)\r | |
137 | gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();"\r | |
138 | gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"\r | |
139 | \r | |
140 | #\r | |
b4a6629f | 141 | # ARM Architectural Timer Frequency\r |
f9cec5f1 | 142 | #\r |
6332ffb0 | 143 | # Set model tick to 100MHz. This depends a lot on workstation performance.\r |
b4a6629f | 144 | gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|100000000\r |
f9cec5f1 | 145 | \r |
04f1a709 RC |
146 | [PcdsDynamicDefault.common]\r |
147 | #\r | |
148 | # The size of a dynamic PCD of the (VOID*) type can not be increased at run\r | |
149 | # time from its size at build time. Set the "PcdFdtDevicePaths" PCD to a 128\r | |
150 | # character "empty" string, to allow to be able to set FDT text device paths\r | |
151 | # up to 128 characters long.\r | |
152 | #\r | |
153 | gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L" "\r | |
154 | \r | |
f9cec5f1 HL |
155 | ################################################################################\r |
156 | #\r | |
157 | # Components Section - list of all EDK II Modules needed by this Platform\r | |
158 | #\r | |
159 | ################################################################################\r | |
160 | [Components.common]\r | |
161 | \r | |
162 | #\r | |
163 | # SEC\r | |
164 | #\r | |
165 | ArmPlatformPkg/Sec/Sec.inf {\r | |
166 | <LibraryClasses>\r | |
167 | # Use the implementation which set the Secure bits\r | |
017baa1c | 168 | ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicSecLib.inf\r |
f9cec5f1 HL |
169 | }\r |
170 | \r | |
171 | #\r | |
172 | # PEI Phase modules\r | |
173 | #\r | |
174 | !ifdef $(EDK2_SKIP_PEICORE)\r | |
175 | ArmPlatformPkg/PrePi/PeiMPCore.inf {\r | |
176 | <LibraryClasses>\r | |
177 | ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf\r | |
178 | ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressFoundationLib.inf\r | |
179 | ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf\r | |
180 | }\r | |
181 | !else\r | |
182 | ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {\r | |
183 | <LibraryClasses>\r | |
184 | ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf\r | |
185 | }\r | |
186 | MdeModulePkg/Core/Pei/PeiMain.inf\r | |
187 | MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r | |
188 | <LibraryClasses>\r | |
189 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r | |
190 | }\r | |
191 | ArmPlatformPkg/PlatformPei/PlatformPeim.inf\r | |
192 | ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf\r | |
193 | ArmPkg/Drivers/CpuPei/CpuPei.inf\r | |
194 | IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r | |
195 | Nt32Pkg/BootModePei/BootModePei.inf\r | |
196 | MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r | |
197 | MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {\r | |
198 | <LibraryClasses>\r | |
199 | NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r | |
200 | }\r | |
201 | !endif\r | |
202 | \r | |
203 | #\r | |
204 | # DXE\r | |
205 | #\r | |
206 | MdeModulePkg/Core/Dxe/DxeMain.inf {\r | |
207 | <LibraryClasses>\r | |
208 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r | |
209 | NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf\r | |
210 | }\r | |
211 | \r | |
212 | #\r | |
213 | # Architectural Protocols\r | |
214 | #\r | |
215 | ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r | |
216 | MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r | |
217 | MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r | |
218 | MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r | |
219 | MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf\r | |
220 | MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r | |
221 | MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r | |
222 | EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r | |
223 | EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r | |
224 | EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r | |
225 | \r | |
226 | MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r | |
227 | MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r | |
228 | MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r | |
229 | MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r | |
230 | EmbeddedPkg/SerialDxe/SerialDxe.inf\r | |
231 | \r | |
232 | MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r | |
233 | \r | |
017baa1c | 234 | ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r |
f9cec5f1 HL |
235 | ArmPkg/Drivers/TimerDxe/TimerDxe.inf\r |
236 | MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r | |
237 | \r | |
238 | #\r | |
239 | # Semi-hosting filesystem\r | |
240 | #\r | |
241 | ArmPkg/Filesystem/SemihostFs/SemihostFs.inf\r | |
242 | \r | |
243 | #\r | |
62d441fb RC |
244 | # Platform Driver\r |
245 | #\r | |
246 | ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmFvpDxe.inf\r | |
247 | OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r | |
248 | \r | |
249 | #\r | |
f9cec5f1 HL |
250 | # FAT filesystem + GPT/MBR partitioning\r |
251 | #\r | |
252 | MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r | |
253 | MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r | |
254 | MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r | |
255 | \r | |
256 | #\r | |
257 | # Bds\r | |
258 | #\r | |
259 | MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r | |
260 | ArmPlatformPkg/Bds/Bds.inf\r |