1 # FLASH layout file for ARM EB.
3 # Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>
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
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.
14 ################################################################################
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.
26 ################################################################################
30 ####BaseAddress = 0x80208000|gEmbeddedTokenSpaceGuid.PcdEmbeddedFdBaseAddress #The base address of the FLASH Device.
31 BaseAddress = 0x80008000|gEmbeddedTokenSpaceGuid.PcdEmbeddedFdBaseAddress #The base address of the FLASH Device.
32 Size = 0x00080000|gEmbeddedTokenSpaceGuid.PcdEmbeddedFdSize #The size in bytes of the FLASH Device
37 ################################################################################
39 # Following are lists of FD Region layout which correspond to the locations of different
40 # images within the flash device.
42 # Regions must be defined in ascending order and may not overlap.
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:
48 # PcdOffsetCName|PcdSizeCName
49 # RegionType <FV, DATA, or FILE>
51 ################################################################################
53 # 512 bytes of configuration header & 8 bytes of image header
57 gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize
60 ################################################################################
64 # [FV] section is used to define what components or modules are placed within a flash
65 # device file. This section also defines order the components and modules are positioned
66 # within the image. The [FV] section consists of define statements, set statements and
69 ################################################################################
73 NumBlocks = 0 # This FV gets compressed so make it just big enough
74 FvAlignment = 8 # FV alignment and FV attributes setting.
80 WRITE_DISABLED_CAP = TRUE
81 WRITE_ENABLED_CAP = TRUE
84 WRITE_LOCK_STATUS = TRUE
85 READ_DISABLED_CAP = TRUE
86 READ_ENABLED_CAP = TRUE
89 READ_LOCK_STATUS = TRUE
91 INF MdeModulePkg/Core/Dxe/DxeMain.inf
94 # PI DXE Drivers producing Architectural Protocols (EFI Services)
96 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
98 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
99 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
100 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
101 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
102 INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
103 INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
105 INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
107 INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
108 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
109 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
112 # Semi-hosting filesystem
114 INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
117 # FAT filesystem + GPT/MBR partitioning
119 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
120 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
121 INF FatPkg/EnhancedFatDxe/Fat.inf
122 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
125 # UEFI application (Shell Embedded Boot Loader)
127 INF EmbeddedPkg/Ebl/Ebl.inf
133 INF ArmEbPkg/Bds/Bds.inf
143 WRITE_DISABLED_CAP = TRUE
144 WRITE_ENABLED_CAP = TRUE
146 WRITE_LOCK_CAP = TRUE
147 WRITE_LOCK_STATUS = TRUE
148 READ_DISABLED_CAP = TRUE
149 READ_ENABLED_CAP = TRUE
152 READ_LOCK_STATUS = TRUE
154 INF ArmEbPkg/Sec/Sec.inf
156 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
157 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
158 SECTION FV_IMAGE = FVMAIN
163 ################################################################################
165 # Rules are use with the [FV] section's module INF type to define
166 # how an FFS file is created for a given INF file. The following Rule are the default
167 # rules for the different module type. User can add the customized rules to define the
168 # content of the FFS file.
170 ################################################################################
173 ############################################################################
174 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
175 ############################################################################
177 #[Rule.Common.DXE_DRIVER]
178 # FILE DRIVER = $(NAMED_GUID) {
179 # DXE_DEPEX DXE_DEPEX Optional |.depex
183 # UI STRING="$(MODULE_NAME)" Optional
184 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
189 ############################################################################
192 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
193 TE TE Align = 8 |.efi
196 [Rule.Common.PEI_CORE]
197 FILE PEI_CORE = $(NAMED_GUID) {
199 UI STRING ="$(MODULE_NAME)" Optional
203 FILE PEIM = $(NAMED_GUID) {
204 PEI_DEPEX PEI_DEPEX Optional |.depex
206 UI STRING="$(MODULE_NAME)" Optional
209 [Rule.Common.PEIM.TIANOCOMPRESSED]
210 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
211 PEI_DEPEX PEI_DEPEX Optional |.depex
212 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
214 UI STRING="$(MODULE_NAME)" Optional
218 [Rule.Common.DXE_CORE]
219 FILE DXE_CORE = $(NAMED_GUID) {
221 UI STRING="$(MODULE_NAME)" Optional
225 [Rule.Common.UEFI_DRIVER]
226 FILE DRIVER = $(NAMED_GUID) {
227 DXE_DEPEX DXE_DEPEX Optional |.depex
229 UI STRING="$(MODULE_NAME)" Optional
232 [Rule.Common.DXE_DRIVER]
233 FILE DRIVER = $(NAMED_GUID) {
234 DXE_DEPEX DXE_DEPEX Optional |.depex
236 UI STRING="$(MODULE_NAME)" Optional
239 [Rule.Common.DXE_RUNTIME_DRIVER]
240 FILE DRIVER = $(NAMED_GUID) {
241 DXE_DEPEX DXE_DEPEX Optional |.depex
243 UI STRING="$(MODULE_NAME)" Optional
247 [Rule.Common.UEFI_APPLICATION]
248 FILE APPLICATION = $(NAMED_GUID) {
249 UI STRING ="$(MODULE_NAME)" Optional