]> git.proxmox.com Git - mirror_edk2.git/blame - ArmEbPkg/ArmEbPkg.fdf
Update copyright format
[mirror_edk2.git] / ArmEbPkg / ArmEbPkg.fdf
CommitLineData
b76848cb 1# FLASH layout file for ARM EB.
2#
1a6f1b55 3# Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>
b76848cb 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 = 0x80208000|gEmbeddedTokenSpaceGuid.PcdEmbeddedFdBaseAddress #The base address of the FLASH Device.
31BaseAddress = 0x80008000|gEmbeddedTokenSpaceGuid.PcdEmbeddedFdBaseAddress #The base address of the FLASH Device.
32Size = 0x00080000|gEmbeddedTokenSpaceGuid.PcdEmbeddedFdSize #The size in bytes of the FLASH Device
33ErasePolarity = 1
34BlockSize = 0x40
35NumBlocks = 0x2000
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# 512 bytes of configuration header & 8 bytes of image header
540x00000000|0x00000208
55
560x00000208|0x0007FDF8
57gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize
58FV = FVMAIN_COMPACT
59
60################################################################################
61#
62# FV Section
63#
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
67# module statements.
68#
69################################################################################
70
71[FV.FvMain]
72BlockSize = 0x40
73NumBlocks = 0 # This FV gets compressed so make it just big enough
74FvAlignment = 8 # FV alignment and FV attributes setting.
75ERASE_POLARITY = 1
76MEMORY_MAPPED = TRUE
77STICKY_WRITE = TRUE
78LOCK_CAP = TRUE
79LOCK_STATUS = TRUE
80WRITE_DISABLED_CAP = TRUE
81WRITE_ENABLED_CAP = TRUE
82WRITE_STATUS = TRUE
83WRITE_LOCK_CAP = TRUE
84WRITE_LOCK_STATUS = TRUE
85READ_DISABLED_CAP = TRUE
86READ_ENABLED_CAP = TRUE
87READ_STATUS = TRUE
88READ_LOCK_CAP = TRUE
89READ_LOCK_STATUS = TRUE
90
91 INF MdeModulePkg/Core/Dxe/DxeMain.inf
92
93 #
94 # PI DXE Drivers producing Architectural Protocols (EFI Services)
95 #
96 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
97
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
104
105 INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
106
107 INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
108 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
109 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
110
92032841 111 INF ArmEbPkg/InterruptDxe/InterruptDxe.inf
112 INF ArmEbPkg/TimerDxe/TimerDxe.inf
113
b76848cb 114 #
115 # Semi-hosting filesystem
116 #
117 INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
118
119 #
120 # FAT filesystem + GPT/MBR partitioning
121 #
122 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
123 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
124 INF FatPkg/EnhancedFatDxe/Fat.inf
125 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
126
127 #
128 # UEFI application (Shell Embedded Boot Loader)
129 #
130 INF EmbeddedPkg/Ebl/Ebl.inf
131
132
133 #
134 # Bds
135 #
136 INF ArmEbPkg/Bds/Bds.inf
137
138
139[FV.FVMAIN_COMPACT]
140FvAlignment = 8
141ERASE_POLARITY = 1
142MEMORY_MAPPED = TRUE
143STICKY_WRITE = TRUE
144LOCK_CAP = TRUE
145LOCK_STATUS = TRUE
146WRITE_DISABLED_CAP = TRUE
147WRITE_ENABLED_CAP = TRUE
148WRITE_STATUS = TRUE
149WRITE_LOCK_CAP = TRUE
150WRITE_LOCK_STATUS = TRUE
151READ_DISABLED_CAP = TRUE
152READ_ENABLED_CAP = TRUE
153READ_STATUS = TRUE
154READ_LOCK_CAP = TRUE
155READ_LOCK_STATUS = TRUE
156
157 INF ArmEbPkg/Sec/Sec.inf
158
159 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
160 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
161 SECTION FV_IMAGE = FVMAIN
162 }
163 }
164
165
166################################################################################
167#
168# Rules are use with the [FV] section's module INF type to define
169# how an FFS file is created for a given INF file. The following Rule are the default
170# rules for the different module type. User can add the customized rules to define the
171# content of the FFS file.
172#
173################################################################################
174
175
176############################################################################
177# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
178############################################################################
179#
180#[Rule.Common.DXE_DRIVER]
181# FILE DRIVER = $(NAMED_GUID) {
182# DXE_DEPEX DXE_DEPEX Optional |.depex
183# COMPRESS PI_STD {
184# GUIDED {
185# PE32 PE32 |.efi
186# UI STRING="$(MODULE_NAME)" Optional
187# VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
188# }
189# }
190# }
191#
192############################################################################
193
194[Rule.Common.SEC]
195 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
196 TE TE Align = 8 |.efi
197 }
198
199[Rule.Common.PEI_CORE]
200 FILE PEI_CORE = $(NAMED_GUID) {
201 TE TE |.efi
202 UI STRING ="$(MODULE_NAME)" Optional
203 }
204
205[Rule.Common.PEIM]
206 FILE PEIM = $(NAMED_GUID) {
207 PEI_DEPEX PEI_DEPEX Optional |.depex
208 PE32 PE32 |.efi
209 UI STRING="$(MODULE_NAME)" Optional
210 }
211
212[Rule.Common.PEIM.TIANOCOMPRESSED]
213 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
214 PEI_DEPEX PEI_DEPEX Optional |.depex
215 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
216 PE32 PE32 |.efi
217 UI STRING="$(MODULE_NAME)" Optional
218 }
219 }
220
221[Rule.Common.DXE_CORE]
222 FILE DXE_CORE = $(NAMED_GUID) {
223 PE32 PE32 |.efi
224 UI STRING="$(MODULE_NAME)" Optional
225 }
226
227
228[Rule.Common.UEFI_DRIVER]
229 FILE DRIVER = $(NAMED_GUID) {
230 DXE_DEPEX DXE_DEPEX Optional |.depex
231 PE32 PE32 |.efi
232 UI STRING="$(MODULE_NAME)" Optional
233 }
234
235[Rule.Common.DXE_DRIVER]
236 FILE DRIVER = $(NAMED_GUID) {
237 DXE_DEPEX DXE_DEPEX Optional |.depex
238 PE32 PE32 |.efi
239 UI STRING="$(MODULE_NAME)" Optional
240 }
241
242[Rule.Common.DXE_RUNTIME_DRIVER]
243 FILE DRIVER = $(NAMED_GUID) {
244 DXE_DEPEX DXE_DEPEX Optional |.depex
245 PE32 PE32 |.efi
246 UI STRING="$(MODULE_NAME)" Optional
247 }
248
249
250[Rule.Common.UEFI_APPLICATION]
251 FILE APPLICATION = $(NAMED_GUID) {
252 UI STRING ="$(MODULE_NAME)" Optional
253 PE32 PE32 |.efi
254 }