blob: 368978eb03f20713eb5e40defa1c5fb2da65ce50 [file] [log] [blame]
jljusten49ba9442009-05-27 21:10:18 +00001#/** @file
2# Open Virtual Machine Firmware: FDF
3#
4# Copyright (c) 2006 - 2009, Intel Corporation
5#
6# All rights reserved. This program and the accompanying materials
7# are licensed and made available under the terms and conditions of the BSD License
8# which accompanies this distribution. The full text of the license may be found at
9# http://opensource.org/licenses/bsd-license.php
10#
11# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13#
14#**/
15
16################################################################################
17#
18# FD Section
19# The [FD] Section is made up of the definition statements and a
20# description of what goes into the Flash Device Image. Each FD section
21# defines one flash "device" image. A flash device image may be one of
22# the following: Removable media bootable image (like a boot floppy
23# image,) an Option ROM image (that would be "flashed" into an add-in
24# card,) a System "Flash" image (that would be burned into a system's
25# flash) or an Update ("Capsule") image that will be used to update and
26# existing system flash.
27#
28################################################################################
29[FD.OVMF]
30BaseAddress = 0xFFE00000 # The base address of the FLASH Device.
31Size = 0x00200000 # The size in bytes of the FLASH Device
32ErasePolarity = 1
33BlockSize = 0x10000
34NumBlocks = 0x20
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################################################################################
510x0|0x200000
52gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashFvRecoveryBase|gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashFvRecoverySize
53FV = MAINFV
54
55################################################################################
56#
57# FV Section
58#
59# [FV] section is used to define what components or modules are placed within a flash
60# device file. This section also defines order the components and modules are positioned
61# within the image. The [FV] section consists of define statements, set statements and
62# module statements.
63#
64################################################################################
65[FV.DXEFV]
66BlockSize = 0x1000
67FvAlignment = 16 #FV alignment and FV attributes setting.
68ERASE_POLARITY = 1
69MEMORY_MAPPED = TRUE
70STICKY_WRITE = TRUE
71LOCK_CAP = TRUE
72LOCK_STATUS = TRUE
73WRITE_DISABLED_CAP = TRUE
74WRITE_ENABLED_CAP = TRUE
75WRITE_STATUS = TRUE
76WRITE_LOCK_CAP = TRUE
77WRITE_LOCK_STATUS = TRUE
78READ_DISABLED_CAP = TRUE
79READ_ENABLED_CAP = TRUE
80READ_STATUS = TRUE
81READ_LOCK_CAP = TRUE
82READ_LOCK_STATUS = TRUE
83
84#
85# Files to be placed in DXEFV
86#
87# This firmware volume will have files placed in it uncompressed,
88# and then then entire firmware volume will be compressed in a
89# single compression operation in order to achieve better
90# overall compression.
91#
92
93APRIORI DXE {
94 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
95 INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
96}
97
98#
99# DXE Phase modules
100#
101INF MdeModulePkg/Core/Dxe/DxeMain.inf
102
103INF IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
104INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
105
106INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
107INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
108INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
109INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
110INF PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
111INF UefiCpuPkg/CpuIoDxe/CpuIo.inf
112INF UefiCpuPkg/CpuDxe/CpuDxe.inf
113INF PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
114INF PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
115INF IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
116INF PcAtChipsetPkg/KbcResetDxe/Reset.inf
117INF MdeModulePkg/Universal/Metronome/Metronome.inf
118INF PcAtChipsetPkg/PcRtc/RealTimeClock.inf
119
120INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
121INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
122INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
123INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
124INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
125INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
126INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
127INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
128INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
129INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
130INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
131INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
132INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
133INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
134INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
135INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
136INF PcAtChipsetPkg/Bus/Pci/IdeControllerDxe/IdeControllerDxe.inf
137INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
138INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
139
140INF OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430Dxe.inf
141
142INF PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
143INF IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
144INF IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
145INF IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
146INF IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
147
148INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
149INF MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
150INF RuleOverride=ACPITABLE OvmfPkg/AcpiTables/AcpiTables.inf
151
152INF FatBinPkg/EnhancedFatDxe/Fat.inf
153
154INF EdkShellBinPkg/FullShell/FullShell.inf
155
156FILE FREEFORM = 7BB28B99-61BB-11D5-9A5D-0090273FC14D {
157 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE { # LzmaCompress
158 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
159 }
160 }
161
162################################################################################
163
164[FV.MAINFV]
165FvAlignment = 16
166ERASE_POLARITY = 1
167MEMORY_MAPPED = TRUE
168STICKY_WRITE = TRUE
169LOCK_CAP = TRUE
170LOCK_STATUS = TRUE
171WRITE_DISABLED_CAP = TRUE
172WRITE_ENABLED_CAP = TRUE
173WRITE_STATUS = TRUE
174WRITE_LOCK_CAP = TRUE
175WRITE_LOCK_STATUS = TRUE
176READ_DISABLED_CAP = TRUE
177READ_ENABLED_CAP = TRUE
178READ_STATUS = TRUE
179READ_LOCK_CAP = TRUE
180READ_LOCK_STATUS = TRUE
181
182#
183# Files to be placed in MAINFV
184#
185# This firmware volume will have all the files placed in it which
186# must not be compressed at the initial boot phase. The only
187# exception to this is the compressed 'DXEFV'.
188#
189
190APRIORI PEI {
191 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
192}
193
194#
195# SEC Phase modules
196#
197INF OvmfPkg/Sec/SecMain.inf
198
199#
200# PEI Phase modules
201#
202INF MdeModulePkg/Core/Pei/PeiMain.inf
203INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
204INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
205INF OvmfPkg/PlatformPei/PlatformPei.inf
206INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
207
208#
209# This file contains the compressed 'DXEFV', which is compressed
210# in a single compression operation in order to achieve better
211# overall compression.
212#
213FILE FV_IMAGE = 20bc8ac9-94d1-4208-ab28-5d673fd73486 {
214 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE { # LzmaCompress
215 SECTION FV_IMAGE = DXEFV
216 }
217 }
218
219INF RuleOverride=RESET_VECTOR OvmfPkg/ResetVector/Bin/ResetVector.inf
220
221################################################################################
222#
223# Rules are use with the [FV] section's module INF type to define
224# how an FFS file is created for a given INF file. The following Rule are the default
225# rules for the different module type. User can add the customized rules to define the
226# content of the FFS file.
227#
228################################################################################
229
230[Rule.Common.PEI_CORE]
231 FILE PEI_CORE = $(NAMED_GUID) {
232 PE32 PE32 |.efi
233 UI STRING ="$(MODULE_NAME)" Optional
234 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
235 }
236
237[Rule.Common.SEC]
238 FILE SEC = $(NAMED_GUID) {
239 PE32 PE32 |.efi
240 UI STRING ="$(MODULE_NAME)" Optional
241 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
242 }
243
244[Rule.Common.PEIM]
245 FILE PEIM = $(NAMED_GUID) {
246 PEI_DEPEX PEI_DEPEX Optional |.depex
247 PE32 PE32 |.efi
248 UI STRING="$(MODULE_NAME)" Optional
249 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
250 }
251
252[Rule.Common.PEIM.TIANOCOMPRESSED]
253 FILE PEIM = $(NAMED_GUID) {
254 PEI_DEPEX PEI_DEPEX Optional |.depex
255 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
256 PE32 PE32 |.efi
257 UI STRING="$(MODULE_NAME)" Optional
258 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
259 }
260 }
261
262[Rule.Common.DXE_CORE]
263 FILE DXE_CORE = $(NAMED_GUID) {
264 PE32 PE32 |.efi
265 UI STRING="$(MODULE_NAME)" Optional
266 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
267 }
268
269[Rule.Common.UEFI_DRIVER]
270 FILE DRIVER = $(NAMED_GUID) {
271 DXE_DEPEX DXE_DEPEX Optional |.depex
272 PE32 PE32 |.efi
273 UI STRING="$(MODULE_NAME)" Optional
274 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
275 }
276
277[Rule.Common.DXE_DRIVER]
278 FILE DRIVER = $(NAMED_GUID) {
279 DXE_DEPEX DXE_DEPEX Optional |.depex
280 PE32 PE32 |.efi
281 UI STRING="$(MODULE_NAME)" Optional
282 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
283 }
284
285[Rule.Common.DXE_RUNTIME_DRIVER]
286 FILE DRIVER = $(NAMED_GUID) {
287 DXE_DEPEX DXE_DEPEX Optional |.depex
288 PE32 PE32 |.efi
289 UI STRING="$(MODULE_NAME)" Optional
290 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
291 }
292
293[Rule.Common.UEFI_APPLICATION]
294 FILE APPLICATION = $(NAMED_GUID) {
295 PE32 PE32 |.efi
296 UI STRING="$(MODULE_NAME)" Optional
297 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
298 }
299
300[Rule.Common.DXE_DRIVER.ACPITABLE]
301 FILE FREEFORM = $(NAMED_GUID) {
302 RAW ACPI |.acpi
303 RAW ASL |.aml
304 }
305
306[Rule.Common.SEC.RESET_VECTOR]
307 FILE RAW = $(NAMED_GUID) {
308 RAW RAW |.raw
309 }
310