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