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