blob: 402ee96e1ae1395217771f175dece669800a8469 [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
Ronald Cron0ead5ec2015-07-14 14:32:24 +0000190 # Legacy Linux Loader
191 INF ArmPkg/Application/LinuxLoader/LinuxLoader.inf
192
Harry Liebelf9cec5f2013-07-19 00:07:16 +0000193[FV.FVMAIN_COMPACT]
194FvAlignment = 16
195ERASE_POLARITY = 1
196MEMORY_MAPPED = TRUE
197STICKY_WRITE = TRUE
198LOCK_CAP = TRUE
199LOCK_STATUS = TRUE
200WRITE_DISABLED_CAP = TRUE
201WRITE_ENABLED_CAP = TRUE
202WRITE_STATUS = TRUE
203WRITE_LOCK_CAP = TRUE
204WRITE_LOCK_STATUS = TRUE
205READ_DISABLED_CAP = TRUE
206READ_ENABLED_CAP = TRUE
207READ_STATUS = TRUE
208READ_LOCK_CAP = TRUE
209READ_LOCK_STATUS = TRUE
210
211!if $(EDK2_SKIP_PEICORE) == 1
212 INF ArmPlatformPkg/PrePi/PeiMPCore.inf
213!else
214 INF ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf
215 INF MdeModulePkg/Core/Pei/PeiMain.inf
216 INF ArmPlatformPkg/PlatformPei/PlatformPeim.inf
217 INF ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
218 INF ArmPkg/Drivers/CpuPei/CpuPei.inf
219 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
220 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
221 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
222!endif
223
224 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
225 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
226 SECTION FV_IMAGE = FVMAIN
227 }
228 }
229
230
231################################################################################
232#
233# Rules are use with the [FV] section's module INF type to define
234# how an FFS file is created for a given INF file. The following Rule are the default
235# rules for the different module type. User can add the customized rules to define the
236# content of the FFS file.
237#
238################################################################################
239
240
241############################################################################
242# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
243############################################################################
244#
245#[Rule.Common.DXE_DRIVER]
246# FILE DRIVER = $(NAMED_GUID) {
247# DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
248# COMPRESS PI_STD {
249# GUIDED {
250# PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
251# UI STRING="$(MODULE_NAME)" Optional
252# VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
253# }
254# }
255# }
256#
257############################################################################
258
259[Rule.Common.SEC]
260 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
Olivier Martin6d0ca252014-07-15 09:24:25 +0000261 TE TE Align = 4K $(INF_OUTPUT)/$(MODULE_NAME).efi
Harry Liebelf9cec5f2013-07-19 00:07:16 +0000262 }
263
264[Rule.Common.PEI_CORE]
265 FILE PEI_CORE = $(NAMED_GUID) {
266 TE TE Align = 8 $(INF_OUTPUT)/$(MODULE_NAME).efi
267 UI STRING ="$(MODULE_NAME)" Optional
268 }
269
270[Rule.Common.PEIM]
271 FILE PEIM = $(NAMED_GUID) {
272 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
273 TE TE Align = 8 $(INF_OUTPUT)/$(MODULE_NAME).efi
274 UI STRING="$(MODULE_NAME)" Optional
275 }
276
277[Rule.Common.PEIM.TIANOCOMPRESSED]
278 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
279 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
280 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
281 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
282 UI STRING="$(MODULE_NAME)" Optional
283 }
284 }
285
286[Rule.Common.DXE_CORE]
287 FILE DXE_CORE = $(NAMED_GUID) {
288 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
289 UI STRING="$(MODULE_NAME)" Optional
290 }
291
292[Rule.Common.UEFI_DRIVER]
293 FILE DRIVER = $(NAMED_GUID) {
294 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
295 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
296 UI STRING="$(MODULE_NAME)" Optional
297 }
298
299[Rule.Common.DXE_DRIVER]
300 FILE DRIVER = $(NAMED_GUID) {
301 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
302 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
303 UI STRING="$(MODULE_NAME)" Optional
304 }
305
306[Rule.Common.DXE_RUNTIME_DRIVER]
307 FILE DRIVER = $(NAMED_GUID) {
308 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
309 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
310 UI STRING="$(MODULE_NAME)" Optional
311 }
312
313[Rule.Common.UEFI_APPLICATION]
314 FILE APPLICATION = $(NAMED_GUID) {
315 UI STRING ="$(MODULE_NAME)" Optional
316 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
317 }
318
319[Rule.Common.UEFI_DRIVER.BINARY]
320 FILE DRIVER = $(NAMED_GUID) {
321 DXE_DEPEX DXE_DEPEX Optional |.depex
322 PE32 PE32 |.efi
323 UI STRING="$(MODULE_NAME)" Optional
324 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
325 }
326
327[Rule.Common.UEFI_APPLICATION.BINARY]
328 FILE APPLICATION = $(NAMED_GUID) {
329 PE32 PE32 |.efi
330 UI STRING="$(MODULE_NAME)" Optional
331 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
332 }