]>
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 | ||
504d1460 | 27 | [FD.ArmPlatform_EFI] |
12fcdcb8 | 28 | BaseAddress = 0xEC200000|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware in NOR Flash. |
29 | Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device | |
30 | ErasePolarity = 1 | |
31 | ||
32 | # This one is tricky, it must be: BlockSize * NumBlocks = Size | |
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 | |
504d1460 | 53 | gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize |
12fcdcb8 | 54 | FV = FVMAIN_COMPACT |
55 | ||
56 | ||
57 | ################################################################################ | |
58 | # | |
59 | # FV Section | |
60 | # | |
61 | # [FV] section is used to define what components or modules are placed within a flash | |
62 | # device file. This section also defines order the components and modules are positioned | |
63 | # within the image. The [FV] section consists of define statements, set statements and | |
64 | # module statements. | |
65 | # | |
66 | ################################################################################ | |
67 | ||
68 | [FV.FvMain] | |
69 | BlockSize = 0x40 | |
70 | NumBlocks = 0 # This FV gets compressed so make it just big enough | |
71 | FvAlignment = 8 # FV alignment and FV attributes setting. | |
72 | ERASE_POLARITY = 1 | |
73 | MEMORY_MAPPED = TRUE | |
74 | STICKY_WRITE = TRUE | |
75 | LOCK_CAP = TRUE | |
76 | LOCK_STATUS = TRUE | |
77 | WRITE_DISABLED_CAP = TRUE | |
78 | WRITE_ENABLED_CAP = TRUE | |
79 | WRITE_STATUS = TRUE | |
80 | WRITE_LOCK_CAP = TRUE | |
81 | WRITE_LOCK_STATUS = TRUE | |
82 | READ_DISABLED_CAP = TRUE | |
83 | READ_ENABLED_CAP = TRUE | |
84 | READ_STATUS = TRUE | |
85 | READ_LOCK_CAP = TRUE | |
86 | READ_LOCK_STATUS = TRUE | |
87 | ||
88 | INF MdeModulePkg/Core/Dxe/DxeMain.inf | |
89 | ||
90 | # | |
91 | # PI DXE Drivers producing Architectural Protocols (EFI Services) | |
92 | # | |
93 | INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf | |
94 | INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf | |
95 | INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf | |
504d1460 | 96 | INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf |
12fcdcb8 | 97 | INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf |
504d1460 | 98 | INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf |
12fcdcb8 | 99 | INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf |
100 | INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf | |
101 | INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf | |
102 | INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf | |
103 | ||
504d1460 | 104 | # Simple TextIn/TextOut for UEFI Terminal |
105 | INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf | |
106 | ||
12fcdcb8 | 107 | # |
108 | # Semi-hosting filesystem (Required the Hardware Debugger to be connected) | |
109 | # | |
110 | INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf | |
111 | ||
112 | # | |
113 | # FAT filesystem + GPT/MBR partitioning | |
114 | # | |
115 | INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf | |
116 | INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf | |
117 | INF FatPkg/EnhancedFatDxe/Fat.inf | |
118 | INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf | |
119 | ||
120 | # | |
121 | # UEFI application (Shell Embedded Boot Loader) | |
122 | # | |
123 | INF EmbeddedPkg/Ebl/Ebl.inf | |
124 | ||
125 | # | |
126 | # Bds | |
127 | # | |
128 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf | |
129 | INF ArmPlatformPkg/Bds/Bds.inf | |
130 | ||
131 | ||
132 | [FV.FVMAIN_COMPACT] | |
133 | FvAlignment = 8 | |
134 | ERASE_POLARITY = 1 | |
135 | MEMORY_MAPPED = TRUE | |
136 | STICKY_WRITE = TRUE | |
137 | LOCK_CAP = TRUE | |
138 | LOCK_STATUS = TRUE | |
139 | WRITE_DISABLED_CAP = TRUE | |
140 | WRITE_ENABLED_CAP = TRUE | |
141 | WRITE_STATUS = TRUE | |
142 | WRITE_LOCK_CAP = TRUE | |
143 | WRITE_LOCK_STATUS = TRUE | |
144 | READ_DISABLED_CAP = TRUE | |
145 | READ_ENABLED_CAP = TRUE | |
146 | READ_STATUS = TRUE | |
147 | READ_LOCK_CAP = TRUE | |
148 | READ_LOCK_STATUS = TRUE | |
149 | ||
150 | INF ArmPlatformPkg/PrePi/PeiUniCore.inf | |
151 | ||
152 | FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 { | |
153 | SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE { | |
154 | SECTION FV_IMAGE = FVMAIN | |
155 | } | |
156 | } | |
157 | ||
158 | ||
159 | ################################################################################ | |
160 | # | |
161 | # Rules are use with the [FV] section's module INF type to define | |
162 | # how an FFS file is created for a given INF file. The following Rule are the default | |
163 | # rules for the different module type. User can add the customized rules to define the | |
164 | # content of the FFS file. | |
165 | # | |
166 | ################################################################################ | |
167 | ||
168 | ||
169 | ############################################################################ | |
170 | # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section # | |
171 | ############################################################################ | |
172 | # | |
173 | #[Rule.Common.DXE_DRIVER] | |
174 | # FILE DRIVER = $(NAMED_GUID) { | |
175 | # DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex | |
176 | # COMPRESS PI_STD { | |
177 | # GUIDED { | |
178 | # PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
179 | # UI STRING="$(MODULE_NAME)" Optional | |
180 | # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER) | |
181 | # } | |
182 | # } | |
183 | # } | |
184 | # | |
185 | ############################################################################ | |
186 | ||
187 | [Rule.Common.SEC] | |
188 | FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED { | |
189 | TE TE Align = 32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
190 | } | |
191 | ||
192 | [Rule.Common.PEI_CORE] | |
193 | FILE PEI_CORE = $(NAMED_GUID) { | |
194 | TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi | |
195 | UI STRING ="$(MODULE_NAME)" Optional | |
196 | } | |
197 | ||
198 | [Rule.Common.PEIM] | |
199 | FILE PEIM = $(NAMED_GUID) { | |
200 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex | |
201 | TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi | |
202 | UI STRING="$(MODULE_NAME)" Optional | |
203 | } | |
204 | ||
205 | [Rule.Common.PEIM.TIANOCOMPRESSED] | |
206 | FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 { | |
207 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex | |
208 | GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE { | |
209 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
210 | UI STRING="$(MODULE_NAME)" Optional | |
211 | } | |
212 | } | |
213 | ||
214 | [Rule.Common.DXE_CORE] | |
215 | FILE DXE_CORE = $(NAMED_GUID) { | |
216 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
217 | UI STRING="$(MODULE_NAME)" Optional | |
218 | } | |
219 | ||
220 | [Rule.Common.UEFI_DRIVER] | |
221 | FILE DRIVER = $(NAMED_GUID) { | |
222 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex | |
223 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
224 | UI STRING="$(MODULE_NAME)" Optional | |
225 | } | |
226 | ||
227 | [Rule.Common.DXE_DRIVER] | |
228 | FILE DRIVER = $(NAMED_GUID) { | |
229 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex | |
230 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
231 | UI STRING="$(MODULE_NAME)" Optional | |
232 | } | |
233 | ||
234 | [Rule.Common.DXE_RUNTIME_DRIVER] | |
235 | FILE DRIVER = $(NAMED_GUID) { | |
236 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex | |
237 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
238 | UI STRING="$(MODULE_NAME)" Optional | |
239 | } | |
240 | ||
241 | [Rule.Common.UEFI_APPLICATION] | |
242 | FILE APPLICATION = $(NAMED_GUID) { | |
243 | UI STRING ="$(MODULE_NAME)" Optional | |
244 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi | |
245 | } |