]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-UniCore.fdf
ArmPlatformPkg/ArmRealViewEb: Added FvSimpleFileSystemDxe
[mirror_edk2.git] / ArmPlatformPkg / ArmRealViewEbPkg / ArmRealViewEb-RTSM-UniCore.fdf
1 # FLASH layout file for ARM RealView EB.
2 #
3 # Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>
4 # Copyright (c) 2011 - 2014, ARM Limited. All rights reserved.
5 #
6 # This program and the accompanying materials
7 # are licensed and made available under the terms and conditions of the BSD License
8 # which accompanies this distribution. The full text of the license may be found at
9 # http://opensource.org/licenses/bsd-license.php
10 #
11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 #
14
15 ################################################################################
16 #
17 # FD Section
18 # The [FD] Section is made up of the definition statements and a
19 # description of what goes into the Flash Device Image. Each FD section
20 # defines one flash "device" image. A flash device image may be one of
21 # the following: Removable media bootable image (like a boot floppy
22 # image,) an Option ROM image (that would be "flashed" into an add-in
23 # card,) a System "Flash" image (that would be burned into a system's
24 # flash) or an Update ("Capsule") image that will be used to update and
25 # existing system flash.
26 #
27 ################################################################################
28
29
30 [FD.ArmRealViewEb_EFI]
31 BaseAddress = 0x40000000|gArmTokenSpaceGuid.PcdFdBaseAddress
32 Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize
33 ErasePolarity = 1
34 BlockSize = 0x00010000
35 NumBlocks = 0x20
36
37 ################################################################################
38 #
39 # Following are lists of FD Region layout which correspond to the locations of different
40 # images within the flash device.
41 #
42 # Regions must be defined in ascending order and may not overlap.
43 #
44 # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
45 # the pipe "|" character, followed by the size of the region, also in hex with the leading
46 # "0x" characters. Like:
47 # Offset|Size
48 # PcdOffsetCName|PcdSizeCName
49 # RegionType <FV, DATA, or FILE>
50 #
51 ################################################################################
52
53 0x00000000|0x00050000
54 gArmTokenSpaceGuid.PcdSecureFvBaseAddress|gArmTokenSpaceGuid.PcdSecureFvSize
55 FV = FVMAIN_SEC
56
57 0x00050000|0x00150000
58 gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
59 FV = FVMAIN_COMPACT
60
61 ################################################################################
62 #
63 # FV Section
64 #
65 # [FV] section is used to define what components or modules are placed within a flash
66 # device file. This section also defines order the components and modules are positioned
67 # within the image. The [FV] section consists of define statements, set statements and
68 # module statements.
69 #
70 ################################################################################
71
72 [FV.FVMAIN_SEC]
73 FvAlignment = 8
74 ERASE_POLARITY = 1
75 MEMORY_MAPPED = TRUE
76 STICKY_WRITE = TRUE
77 LOCK_CAP = TRUE
78 LOCK_STATUS = TRUE
79 WRITE_DISABLED_CAP = TRUE
80 WRITE_ENABLED_CAP = TRUE
81 WRITE_STATUS = TRUE
82 WRITE_LOCK_CAP = TRUE
83 WRITE_LOCK_STATUS = TRUE
84 READ_DISABLED_CAP = TRUE
85 READ_ENABLED_CAP = TRUE
86 READ_STATUS = TRUE
87 READ_LOCK_CAP = TRUE
88 READ_LOCK_STATUS = TRUE
89
90 INF ArmPlatformPkg/Sec/Sec.inf
91
92
93 [FV.FvMain]
94 BlockSize = 0x40
95 NumBlocks = 0 # This FV gets compressed so make it just big enough
96 FvAlignment = 8 # FV alignment and FV attributes setting.
97 ERASE_POLARITY = 1
98 MEMORY_MAPPED = TRUE
99 STICKY_WRITE = TRUE
100 LOCK_CAP = TRUE
101 LOCK_STATUS = TRUE
102 WRITE_DISABLED_CAP = TRUE
103 WRITE_ENABLED_CAP = TRUE
104 WRITE_STATUS = TRUE
105 WRITE_LOCK_CAP = TRUE
106 WRITE_LOCK_STATUS = TRUE
107 READ_DISABLED_CAP = TRUE
108 READ_ENABLED_CAP = TRUE
109 READ_STATUS = TRUE
110 READ_LOCK_CAP = TRUE
111 READ_LOCK_STATUS = TRUE
112
113 INF MdeModulePkg/Core/Dxe/DxeMain.inf
114
115 #
116 # PI DXE Drivers producing Architectural Protocols (EFI Services)
117 #
118 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
119 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
120 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
121 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
122 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
123 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
124 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
125 INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
126 INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
127 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
128 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
129
130 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
131 INF ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
132
133 #
134 # Multiple Console IO support
135 #
136 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
137 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
138 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
139 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
140 INF EmbeddedPkg/SerialDxe/SerialDxe.inf
141
142 INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
143 INF ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf
144
145 INF ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
146
147 #
148 # Semi-hosting filesystem
149 #
150 INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
151
152 #
153 # Multimedia Card Interface
154 #
155 INF EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
156 INF ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
157
158 # FV Filesystem
159 INF MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.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 FatBinPkg/EnhancedFatDxe/Fat.inf
167 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
168
169 #
170 # UEFI application (Shell Embedded Boot Loader)
171 #
172 INF ShellBinPkg/UefiShell/UefiShell.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 !if $(EDK2_SKIP_PEICORE) == 1
200 INF ArmPlatformPkg/PrePi/PeiUniCore.inf
201 !else
202 INF ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
203 INF MdeModulePkg/Core/Pei/PeiMain.inf
204 INF ArmPlatformPkg/PlatformPei/PlatformPeim.inf
205 INF ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
206 INF ArmPkg/Drivers/CpuPei/CpuPei.inf
207 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
208 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
209 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
210 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
211 !endif
212
213 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
214 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
215 SECTION FV_IMAGE = FVMAIN
216 }
217 }
218
219 ################################################################################
220 #
221 # Rules are use with the [FV] section's module INF type to define
222 # how an FFS file is created for a given INF file. The following Rule are the default
223 # rules for the different module type. User can add the customized rules to define the
224 # content of the FFS file.
225 #
226 ################################################################################
227
228
229 ############################################################################
230 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
231 ############################################################################
232 #
233 #[Rule.Common.DXE_DRIVER]
234 # FILE DRIVER = $(NAMED_GUID) {
235 # DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
236 # COMPRESS PI_STD {
237 # GUIDED {
238 # PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
239 # UI STRING="$(MODULE_NAME)" Optional
240 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
241 # }
242 # }
243 # }
244 #
245 ############################################################################
246
247 [Rule.Common.SEC]
248 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
249 TE TE Align = 32 $(INF_OUTPUT)/$(MODULE_NAME).efi
250 }
251
252 [Rule.Common.PEI_CORE]
253 FILE PEI_CORE = $(NAMED_GUID) {
254 TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi
255 UI STRING ="$(MODULE_NAME)" Optional
256 }
257
258 [Rule.Common.PEIM]
259 FILE PEIM = $(NAMED_GUID) {
260 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
261 TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi
262 UI STRING="$(MODULE_NAME)" Optional
263 }
264
265 [Rule.Common.PEIM.TIANOCOMPRESSED]
266 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
267 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
268 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
269 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
270 UI STRING="$(MODULE_NAME)" Optional
271 }
272 }
273
274 [Rule.Common.DXE_CORE]
275 FILE DXE_CORE = $(NAMED_GUID) {
276 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
277 UI STRING="$(MODULE_NAME)" Optional
278 }
279
280 [Rule.Common.UEFI_DRIVER]
281 FILE DRIVER = $(NAMED_GUID) {
282 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
283 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
284 UI STRING="$(MODULE_NAME)" Optional
285 }
286
287 [Rule.Common.DXE_DRIVER]
288 FILE DRIVER = $(NAMED_GUID) {
289 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
290 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
291 UI STRING="$(MODULE_NAME)" Optional
292 }
293
294 [Rule.Common.DXE_RUNTIME_DRIVER]
295 FILE DRIVER = $(NAMED_GUID) {
296 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
297 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
298 UI STRING="$(MODULE_NAME)" Optional
299 }
300
301 [Rule.Common.UEFI_APPLICATION]
302 FILE APPLICATION = $(NAMED_GUID) {
303 UI STRING ="$(MODULE_NAME)" Optional
304 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
305 }
306
307 [Rule.Common.UEFI_DRIVER.BINARY]
308 FILE DRIVER = $(NAMED_GUID) {
309 DXE_DEPEX DXE_DEPEX Optional |.depex
310 PE32 PE32 |.efi
311 UI STRING="$(MODULE_NAME)" Optional
312 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
313 }
314
315 [Rule.Common.UEFI_APPLICATION.BINARY]
316 FILE APPLICATION = $(NAMED_GUID) {
317 PE32 PE32 |.efi
318 UI STRING="$(MODULE_NAME)" Optional
319 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
320 }