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