]>
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 | |
77 | [PcdsFixedAtBuild.common]\r | |
78 | gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Foundation Model"\r | |
79 | gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmFoundation"\r | |
80 | \r | |
81 | gArmPlatformTokenSpaceGuid.PcdCoreCount|4\r | |
82 | \r | |
83 | gArmTokenSpaceGuid.PcdVFPEnabled|1\r | |
84 | \r | |
85 | # Stacks for MPCores in Secure World (No SRAM on foundation model, put in RAM at 64MB)\r | |
7cf1a5b3 | 86 | gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0xA4008000\r |
f9cec5f1 HL |
87 | gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x1000\r |
88 | \r | |
f9cec5f1 HL |
89 | # Stacks for MPCores in Normal World (No SRAM on foundation model, put in RAM at 64MB)\r |
90 | gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0xA4000000\r | |
91 | gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000\r | |
92 | \r | |
93 | # System Memory (2GB)\r | |
94 | gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000\r | |
95 | gArmTokenSpaceGuid.PcdSystemMemorySize|0x80000000\r | |
96 | \r | |
97 | # Size of the region used by UEFI in permanent memory (Reserved 64MB)\r | |
98 | gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000\r | |
99 | \r | |
100 | #\r | |
101 | # ARM Pcds\r | |
102 | #\r | |
103 | gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000\r | |
104 | \r | |
a639401d OM |
105 | ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)\r |
106 | gArmTokenSpaceGuid.PcdTrustzoneSupport|TRUE\r | |
107 | \r | |
f9cec5f1 HL |
108 | #\r |
109 | # ARM PrimeCell\r | |
110 | #\r | |
111 | \r | |
112 | ## PL011 - Serial Terminal\r | |
113 | gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1c090000\r | |
114 | gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400\r | |
115 | \r | |
116 | #\r | |
017baa1c | 117 | # ARM General Interrupt Controller\r |
f9cec5f1 HL |
118 | #\r |
119 | gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000\r | |
120 | gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C002000\r | |
121 | \r | |
122 | #\r | |
123 | # ARM OS Loader\r | |
124 | #\r | |
125 | # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux:\r | |
126 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from SemiHosting"\r | |
127 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/Image"\r | |
0171906d | 128 | gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"root=/dev/vda2 rw console=ttyAMA0 earlyprintk=pl011,0x1c090000 maxcpus=4 debug user_debug=31 loglevel=9"\r |
f9cec5f1 HL |
129 | \r |
130 | # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)\r | |
131 | gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();"\r | |
132 | gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"\r | |
133 | \r | |
134 | #\r | |
b4a6629f | 135 | # ARM Architectural Timer Frequency\r |
f9cec5f1 | 136 | #\r |
6332ffb0 | 137 | # Set model tick to 100MHz. This depends a lot on workstation performance.\r |
b4a6629f | 138 | gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|100000000\r |
f9cec5f1 | 139 | \r |
04f1a709 RC |
140 | [PcdsDynamicDefault.common]\r |
141 | #\r | |
142 | # The size of a dynamic PCD of the (VOID*) type can not be increased at run\r | |
143 | # time from its size at build time. Set the "PcdFdtDevicePaths" PCD to a 128\r | |
144 | # character "empty" string, to allow to be able to set FDT text device paths\r | |
145 | # up to 128 characters long.\r | |
146 | #\r | |
147 | gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L" "\r | |
148 | \r | |
f9cec5f1 HL |
149 | ################################################################################\r |
150 | #\r | |
151 | # Components Section - list of all EDK II Modules needed by this Platform\r | |
152 | #\r | |
153 | ################################################################################\r | |
154 | [Components.common]\r | |
155 | \r | |
156 | #\r | |
157 | # SEC\r | |
158 | #\r | |
159 | ArmPlatformPkg/Sec/Sec.inf {\r | |
160 | <LibraryClasses>\r | |
161 | # Use the implementation which set the Secure bits\r | |
017baa1c | 162 | ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicSecLib.inf\r |
f9cec5f1 HL |
163 | }\r |
164 | \r | |
165 | #\r | |
166 | # PEI Phase modules\r | |
167 | #\r | |
168 | !ifdef $(EDK2_SKIP_PEICORE)\r | |
169 | ArmPlatformPkg/PrePi/PeiMPCore.inf {\r | |
170 | <LibraryClasses>\r | |
171 | ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf\r | |
172 | ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressFoundationLib.inf\r | |
173 | ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf\r | |
174 | }\r | |
175 | !else\r | |
176 | ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {\r | |
177 | <LibraryClasses>\r | |
178 | ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf\r | |
179 | }\r | |
180 | MdeModulePkg/Core/Pei/PeiMain.inf\r | |
181 | MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r | |
182 | <LibraryClasses>\r | |
183 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r | |
184 | }\r | |
185 | ArmPlatformPkg/PlatformPei/PlatformPeim.inf\r | |
186 | ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf\r | |
187 | ArmPkg/Drivers/CpuPei/CpuPei.inf\r | |
188 | IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r | |
189 | Nt32Pkg/BootModePei/BootModePei.inf\r | |
190 | MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r | |
191 | MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {\r | |
192 | <LibraryClasses>\r | |
9435a57e | 193 | NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r |
f9cec5f1 HL |
194 | }\r |
195 | !endif\r | |
196 | \r | |
197 | #\r | |
198 | # DXE\r | |
199 | #\r | |
200 | MdeModulePkg/Core/Dxe/DxeMain.inf {\r | |
201 | <LibraryClasses>\r | |
202 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r | |
203 | NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf\r | |
204 | }\r | |
205 | \r | |
206 | #\r | |
207 | # Architectural Protocols\r | |
208 | #\r | |
209 | ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r | |
210 | MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r | |
211 | MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r | |
212 | MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r | |
213 | MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf\r | |
214 | MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r | |
215 | MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r | |
216 | EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r | |
217 | EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r | |
218 | EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r | |
219 | \r | |
220 | MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r | |
221 | MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r | |
222 | MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r | |
223 | MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r | |
224 | EmbeddedPkg/SerialDxe/SerialDxe.inf\r | |
225 | \r | |
226 | MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r | |
227 | \r | |
017baa1c | 228 | ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r |
f9cec5f1 HL |
229 | ArmPkg/Drivers/TimerDxe/TimerDxe.inf\r |
230 | MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r | |
231 | \r | |
232 | #\r | |
233 | # Semi-hosting filesystem\r | |
234 | #\r | |
235 | ArmPkg/Filesystem/SemihostFs/SemihostFs.inf\r | |
236 | \r | |
237 | #\r | |
62d441fb RC |
238 | # Platform Driver\r |
239 | #\r | |
240 | ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmFvpDxe.inf\r | |
241 | OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r | |
242 | \r | |
243 | #\r | |
f9cec5f1 HL |
244 | # FAT filesystem + GPT/MBR partitioning\r |
245 | #\r | |
246 | MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r | |
247 | MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r | |
248 | MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r | |
249 | \r | |
250 | #\r | |
251 | # Bds\r | |
252 | #\r | |
253 | MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r | |
254 | ArmPlatformPkg/Bds/Bds.inf\r |