VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxPkgOSE.fdf@ 31903

Last change on this file since 31903 was 29123, checked in by vboxsync, 15 years ago

EFI: OSE modules/libraries sync.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 13.5 KB
Line 
1# $Id: VBoxPkgOSE.fdf 29123 2010-05-06 09:15:44Z vboxsync $
2## @file
3# VBoxPkg.fdf - VirtualBox Flash Device.
4#
5
6
7#
8# Copyright (C) 2009-2010 Sun Microsystems, Inc.
9#
10# This file is part of VirtualBox Open Source Edition (OSE), as
11# available from http://www.virtualbox.org. This file is free software;
12# you can redistribute it and/or modify it under the terms of the GNU
13# General Public License (GPL) as published by the Free Software
14# Foundation, in version 2 as it comes in the "COPYING" file of the
15# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17#
18# The contents of this file may alternatively be used under the terms
19# of the Common Development and Distribution License Version 1.0
20# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
21# VirtualBox OSE distribution, in which case the provisions of the
22# CDDL are applicable instead of those of the GPL.
23#
24# You may elect to license modified versions of this file under the
25# terms and conditions of either the GPL or the CDDL or both.
26#
27# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
28# Clara, CA 95054 USA or visit http://www.sun.com if you need
29# additional information or have any questions.
30#
31
32
33# --------------------------------------------------------------------
34# This file is based on: Ovmf/Ovmf.fdf
35#
36# Open Virtual Machine Firmware: FDF
37#
38# Copyright (c) 2006 - 2009, Intel Corporation
39#
40# All rights reserved. This program and the accompanying materials
41# are licensed and made available under the terms and conditions of the BSD License
42# which accompanies this distribution. The full text of the license may be found at
43# http://opensource.org/licenses/bsd-license.php
44#
45# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
46# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
47#
48#
49
50################################################################################
51#
52# FD Section
53# The [FD] Section is made up of the definition statements and a
54# description of what goes into the Flash Device Image. Each FD section
55# defines one flash "device" image. A flash device image may be one of
56# the following: Removable media bootable image (like a boot floppy
57# image,) an Option ROM image (that would be "flashed" into an add-in
58# card,) a System "Flash" image (that would be burned into a system's
59# flash) or an Update ("Capsule") image that will be used to update and
60# existing system flash.
61#
62################################################################################
63[FD.VBOX]
64BaseAddress = 0xFFE00000 # The base address of the FLASH Device.
65Size = 0x001f0000 # The size in bytes of the FLASH Device
66ErasePolarity = 1
67BlockSize = 0x10000
68NumBlocks = 0x1f
69
70################################################################################
71#
72# Following are lists of FD Region layout which correspond to the locations of different
73# images within the flash device.
74#
75# Regions must be defined in ascending order and may not overlap.
76#
77# A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
78# the pipe "|" character, followed by the size of the region, also in hex with the leading
79# "0x" characters. Like:
80# Offset|Size
81# PcdOffsetCName|PcdSizeCName
82# RegionType <FV, DATA, or FILE>
83#
84################################################################################
850x0|0x1F0000
86gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashFvRecoveryBase|gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashFvRecoverySize
87FV = MAINFV
88
89################################################################################
90#
91# FV Section
92#
93# [FV] section is used to define what components or modules are placed within a flash
94# device file. This section also defines order the components and modules are positioned
95# within the image. The [FV] section consists of define statements, set statements and
96# module statements.
97#
98################################################################################
99[FV.DXEFV]
100BlockSize = 0x1000
101FvAlignment = 16 #FV alignment and FV attributes setting.
102ERASE_POLARITY = 1
103MEMORY_MAPPED = TRUE
104STICKY_WRITE = TRUE
105LOCK_CAP = TRUE
106LOCK_STATUS = TRUE
107WRITE_DISABLED_CAP = TRUE
108WRITE_ENABLED_CAP = TRUE
109WRITE_STATUS = TRUE
110WRITE_LOCK_CAP = TRUE
111WRITE_LOCK_STATUS = TRUE
112READ_DISABLED_CAP = TRUE
113READ_ENABLED_CAP = TRUE
114READ_STATUS = TRUE
115READ_LOCK_CAP = TRUE
116READ_LOCK_STATUS = TRUE
117
118#
119# Files to be placed in DXEFV
120#
121# This firmware volume will have files placed in it uncompressed,
122# and then then entire firmware volume will be compressed in a
123# single compression operation in order to achieve better
124# overall compression.
125#
126
127APRIORI DXE {
128 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
129 INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
130}
131
132#
133# DXE Phase modules
134#
135INF MdeModulePkg/Core/Dxe/DxeMain.inf
136
137INF IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
138INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
139
140INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
141INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
142INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
143INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
144INF PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
145INF UefiCpuPkg/CpuIoDxe/CpuIo.inf
146INF UefiCpuPkg/CpuDxe/CpuDxe.inf
147INF PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
148INF PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
149INF IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
150INF PcAtChipsetPkg/KbcResetDxe/Reset.inf
151INF MdeModulePkg/Universal/Metronome/Metronome.inf
152INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
153#INF PcAtChipsetPkg/PcRtc/RealTimeClock.inf
154
155INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
156INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
157INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
158INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
159INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
160INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
161INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
162INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
163INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
164INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
165INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
166INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
167INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
168INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
169INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
170INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
171#INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
172#INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
173INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
174INF PcAtChipsetPkg/Bus/Pci/IdeControllerDxe/IdeControllerDxe.inf
175INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
176INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
177
178# VBOX
179INF VBoxPkg/VBoxFsDxe/VBoxIso9660.inf
180INF VBoxPkg/VBoxFsDxe/VBoxHfs.inf
181INF VBoxPkg/VBoxVgaMiniPortDxe/VBoxVgaMiniPortDxe.inf
182INF VBoxPkg/VBoxVgaDxe/VBoxVgaDxe.inf
183INF VBoxPkg/VBoxSysTables/VBoxSysTables.inf
184INF VBoxPkg/VBoxAppleSim/VBoxAppleSim.inf
185INF VBoxPkg/VBoxConsoleDxe/VBoxConsoleDxe.inf
186#INF RuleOverride=ACPITABLE VBoxPkg/AcpiTables/AcpiTables.inf
187#INF VBoxPkg/VBoxInterceptorDxe/VBoxInterceptorDxe.inf
188# VBOX end
189#INF IntelFrameworkModulePkg/Universal/Console/VgaClassDxe/VgaClassDxe.inf
190
191INF PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
192INF IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
193INF IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
194INF IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
195INF IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
196
197INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
198INF MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
199
200INF FatBinPkg/EnhancedFatDxe/Fat.inf
201INF EdkShellBinPkg/FullShell/FullShell.inf
202#FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {
203# SECTION PE32 = FatBinPkg/EnhancedFatDxe/Ia32/Fat.efi
204# }
205#
206#FILE APPLICATION = c57ad6b7-0515-40a8-9d21-551652854e37 {
207# SECTION COMPRESS PI_STD {
208# SECTION GUIDED {
209# SECTION PE32 = EdkShellBinPkg/FullShell/Ia32/Shell_Full.efi
210# }
211# }
212# }
213
214#FILE FREEFORM = 7BB28B99-61BB-11D5-9A5D-0090273FC14D {
215# SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE { # LzmaCompress
216# # OSE build should use VBoxOSELogo/ose_logo.bmp
217# #SECTION RAW = VBoxPkg/VBoxPUELLogo/puel_logo.bmp
218# }
219# }
220
221################################################################################
222
223[FV.MAINFV]
224FvAlignment = 16
225ERASE_POLARITY = 1
226MEMORY_MAPPED = TRUE
227STICKY_WRITE = TRUE
228LOCK_CAP = TRUE
229LOCK_STATUS = TRUE
230WRITE_DISABLED_CAP = TRUE
231WRITE_ENABLED_CAP = TRUE
232WRITE_STATUS = TRUE
233WRITE_LOCK_CAP = TRUE
234WRITE_LOCK_STATUS = TRUE
235READ_DISABLED_CAP = TRUE
236READ_ENABLED_CAP = TRUE
237READ_STATUS = TRUE
238READ_LOCK_CAP = TRUE
239READ_LOCK_STATUS = TRUE
240
241#
242# Files to be placed in MAINFV
243#
244# This firmware volume will have all the files placed in it which
245# must not be compressed at the initial boot phase. The only
246# exception to this is the compressed 'DXEFV'.
247#
248
249APRIORI PEI {
250 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
251}
252
253#
254# SEC Phase modules
255#
256INF OvmfPkg/Sec/SecMain.inf
257#INF VBoxPkg/VBoxSec/VBoxSec.inf
258
259#
260# PEI Phase modules
261#
262INF MdeModulePkg/Core/Pei/PeiMain.inf
263INF RuleOverride=NORELOC MdeModulePkg/Universal/PCD/Pei/Pcd.inf
264INF RuleOverride=NORELOC IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
265INF RuleOverride=NORELOC OvmfPkg/PlatformPei/PlatformPei.inf
266INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
267
268#
269# This file contains the compressed 'DXEFV', which is compressed
270# in a single compression operation in order to achieve better
271# overall compression.
272#
273FILE FV_IMAGE = 20bc8ac9-94d1-4208-ab28-5d673fd73486 {
274 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE { # LzmaCompress
275 SECTION FV_IMAGE = DXEFV
276 }
277 }
278
279#INF RuleOverride=RESET_VECTOR OvmfPkg/ResetVector/Bin/ResetVector.inf
280
281################################################################################
282#
283# Rules are use with the [FV] section's module INF type to define
284# how an FFS file is created for a given INF file. The following Rule are the default
285# rules for the different module type. User can add the customized rules to define the
286# content of the FFS file.
287#
288################################################################################
289
290[Rule.Common.PEI_CORE]
291 FILE PEI_CORE = $(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.SEC]
298 FILE SEC = $(NAMED_GUID) {
299 PE32 PE32 |.efi
300 UI STRING ="$(MODULE_NAME)" Optional
301 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
302 }
303
304[Rule.Common.PEIM]
305 FILE PEIM = $(NAMED_GUID) {
306 PEI_DEPEX PEI_DEPEX Optional |.depex
307 PE32 PE32 Align=32 |.efi
308 UI STRING="$(MODULE_NAME)" Optional
309 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
310 }
311
312[Rule.Common.PEIM.NORELOC]
313 FILE PEIM = $(NAMED_GUID) RELOCS_STRIPPED {
314 PEI_DEPEX PEI_DEPEX Optional |.depex
315 TE TE |.efi
316 UI STRING="$(MODULE_NAME)" Optional
317 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
318 }
319[Rule.Common.PEIM.TIANOCOMPRESSED]
320 FILE PEIM = $(NAMED_GUID) {
321 PEI_DEPEX PEI_DEPEX Optional |.depex
322 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
323 PE32 PE32 |.efi
324 UI STRING="$(MODULE_NAME)" Optional
325 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
326 }
327 }
328
329[Rule.Common.DXE_CORE]
330 FILE DXE_CORE = $(NAMED_GUID) {
331 PE32 PE32 |.efi
332 UI STRING="$(MODULE_NAME)" Optional
333 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
334 }
335
336[Rule.Common.UEFI_DRIVER]
337 FILE DRIVER = $(NAMED_GUID) {
338 DXE_DEPEX DXE_DEPEX Optional |.depex
339 PE32 PE32 |.efi
340 UI STRING="$(MODULE_NAME)" Optional
341 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
342 }
343
344[Rule.Common.DXE_DRIVER]
345 FILE DRIVER = $(NAMED_GUID) {
346 DXE_DEPEX DXE_DEPEX Optional |.depex
347 PE32 PE32 |.efi
348 UI STRING="$(MODULE_NAME)" Optional
349 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
350 }
351
352[Rule.Common.DXE_RUNTIME_DRIVER]
353 FILE DRIVER = $(NAMED_GUID) {
354 DXE_DEPEX DXE_DEPEX Optional |.depex
355 PE32 PE32 |.efi
356 UI STRING="$(MODULE_NAME)" Optional
357 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
358 }
359
360[Rule.Common.UEFI_APPLICATION]
361 FILE APPLICATION = $(NAMED_GUID) {
362 PE32 PE32 |.efi
363 UI STRING="$(MODULE_NAME)" Optional
364 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
365 }
366
367[Rule.Common.USER_DEFINED.ACPITABLE]
368 FILE FREEFORM = $(NAMED_GUID) {
369 RAW ACPI |.acpi
370 RAW ASL |.aml
371 }
372
373[Rule.Common.SEC.RESET_VECTOR]
374 FILE RAW = $(NAMED_GUID) {
375 RAW RAW |.raw
376 }
377
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette