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