blob: 5015266a2551991085b0080d7b62f966f78b9fda [file] [log] [blame]
Harry Liebelf9cec5f2013-07-19 00:07:16 +00001#
Ronald Cron04f1a702015-02-26 10:54:39 +00002# Copyright (c) 2011 - 2015, ARM Limited. All rights reserved.
Harry Liebelf9cec5f2013-07-19 00:07:16 +00003#
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_Foundationv8_EFI]
28BaseAddress = 0xA0000000|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware in RAM (Foundation model has no 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 = 16
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 = 16 # 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
Olivier Martine6c51ea2015-07-06 16:45:13 +0000112FvNameGuid = 6685e0b5-d6bb-4c12-97ef-58bd87112dee
Harry Liebelf9cec5f2013-07-19 00:07:16 +0000113
Ronald Cron04f1a702015-02-26 10:54:39 +0000114 APRIORI DXE {
115 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
116 }
117
Harry Liebelf9cec5f2013-07-19 00:07:16 +0000118 INF MdeModulePkg/Core/Dxe/DxeMain.inf
Ronald Cron04f1a702015-02-26 10:54:39 +0000119 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
Harry Liebelf9cec5f2013-07-19 00:07:16 +0000120
121 #
122 # PI DXE Drivers producing Architectural Protocols (EFI Services)
123 #
124 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
125 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
126 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
127 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
128 INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
129 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
130 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
131 INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
132 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
133 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
134
135 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
136
137 #
138 # Multiple Console IO support
139 #
140 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
141 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
142 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
143 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
144 INF EmbeddedPkg/SerialDxe/SerialDxe.inf
145
Olivier Martin017baa12013-10-29 06:36:34 +0000146 INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
Harry Liebelf9cec5f2013-07-19 00:07:16 +0000147 INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf
148 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
149
150 #
151 # Semi-hosting filesystem
152 #
153 INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
154
155 #
156 # FAT filesystem + GPT/MBR partitioning
157 #
158 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
159 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
160 INF FatBinPkg/EnhancedFatDxe/Fat.inf
161 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
162
163 #
Ronald Cron62d441f2014-08-19 13:22:20 +0000164 # Platform Driver
165 #
166 INF ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmFvpDxe.inf
167 INF OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
168
169 #
Harry Liebelf9cec5f2013-07-19 00:07:16 +0000170 # 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
Olivier Martinf066ab42015-05-05 15:43:48 +0000180 #
181 # FDT installation
182 #
183 # The UEFI driver is at the end of the list of the driver to be dispatched
184 # after the device drivers (eg: Ethernet) to ensure we have support for them.
185 INF EmbeddedPkg/Drivers/FdtPlatformDxe/FdtPlatformDxe.inf
186
Olivier Martin901b4512015-01-06 15:41:59 +0000187 # FV Filesystem
188 INF MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf
Harry Liebelf9cec5f2013-07-19 00:07:16 +0000189
190[FV.FVMAIN_COMPACT]
191FvAlignment = 16
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/Core/DxeIplPeim/DxeIpl.inf
219!endif
220
221 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
222 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
223 SECTION FV_IMAGE = FVMAIN
224 }
225 }
226
227
228################################################################################
229#
230# Rules are use with the [FV] section's module INF type to define
231# how an FFS file is created for a given INF file. The following Rule are the default
232# rules for the different module type. User can add the customized rules to define the
233# content of the FFS file.
234#
235################################################################################
236
237
238############################################################################
239# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
240############################################################################
241#
242#[Rule.Common.DXE_DRIVER]
243# FILE DRIVER = $(NAMED_GUID) {
244# DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
245# COMPRESS PI_STD {
246# GUIDED {
247# PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
248# UI STRING="$(MODULE_NAME)" Optional
249# VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
250# }
251# }
252# }
253#
254############################################################################
255
256[Rule.Common.SEC]
257 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
Olivier Martin6d0ca252014-07-15 09:24:25 +0000258 TE TE Align = 4K $(INF_OUTPUT)/$(MODULE_NAME).efi
Harry Liebelf9cec5f2013-07-19 00:07:16 +0000259 }
260
261[Rule.Common.PEI_CORE]
262 FILE PEI_CORE = $(NAMED_GUID) {
263 TE TE Align = 8 $(INF_OUTPUT)/$(MODULE_NAME).efi
264 UI STRING ="$(MODULE_NAME)" Optional
265 }
266
267[Rule.Common.PEIM]
268 FILE PEIM = $(NAMED_GUID) {
269 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
270 TE TE Align = 8 $(INF_OUTPUT)/$(MODULE_NAME).efi
271 UI STRING="$(MODULE_NAME)" Optional
272 }
273
274[Rule.Common.PEIM.TIANOCOMPRESSED]
275 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
276 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
277 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
278 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
279 UI STRING="$(MODULE_NAME)" Optional
280 }
281 }
282
283[Rule.Common.DXE_CORE]
284 FILE DXE_CORE = $(NAMED_GUID) {
285 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
286 UI STRING="$(MODULE_NAME)" Optional
287 }
288
289[Rule.Common.UEFI_DRIVER]
290 FILE DRIVER = $(NAMED_GUID) {
291 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
292 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
293 UI STRING="$(MODULE_NAME)" Optional
294 }
295
296[Rule.Common.DXE_DRIVER]
297 FILE DRIVER = $(NAMED_GUID) {
298 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
299 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
300 UI STRING="$(MODULE_NAME)" Optional
301 }
302
303[Rule.Common.DXE_RUNTIME_DRIVER]
304 FILE DRIVER = $(NAMED_GUID) {
305 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
306 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
307 UI STRING="$(MODULE_NAME)" Optional
308 }
309
310[Rule.Common.UEFI_APPLICATION]
311 FILE APPLICATION = $(NAMED_GUID) {
312 UI STRING ="$(MODULE_NAME)" Optional
313 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
314 }
315
316[Rule.Common.UEFI_DRIVER.BINARY]
317 FILE DRIVER = $(NAMED_GUID) {
318 DXE_DEPEX DXE_DEPEX Optional |.depex
319 PE32 PE32 |.efi
320 UI STRING="$(MODULE_NAME)" Optional
321 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
322 }
323
324[Rule.Common.UEFI_APPLICATION.BINARY]
325 FILE APPLICATION = $(NAMED_GUID) {
326 PE32 PE32 |.efi
327 UI STRING="$(MODULE_NAME)" Optional
328 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
329 }