blob: 97cab4b058f24d5bbf529f6e28010829331e49aa [file] [log] [blame]
Ard Biesheuvel22455082015-02-28 20:34:36 +00001#
Olivier Martin7fbd1eb2015-05-29 13:50:43 +00002# Copyright (c) 2011-2015, ARM Limited. All rights reserved.
Ard Biesheuvel22455082015-02-28 20:34:36 +00003# Copyright (c) 2014, Linaro Limited. All rights reserved.
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[FD.XEN_EFI]
29BaseAddress = 0x00000000|gArmTokenSpaceGuid.PcdFdBaseAddress
30Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize
31ErasePolarity = 1
32
33# This one is tricky, it must be: BlockSize * NumBlocks = Size
34BlockSize = 0x00001000
35NumBlocks = 0x200
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#
54# Implement the Linux kernel header layout so that the Xen loader will identify
55# it as something bootable, and execute it with a FDT pointer in x0. This area
56# will be reused to store a copy of the FDT so round it up to 8 KB.
57#
580x00000000|0x00002000
59DATA = {
60 0x01, 0x00, 0x00, 0x10, # code0: adr x1, .
61 0xff, 0x07, 0x00, 0x14, # code1: b 0x2000
62 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, # text_offset: 512 KB
63 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, # image_size: 2 MB
64 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # flags
65 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # res2
66 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # res3
67 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # res4
68 0x41, 0x52, 0x4d, 0x64, # magic: "ARM\x64"
69 0x00, 0x00, 0x00, 0x00 # res5
70}
71
720x00002000|0x001fe000
73gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
74FV = FVMAIN_COMPACT
75
76
77################################################################################
78#
79# FV Section
80#
81# [FV] section is used to define what components or modules are placed within a flash
82# device file. This section also defines order the components and modules are positioned
83# within the image. The [FV] section consists of define statements, set statements and
84# module statements.
85#
86################################################################################
87
88[FV.FvMain]
89BlockSize = 0x40
90NumBlocks = 0 # This FV gets compressed so make it just big enough
91FvAlignment = 16 # FV alignment and FV attributes setting.
92ERASE_POLARITY = 1
93MEMORY_MAPPED = TRUE
94STICKY_WRITE = TRUE
95LOCK_CAP = TRUE
96LOCK_STATUS = TRUE
97WRITE_DISABLED_CAP = TRUE
98WRITE_ENABLED_CAP = TRUE
99WRITE_STATUS = TRUE
100WRITE_LOCK_CAP = TRUE
101WRITE_LOCK_STATUS = TRUE
102READ_DISABLED_CAP = TRUE
103READ_ENABLED_CAP = TRUE
104READ_STATUS = TRUE
105READ_LOCK_CAP = TRUE
106READ_LOCK_STATUS = TRUE
107
108 APRIORI DXE {
109 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
Olivier Martin7fbd1eb2015-05-29 13:50:43 +0000110 INF ArmVirtPkg/VirtFdtDxe/VirtFdtDxe.inf
Ard Biesheuvel22455082015-02-28 20:34:36 +0000111 }
112 INF MdeModulePkg/Core/Dxe/DxeMain.inf
113 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
Olivier Martin7fbd1eb2015-05-29 13:50:43 +0000114 INF ArmVirtPkg/VirtFdtDxe/VirtFdtDxe.inf
Ard Biesheuvel22455082015-02-28 20:34:36 +0000115
116 #
117 # PI DXE Drivers producing Architectural Protocols (EFI Services)
118 #
119 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
120 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
121 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
122 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
123
124 INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
125
126 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
127 INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
128 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
129 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
130 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
131
132 #
133 # Multiple Console IO support
134 #
135 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
136 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
137 INF EmbeddedPkg/SerialDxe/SerialDxe.inf
138
139 INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
140 INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf
141 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
142
143 #
144 # FAT filesystem + GPT/MBR partitioning
145 #
146 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
147 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
148 INF FatBinPkg/EnhancedFatDxe/Fat.inf
149 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
150
151 #
152 # UEFI application (Shell Embedded Boot Loader)
153 #
Laszlo Ersekda1ce6f2015-03-16 19:56:54 +0000154 INF ShellPkg/Application/Shell/Shell.inf
Ard Biesheuvel22455082015-02-28 20:34:36 +0000155
156 #
157 # Bds
158 #
159 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
160 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
161 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
162 INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
163
164 INF OvmfPkg/XenBusDxe/XenBusDxe.inf
165 INF OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
166
167[FV.FVMAIN_COMPACT]
168FvAlignment = 16
169ERASE_POLARITY = 1
170MEMORY_MAPPED = TRUE
171STICKY_WRITE = TRUE
172LOCK_CAP = TRUE
173LOCK_STATUS = TRUE
174WRITE_DISABLED_CAP = TRUE
175WRITE_ENABLED_CAP = TRUE
176WRITE_STATUS = TRUE
177WRITE_LOCK_CAP = TRUE
178WRITE_LOCK_STATUS = TRUE
179READ_DISABLED_CAP = TRUE
180READ_ENABLED_CAP = TRUE
181READ_STATUS = TRUE
182READ_LOCK_CAP = TRUE
183READ_LOCK_STATUS = TRUE
184
Olivier Martin7fbd1eb2015-05-29 13:50:43 +0000185 INF ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf
Ard Biesheuvel22455082015-02-28 20:34:36 +0000186
187 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
188 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
189 SECTION FV_IMAGE = FVMAIN
190 }
191 }
192
193
194################################################################################
195#
196# Rules are use with the [FV] section's module INF type to define
197# how an FFS file is created for a given INF file. The following Rule are the default
198# rules for the different module type. User can add the customized rules to define the
199# content of the FFS file.
200#
201################################################################################
202
203
204############################################################################
205# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
206############################################################################
207#
208#[Rule.Common.DXE_DRIVER]
209# FILE DRIVER = $(NAMED_GUID) {
210# DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
211# COMPRESS PI_STD {
212# GUIDED {
213# PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
214# UI STRING="$(MODULE_NAME)" Optional
215# VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
216# }
217# }
218# }
219#
220############################################################################
221
222[Rule.Common.SEC]
Ard Biesheuvel7669f732015-07-31 08:24:18 +0000223 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED FIXED {
224 TE TE Align = Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
Ard Biesheuvel22455082015-02-28 20:34:36 +0000225 }
226
227[Rule.Common.PEI_CORE]
Ard Biesheuvel7669f732015-07-31 08:24:18 +0000228 FILE PEI_CORE = $(NAMED_GUID) FIXED {
229 TE TE Align = Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
Ard Biesheuvel22455082015-02-28 20:34:36 +0000230 UI STRING ="$(MODULE_NAME)" Optional
231 }
232
233[Rule.Common.PEIM]
Ard Biesheuvel7669f732015-07-31 08:24:18 +0000234 FILE PEIM = $(NAMED_GUID) FIXED {
Ard Biesheuvel22455082015-02-28 20:34:36 +0000235 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
Ard Biesheuvel7669f732015-07-31 08:24:18 +0000236 TE TE Align = Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
Ard Biesheuvel22455082015-02-28 20:34:36 +0000237 UI STRING="$(MODULE_NAME)" Optional
238 }
239
240[Rule.Common.PEIM.TIANOCOMPRESSED]
241 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
242 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
243 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
244 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
245 UI STRING="$(MODULE_NAME)" Optional
246 }
247 }
248
249[Rule.Common.DXE_CORE]
250 FILE DXE_CORE = $(NAMED_GUID) {
251 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
252 UI STRING="$(MODULE_NAME)" Optional
253 }
254
255[Rule.Common.UEFI_DRIVER]
256 FILE DRIVER = $(NAMED_GUID) {
257 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
258 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
259 UI STRING="$(MODULE_NAME)" Optional
260 }
261
262[Rule.Common.DXE_DRIVER]
263 FILE DRIVER = $(NAMED_GUID) {
264 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
265 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
266 UI STRING="$(MODULE_NAME)" Optional
267 }
268
269[Rule.Common.DXE_RUNTIME_DRIVER]
270 FILE DRIVER = $(NAMED_GUID) {
271 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
272 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
273 UI STRING="$(MODULE_NAME)" Optional
274 }
275
276[Rule.Common.UEFI_APPLICATION]
277 FILE APPLICATION = $(NAMED_GUID) {
278 UI STRING ="$(MODULE_NAME)" Optional
279 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
280 }
281
282[Rule.Common.UEFI_DRIVER.BINARY]
283 FILE DRIVER = $(NAMED_GUID) {
284 DXE_DEPEX DXE_DEPEX Optional |.depex
285 PE32 PE32 |.efi
286 UI STRING="$(MODULE_NAME)" Optional
287 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
288 }
289
290[Rule.Common.UEFI_APPLICATION.BINARY]
291 FILE APPLICATION = $(NAMED_GUID) {
292 PE32 PE32 |.efi
293 UI STRING="$(MODULE_NAME)" Optional
294 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
295 }
296
297[Rule.Common.USER_DEFINED.ACPITABLE]
298 FILE FREEFORM = $(NAMED_GUID) {
299 RAW ACPI |.acpi
300 RAW ASL |.aml
301 UI STRING="$(MODULE_NAME)" Optional
302 }