]>
Commit | Line | Data |
---|---|---|
12fcdcb8 | 1 | # |
2 | # Copyright (c) 2011, ARM Limited. All rights reserved. | |
3 | # | |
4 | # This program and the accompanying materials | |
5 | # are licensed and made available under the terms and conditions of the BSD License | |
6 | # which accompanies this distribution. The full text of the license may be found at | |
7 | # http://opensource.org/licenses/bsd-license.php | |
8 | # | |
9 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, | |
10 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. | |
11 | # | |
12 | ||
13 | ################################################################################ | |
14 | # | |
15 | # FD Section | |
16 | # The [FD] Section is made up of the definition statements and a | |
17 | # description of what goes into the Flash Device Image. Each FD section | |
18 | # defines one flash "device" image. A flash device image may be one of | |
19 | # the following: Removable media bootable image (like a boot floppy | |
20 | # image,) an Option ROM image (that would be "flashed" into an add-in | |
21 | # card,) a System "Flash" image (that would be burned into a system's | |
22 | # flash) or an Update ("Capsule") image that will be used to update and | |
23 | # existing system flash. | |
24 | # | |
25 | ################################################################################ | |
26 | ||
27 | [FD.Sec_ArmPlatform_EFI] | |
28 | BaseAddress = 0xEC000000|gArmTokenSpaceGuid.PcdSecureFdBaseAddress #The base address of the Secure FLASH Device. | |
29 | Size = 0x00010000|gArmTokenSpaceGuid.PcdSecureFdSize #The size in bytes of the Secure FLASH Device | |
30 | ErasePolarity = 1 | |
31 | BlockSize = 0x00001000 | |
32 | NumBlocks = 0x10 | |
33 | ||
34 | ################################################################################ | |
35 | # | |
36 | # Following are lists of FD Region layout which correspond to the locations of different | |
37 | # images within the flash device. | |
38 | # | |
39 | # Regions must be defined in ascending order and may not overlap. | |
40 | # | |
41 | # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by | |
42 | # the pipe "|" character, followed by the size of the region, also in hex with the leading | |
43 | # "0x" characters. Like: | |
44 | # Offset|Size | |
45 | # PcdOffsetCName|PcdSizeCName | |
46 | # RegionType <FV, DATA, or FILE> | |
47 | # | |
48 | ################################################################################ | |
49 | ||
50 | 0x00000000|0x00010000 | |
504d1460 | 51 | gArmTokenSpaceGuid.PcdSecureFvBaseAddress|gArmTokenSpaceGuid.PcdSecureFvSize |
12fcdcb8 | 52 | FV = FVMAIN_SEC |
53 | ||
54 | ||
504d1460 | 55 | [FD.ArmPlatform_EFI] |
12fcdcb8 | 56 | BaseAddress = 0xEC200000|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware in NOR Flash. |
57 | Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device | |
58 | ErasePolarity = 1 | |
59 | ||
60 | # This one is tricky, it must be: BlockSize * NumBlocks = Size | |
61 | BlockSize = 0x00001000 | |
62 | NumBlocks = 0x200 | |
63 | ||
64 | ################################################################################ | |
65 | # | |
66 | # Following are lists of FD Region layout which correspond to the locations of different | |
67 | # images within the flash device. | |
68 | # | |
69 | # Regions must be defined in ascending order and may not overlap. | |
70 | # | |
71 | # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by | |
72 | # the pipe "|" character, followed by the size of the region, also in hex with the leading | |
73 | # "0x" characters. Like: | |
74 | # Offset|Size | |
75 | # PcdOffsetCName|PcdSizeCName | |
76 | # RegionType <FV, DATA, or FILE> | |
77 | # | |
78 | ################################################################################ | |
79 | ||
80 | 0x00000000|0x00200000 | |
504d1460 | 81 | gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize |
12fcdcb8 | 82 | FV = FVMAIN_COMPACT |
83 | ||
84 | ||
85 | ################################################################################ | |
86 | # | |
87 | # FV Section | |
88 | # | |
89 | # [FV] section is used to define what components or modules are placed within a flash | |
90 | # device file. This section also defines order the components and modules are positioned | |
91 | # within the image. The [FV] section consists of define statements, set statements and | |
92 | # module statements. | |
93 | # | |
94 | ################################################################################ | |
95 | ||
96 | [FV.FVMAIN_SEC] | |
97 | FvAlignment = 8 | |
98 | ERASE_POLARITY = 1 | |
99 | MEMORY_MAPPED = TRUE | |
100 | STICKY_WRITE = TRUE | |
101 | LOCK_CAP = TRUE | |
102 | LOCK_STATUS = TRUE | |
103 | WRITE_DISABLED_CAP = TRUE | |
104 | WRITE_ENABLED_CAP = TRUE | |
105 | WRITE_STATUS = TRUE | |
106 | WRITE_LOCK_CAP = TRUE | |
107 | WRITE_LOCK_STATUS = TRUE | |
108 | READ_DISABLED_CAP = TRUE | |
109 | READ_ENABLED_CAP = TRUE | |
110 | READ_STATUS = TRUE | |
111 | READ_LOCK_CAP = TRUE | |
112 | READ_LOCK_STATUS = TRUE | |
113 | ||
114 | INF ArmPlatformPkg/Sec/Sec.inf | |
115 | ||
116 | ||
117 | [FV.FvMain] | |
118 | BlockSize = 0x40 | |
119 | NumBlocks = 0 # This FV gets compressed so make it just big enough | |
120 | FvAlignment = 8 # FV alignment and FV attributes setting. | |
121 | ERASE_POLARITY = 1 | |
122 | MEMORY_MAPPED = TRUE | |
123 | STICKY_WRITE = TRUE | |
124 | LOCK_CAP = TRUE | |
125 | LOCK_STATUS = TRUE | |
126 | WRITE_DISABLED_CAP = TRUE | |
127 | WRITE_ENABLED_CAP = TRUE | |
128 | WRITE_STATUS = TRUE | |
129 | WRITE_LOCK_CAP = TRUE | |
130 | WRITE_LOCK_STATUS = TRUE | |
131 | READ_DISABLED_CAP = TRUE | |
132 | READ_ENABLED_CAP = TRUE | |
133 | READ_STATUS = TRUE | |
134 | READ_LOCK_CAP = TRUE | |
135 | READ_LOCK_STATUS = TRUE | |
136 | ||
137 | INF MdeModulePkg/Core/Dxe/DxeMain.inf | |
138 | ||
139 | # | |
140 | # PI DXE Drivers producing Architectural Protocols (EFI Services) | |
141 | # | |
142 | INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf | |
143 | INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf | |
144 | INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf | |
504d1460 | 145 | INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf |
12fcdcb8 | 146 | INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf |
504d1460 | 147 | INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf |
12fcdcb8 | 148 | INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf |
149 | INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf | |
150 | INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf | |
151 | INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf | |
152 | ||
504d1460 | 153 | # Simple TextIn/TextOut for UEFI Terminal |
154 | INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf | |
155 | ||
12fcdcb8 | 156 | # |
157 | # Semi-hosting filesystem (Required the Hardware Debugger to be connected) | |
158 | # | |
159 | INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf | |
160 | ||
161 | # | |
162 | # FAT filesystem + GPT/MBR partitioning | |
163 | # | |
164 | INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf | |
165 | INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf | |
166 | INF FatPkg/EnhancedFatDxe/Fat.inf | |
167 | INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf | |
168 | ||
169 | # | |
170 | # UEFI application (Shell Embedded Boot Loader) | |
171 | # | |
172 | INF EmbeddedPkg/Ebl/Ebl.inf | |
173 | ||
174 | # | |
175 | # Bds | |
176 | # | |
177 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf | |
178 | INF ArmPlatformPkg/Bds/Bds.inf | |
179 | ||
180 | ||
181 | [FV.FVMAIN_COMPACT] | |
182 | FvAlignment = 8 | |
183 | ERASE_POLARITY = 1 | |
184 | MEMORY_MAPPED = TRUE | |
185 | STICKY_WRITE = TRUE | |
186 | LOCK_CAP = TRUE | |
187 | LOCK_STATUS = TRUE | |
188 | WRITE_DISABLED_CAP = TRUE | |
189 | WRITE_ENABLED_CAP = TRUE | |
190 | WRITE_STATUS = TRUE | |
191 | WRITE_LOCK_CAP = TRUE | |
192 | WRITE_LOCK_STATUS = TRUE | |
193 | READ_DISABLED_CAP = TRUE | |
194 | READ_ENABLED_CAP = TRUE | |
195 | READ_STATUS = TRUE | |
196 | READ_LOCK_CAP = TRUE | |
197 | READ_LOCK_STATUS = TRUE | |
198 | ||
199 | INF ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf | |
200 | INF MdeModulePkg/Core/Pei/PeiMain.inf | |
201 | INF ArmPlatformPkg/PlatformPei/PlatformPeim.inf | |
202 | INF ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf | |
203 | INF ArmPkg/Drivers/CpuPei/CpuPei.inf | |
204 | INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf | |
205 | INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf | |
206 | INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf | |
207 | INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf | |
208 | ||
209 | FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 { | |
210 | SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE { | |
211 | SECTION FV_IMAGE = FVMAIN | |
212 | } | |
213 | } | |
214 | ||
215 | ||
216 | ################################################################################ | |
217 | # | |
218 | # Rules are use with the [FV] section's module INF type to define | |
219 | # how an FFS file is created for a given INF file. The following Rule are the default | |
220 | # rules for the different module type. User can add the customized rules to define the | |
221 | # content of the FFS file. | |
222 | # | |
223 | ################################################################################ | |
224 | ||
225 | ||
226 | ############################################################################ | |
227 | # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section # | |
228 | ############################################################################ | |
229 | # | |
230 | #[Rule.Common.DXE_DRIVER] | |
231 | # FILE DRIVER = $(NAMED_GUID) { | |
232 | # DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex | |
233 | # COMPRESS PI_STD { | |
234 | # GUIDED { | |
235 | # PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
236 | # UI STRING="$(MODULE_NAME)" Optional | |
237 | # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER) | |
238 | # } | |
239 | # } | |
240 | # } | |
241 | # | |
242 | ############################################################################ | |
243 | ||
244 | [Rule.Common.SEC] | |
245 | FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED { | |
246 | TE TE Align = 32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
247 | } | |
248 | ||
249 | [Rule.Common.PEI_CORE] | |
250 | FILE PEI_CORE = $(NAMED_GUID) { | |
251 | TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi | |
252 | UI STRING ="$(MODULE_NAME)" Optional | |
253 | } | |
254 | ||
255 | [Rule.Common.PEIM] | |
256 | FILE PEIM = $(NAMED_GUID) { | |
257 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex | |
258 | TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi | |
259 | UI STRING="$(MODULE_NAME)" Optional | |
260 | } | |
261 | ||
262 | [Rule.Common.PEIM.TIANOCOMPRESSED] | |
263 | FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 { | |
264 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex | |
265 | GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE { | |
266 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
267 | UI STRING="$(MODULE_NAME)" Optional | |
268 | } | |
269 | } | |
270 | ||
271 | [Rule.Common.DXE_CORE] | |
272 | FILE DXE_CORE = $(NAMED_GUID) { | |
273 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
274 | UI STRING="$(MODULE_NAME)" Optional | |
275 | } | |
276 | ||
277 | [Rule.Common.UEFI_DRIVER] | |
278 | FILE DRIVER = $(NAMED_GUID) { | |
279 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex | |
280 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
281 | UI STRING="$(MODULE_NAME)" Optional | |
282 | } | |
283 | ||
284 | [Rule.Common.DXE_DRIVER] | |
285 | FILE DRIVER = $(NAMED_GUID) { | |
286 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex | |
287 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
288 | UI STRING="$(MODULE_NAME)" Optional | |
289 | } | |
290 | ||
291 | [Rule.Common.DXE_RUNTIME_DRIVER] | |
292 | FILE DRIVER = $(NAMED_GUID) { | |
293 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex | |
294 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
295 | UI STRING="$(MODULE_NAME)" Optional | |
296 | } | |
297 | ||
298 | [Rule.Common.UEFI_APPLICATION] | |
299 | FILE APPLICATION = $(NAMED_GUID) { | |
300 | UI STRING ="$(MODULE_NAME)" Optional | |
301 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
302 | } |