]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/ArmPlatformPkg.fdf
Update applications to display correct error for gethostbyaddr and gethostbyname...
[mirror_edk2.git] / ArmPlatformPkg / ArmPlatformPkg.fdf
CommitLineData
12fcdcb8 1#
2# Copyright (c) 2011, 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.Sec_ArmPlatform_EFI]
28BaseAddress = 0xEC000000|gArmTokenSpaceGuid.PcdSecureFdBaseAddress #The base address of the Secure FLASH Device.
29Size = 0x00010000|gArmTokenSpaceGuid.PcdSecureFdSize #The size in bytes of the Secure FLASH Device
30ErasePolarity = 1
31BlockSize = 0x00001000
32NumBlocks = 0x10
33
34################################################################################
35#
36# Following are lists of FD Region layout which correspond to the locations of different
37# images within the flash device.
38#
39# Regions must be defined in ascending order and may not overlap.
40#
41# A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
42# the pipe "|" character, followed by the size of the region, also in hex with the leading
43# "0x" characters. Like:
44# Offset|Size
45# PcdOffsetCName|PcdSizeCName
46# RegionType <FV, DATA, or FILE>
47#
48################################################################################
49
500x00000000|0x00010000
51gArmTokenSpaceGuid.PcdSecureFvBaseAddress|gArmTokenSpaceGuid.PcdSecureFvBaseSize
52FV = FVMAIN_SEC
53
54
55[FD.Tuscan_EFI]
56BaseAddress = 0xEC200000|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware in NOR Flash.
57Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device
58ErasePolarity = 1
59
60# This one is tricky, it must be: BlockSize * NumBlocks = Size
61BlockSize = 0x00001000
62NumBlocks = 0x200
63
64################################################################################
65#
66# Following are lists of FD Region layout which correspond to the locations of different
67# images within the flash device.
68#
69# Regions must be defined in ascending order and may not overlap.
70#
71# A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
72# the pipe "|" character, followed by the size of the region, also in hex with the leading
73# "0x" characters. Like:
74# Offset|Size
75# PcdOffsetCName|PcdSizeCName
76# RegionType <FV, DATA, or FILE>
77#
78################################################################################
79
800x00000000|0x00200000
81gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvBaseSize
82FV = FVMAIN_COMPACT
83
84
85################################################################################
86#
87# FV Section
88#
89# [FV] section is used to define what components or modules are placed within a flash
90# device file. This section also defines order the components and modules are positioned
91# within the image. The [FV] section consists of define statements, set statements and
92# module statements.
93#
94################################################################################
95
96[FV.FVMAIN_SEC]
97FvAlignment = 8
98ERASE_POLARITY = 1
99MEMORY_MAPPED = TRUE
100STICKY_WRITE = TRUE
101LOCK_CAP = TRUE
102LOCK_STATUS = TRUE
103WRITE_DISABLED_CAP = TRUE
104WRITE_ENABLED_CAP = TRUE
105WRITE_STATUS = TRUE
106WRITE_LOCK_CAP = TRUE
107WRITE_LOCK_STATUS = TRUE
108READ_DISABLED_CAP = TRUE
109READ_ENABLED_CAP = TRUE
110READ_STATUS = TRUE
111READ_LOCK_CAP = TRUE
112READ_LOCK_STATUS = TRUE
113
114 INF ArmPlatformPkg/Sec/Sec.inf
115
116
117[FV.FvMain]
118BlockSize = 0x40
119NumBlocks = 0 # This FV gets compressed so make it just big enough
120FvAlignment = 8 # FV alignment and FV attributes setting.
121ERASE_POLARITY = 1
122MEMORY_MAPPED = TRUE
123STICKY_WRITE = TRUE
124LOCK_CAP = TRUE
125LOCK_STATUS = TRUE
126WRITE_DISABLED_CAP = TRUE
127WRITE_ENABLED_CAP = TRUE
128WRITE_STATUS = TRUE
129WRITE_LOCK_CAP = TRUE
130WRITE_LOCK_STATUS = TRUE
131READ_DISABLED_CAP = TRUE
132READ_ENABLED_CAP = TRUE
133READ_STATUS = TRUE
134READ_LOCK_CAP = TRUE
135READ_LOCK_STATUS = TRUE
136
137 INF MdeModulePkg/Core/Dxe/DxeMain.inf
138
139 #
140 # PI DXE Drivers producing Architectural Protocols (EFI Services)
141 #
142 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
143 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
144 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
145 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
146 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
147 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
148 INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
149 INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
150 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
151 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
152
153 #
154 # Semi-hosting filesystem (Required the Hardware Debugger to be connected)
155 #
156 INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
157
158 #
159 # FAT filesystem + GPT/MBR partitioning
160 #
161 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
162 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
163 INF FatPkg/EnhancedFatDxe/Fat.inf
164 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
165
166 #
167 # UEFI application (Shell Embedded Boot Loader)
168 #
169 INF EmbeddedPkg/Ebl/Ebl.inf
170
171 #
172 # Bds
173 #
174 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
175 INF ArmPlatformPkg/Bds/Bds.inf
176
177
178[FV.FVMAIN_COMPACT]
179FvAlignment = 8
180ERASE_POLARITY = 1
181MEMORY_MAPPED = TRUE
182STICKY_WRITE = TRUE
183LOCK_CAP = TRUE
184LOCK_STATUS = TRUE
185WRITE_DISABLED_CAP = TRUE
186WRITE_ENABLED_CAP = TRUE
187WRITE_STATUS = TRUE
188WRITE_LOCK_CAP = TRUE
189WRITE_LOCK_STATUS = TRUE
190READ_DISABLED_CAP = TRUE
191READ_ENABLED_CAP = TRUE
192READ_STATUS = TRUE
193READ_LOCK_CAP = TRUE
194READ_LOCK_STATUS = TRUE
195
196 INF ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
197 INF MdeModulePkg/Core/Pei/PeiMain.inf
198 INF ArmPlatformPkg/PlatformPei/PlatformPeim.inf
199 INF ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
200 INF ArmPkg/Drivers/CpuPei/CpuPei.inf
201 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
202 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
203 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
204 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
205
206 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
207 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
208 SECTION FV_IMAGE = FVMAIN
209 }
210 }
211
212
213################################################################################
214#
215# Rules are use with the [FV] section's module INF type to define
216# how an FFS file is created for a given INF file. The following Rule are the default
217# rules for the different module type. User can add the customized rules to define the
218# content of the FFS file.
219#
220################################################################################
221
222
223############################################################################
224# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
225############################################################################
226#
227#[Rule.Common.DXE_DRIVER]
228# FILE DRIVER = $(NAMED_GUID) {
229# DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
230# COMPRESS PI_STD {
231# GUIDED {
232# PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
233# UI STRING="$(MODULE_NAME)" Optional
234# VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
235# }
236# }
237# }
238#
239############################################################################
240
241[Rule.Common.SEC]
242 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
243 TE TE Align = 32 $(INF_OUTPUT)/$(MODULE_NAME).efi
244 }
245
246[Rule.Common.PEI_CORE]
247 FILE PEI_CORE = $(NAMED_GUID) {
248 TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi
249 UI STRING ="$(MODULE_NAME)" Optional
250 }
251
252[Rule.Common.PEIM]
253 FILE PEIM = $(NAMED_GUID) {
254 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
255 TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi
256 UI STRING="$(MODULE_NAME)" Optional
257 }
258
259[Rule.Common.PEIM.TIANOCOMPRESSED]
260 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
261 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
262 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
263 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
264 UI STRING="$(MODULE_NAME)" Optional
265 }
266 }
267
268[Rule.Common.DXE_CORE]
269 FILE DXE_CORE = $(NAMED_GUID) {
270 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
271 UI STRING="$(MODULE_NAME)" Optional
272 }
273
274[Rule.Common.UEFI_DRIVER]
275 FILE DRIVER = $(NAMED_GUID) {
276 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
277 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
278 UI STRING="$(MODULE_NAME)" Optional
279 }
280
281[Rule.Common.DXE_DRIVER]
282 FILE DRIVER = $(NAMED_GUID) {
283 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
284 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
285 UI STRING="$(MODULE_NAME)" Optional
286 }
287
288[Rule.Common.DXE_RUNTIME_DRIVER]
289 FILE DRIVER = $(NAMED_GUID) {
290 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
291 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
292 UI STRING="$(MODULE_NAME)" Optional
293 }
294
295[Rule.Common.UEFI_APPLICATION]
296 FILE APPLICATION = $(NAMED_GUID) {
297 UI STRING ="$(MODULE_NAME)" Optional
298 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
299 }