blob: a46d341e997d8af1d0a8a4985b3f6e553aec83f2 [file] [log] [blame]
Vishal Bhoj82c80712015-12-15 21:13:33 +05301#
2# Copyright (c) 2011-2014, 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
27[FD.RTSM_VE_Cortex-A9_EFI]
28BaseAddress = 0x08000000|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware in NOR Flash.
29Size = 0x00300000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device
30ErasePolarity = 1
31
32# This one is tricky, it must be: BlockSize * NumBlocks = Size
33BlockSize = 0x00001000
34NumBlocks = 0x300
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
520x00000000|0x00080000
53gArmTokenSpaceGuid.PcdSecureFvBaseAddress|gArmTokenSpaceGuid.PcdSecureFvSize
54FV = FVMAIN_SEC
55
560x00080000|0x00280000
57gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
58FV = FVMAIN_COMPACT
59
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]
73FvAlignment = 8
74ERASE_POLARITY = 1
75MEMORY_MAPPED = TRUE
76STICKY_WRITE = TRUE
77LOCK_CAP = TRUE
78LOCK_STATUS = TRUE
79WRITE_DISABLED_CAP = TRUE
80WRITE_ENABLED_CAP = TRUE
81WRITE_STATUS = TRUE
82WRITE_LOCK_CAP = TRUE
83WRITE_LOCK_STATUS = TRUE
84READ_DISABLED_CAP = TRUE
85READ_ENABLED_CAP = TRUE
86READ_STATUS = TRUE
87READ_LOCK_CAP = TRUE
88READ_LOCK_STATUS = TRUE
89
90 INF ArmPlatformPkg/Sec/Sec.inf
91
92
93[FV.FvMain]
94BlockSize = 0x40
95NumBlocks = 0 # This FV gets compressed so make it just big enough
96FvAlignment = 8 # FV alignment and FV attributes setting.
97ERASE_POLARITY = 1
98MEMORY_MAPPED = TRUE
99STICKY_WRITE = TRUE
100LOCK_CAP = TRUE
101LOCK_STATUS = TRUE
102WRITE_DISABLED_CAP = TRUE
103WRITE_ENABLED_CAP = TRUE
104WRITE_STATUS = TRUE
105WRITE_LOCK_CAP = TRUE
106WRITE_LOCK_STATUS = TRUE
107READ_DISABLED_CAP = TRUE
108READ_ENABLED_CAP = TRUE
109READ_STATUS = TRUE
110READ_LOCK_CAP = TRUE
111READ_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/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
122 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
123 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
124 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
125 INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
126 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
127 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
128
129 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
130
131 #
132 # Multiple Console IO support
133 #
134 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
135 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
136 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
137 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
138 INF EmbeddedPkg/SerialDxe/SerialDxe.inf
139
140 INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
141 INF ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf
142 INF ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
143 INF ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
144 INF ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf
145
146 #
147 # Semi-hosting filesystem
148 #
149 INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
150
151 #
152 # Versatile Express FileSystem
153 #
154 INF ArmPlatformPkg/FileSystem/BootMonFs/BootMonFs.inf
155
156 #
157 # FAT filesystem + GPT/MBR partitioning
158 #
159 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
160 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
161 INF FatBinPkg/EnhancedFatDxe/Fat.inf
162 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
163
164 #
165 # Multimedia Card Interface
166 #
167 INF EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
168 INF ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
169
170 #
171 # Platform Driver
172 #
173 INF ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmFvpDxe.inf
174 INF OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
175
176 #
177 # UEFI application (Shell Embedded Boot Loader)
178 #
179 INF ShellBinPkg/UefiShell/UefiShell.inf
180
181 #
182 # Bds
183 #
184 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
185 INF ArmPlatformPkg/Bds/Bds.inf
186
187 # FV Filesystem
188 INF MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf
189
190[FV.FVMAIN_COMPACT]
191FvAlignment = 8
192ERASE_POLARITY = 1
193MEMORY_MAPPED = TRUE
194STICKY_WRITE = TRUE
195LOCK_CAP = TRUE
196LOCK_STATUS = TRUE
197WRITE_DISABLED_CAP = TRUE
198WRITE_ENABLED_CAP = TRUE
199WRITE_STATUS = TRUE
200WRITE_LOCK_CAP = TRUE
201WRITE_LOCK_STATUS = TRUE
202READ_DISABLED_CAP = TRUE
203READ_ENABLED_CAP = TRUE
204READ_STATUS = TRUE
205READ_LOCK_CAP = TRUE
206READ_LOCK_STATUS = TRUE
207
208!if $(EDK2_SKIP_PEICORE) == 1
209 INF ArmPlatformPkg/PrePi/PeiMPCore.inf
210!else
211 INF ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf
212 INF MdeModulePkg/Core/Pei/PeiMain.inf
213 INF ArmPlatformPkg/PlatformPei/PlatformPeim.inf
214 INF ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
215 INF ArmPkg/Drivers/CpuPei/CpuPei.inf
216 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
217 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
218 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
219 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
220!endif
221
222 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
223 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
224 SECTION FV_IMAGE = FVMAIN
225 }
226 }
227
228
229################################################################################
230#
231# Rules are use with the [FV] section's module INF type to define
232# how an FFS file is created for a given INF file. The following Rule are the default
233# rules for the different module type. User can add the customized rules to define the
234# content of the FFS file.
235#
236################################################################################
237
238
239############################################################################
240# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
241############################################################################
242#
243#[Rule.Common.DXE_DRIVER]
244# FILE DRIVER = $(NAMED_GUID) {
245# DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
246# COMPRESS PI_STD {
247# GUIDED {
248# PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
249# UI STRING="$(MODULE_NAME)" Optional
250# VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
251# }
252# }
253# }
254#
255############################################################################
256
257[Rule.Common.SEC]
258 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
259 TE TE Align = 32 $(INF_OUTPUT)/$(MODULE_NAME).efi
260 }
261
262[Rule.Common.PEI_CORE]
263 FILE PEI_CORE = $(NAMED_GUID) {
264 TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi
265 UI STRING ="$(MODULE_NAME)" Optional
266 }
267
268[Rule.Common.PEIM]
269 FILE PEIM = $(NAMED_GUID) {
270 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
271 TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi
272 UI STRING="$(MODULE_NAME)" Optional
273 }
274
275[Rule.Common.PEIM.TIANOCOMPRESSED]
276 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
277 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
278 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
279 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
280 UI STRING="$(MODULE_NAME)" Optional
281 }
282 }
283
284[Rule.Common.DXE_CORE]
285 FILE DXE_CORE = $(NAMED_GUID) {
286 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
287 UI STRING="$(MODULE_NAME)" Optional
288 }
289
290[Rule.Common.UEFI_DRIVER]
291 FILE DRIVER = $(NAMED_GUID) {
292 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
293 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
294 UI STRING="$(MODULE_NAME)" Optional
295 }
296
297[Rule.Common.DXE_DRIVER]
298 FILE DRIVER = $(NAMED_GUID) {
299 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
300 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
301 UI STRING="$(MODULE_NAME)" Optional
302 }
303
304[Rule.Common.DXE_RUNTIME_DRIVER]
305 FILE DRIVER = $(NAMED_GUID) {
306 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
307 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
308 UI STRING="$(MODULE_NAME)" Optional
309 }
310
311[Rule.Common.UEFI_APPLICATION]
312 FILE APPLICATION = $(NAMED_GUID) {
313 UI STRING ="$(MODULE_NAME)" Optional
314 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
315 }
316
317[Rule.Common.UEFI_DRIVER.BINARY]
318 FILE DRIVER = $(NAMED_GUID) {
319 DXE_DEPEX DXE_DEPEX Optional |.depex
320 PE32 PE32 |.efi
321 UI STRING="$(MODULE_NAME)" Optional
322 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
323 }
324
325[Rule.Common.UEFI_APPLICATION.BINARY]
326 FILE APPLICATION = $(NAMED_GUID) {
327 PE32 PE32 |.efi
328 UI STRING="$(MODULE_NAME)" Optional
329 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
330 }