blob: a59ad4a04a459545c4510d6bce3467a774dbaa80 [file] [log] [blame]
lgao47b202cb2010-02-23 23:58:38 +00001## @file
jljusten49ba9442009-05-27 21:10:18 +00002# Open Virtual Machine Firmware: FDF
3#
hhtian56d76402010-04-28 12:43:04 +00004# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
jljusten49ba9442009-05-27 21:10:18 +00005#
hhtian56d76402010-04-28 12:43:04 +00006# This program and the accompanying materials
jljusten49ba9442009-05-27 21:10:18 +00007# 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#
lgao47b202cb2010-02-23 23:58:38 +000014##
jljusten49ba9442009-05-27 21:10:18 +000015
16################################################################################
mdkinney76d428b2010-06-25 22:23:22 +000017[FD.OVMF]
18BaseAddress = 0xFFF00000
19Size = 0x00100000
jljusten49ba9442009-05-27 21:10:18 +000020ErasePolarity = 1
jljustenc1c26692010-01-04 16:17:59 +000021BlockSize = 0x1000
mdkinney76d428b2010-06-25 22:23:22 +000022NumBlocks = 0x100
jljustenc1c26692010-01-04 16:17:59 +000023
mdkinney76d428b2010-06-25 22:23:22 +0000240x00000000|0x000EE000
25FV = FVMAIN_COMPACT
26
270x000EE000|0x12000
jljustenc1c26692010-01-04 16:17:59 +000028FV = SECFV
jljusten689562c2010-12-31 07:55:38 +000029
jljusten49ba9442009-05-27 21:10:18 +000030################################################################################
jljustenc1c26692010-01-04 16:17:59 +000031
32[FD.MEMFD]
33BaseAddress = 0x800000|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvBase
34Size = 0x400000|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvSize
35ErasePolarity = 1
36BlockSize = 0x10000
37NumBlocks = 0x40
38
390x0|0x400000
jljusten49ba9442009-05-27 21:10:18 +000040FV = MAINFV
41
42################################################################################
jljustenc1c26692010-01-04 16:17:59 +000043
44[FV.SECFV]
jljusten49ba9442009-05-27 21:10:18 +000045BlockSize = 0x1000
jljustenc1c26692010-01-04 16:17:59 +000046FvAlignment = 16
jljusten49ba9442009-05-27 21:10:18 +000047ERASE_POLARITY = 1
48MEMORY_MAPPED = TRUE
49STICKY_WRITE = TRUE
50LOCK_CAP = TRUE
51LOCK_STATUS = TRUE
52WRITE_DISABLED_CAP = TRUE
53WRITE_ENABLED_CAP = TRUE
54WRITE_STATUS = TRUE
55WRITE_LOCK_CAP = TRUE
56WRITE_LOCK_STATUS = TRUE
57READ_DISABLED_CAP = TRUE
58READ_ENABLED_CAP = TRUE
59READ_STATUS = TRUE
60READ_LOCK_CAP = TRUE
61READ_LOCK_STATUS = TRUE
62
63#
jljustenc1c26692010-01-04 16:17:59 +000064# SEC Phase modules
65#
66# The code in this FV handles the initial firmware startup, and
67# decompresses the MAINFV which handles the majority of the boot sequence.
68#
69INF OvmfPkg/Sec/SecMain.inf
70
mdkinney7416f4e2010-07-26 18:07:19 +000071INF RuleOverride=RESET_VECTOR USE = IA32 UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.inf
jljustenc1c26692010-01-04 16:17:59 +000072
73################################################################################
74[FV.MAINFV]
75BlockSize = 0x10000
76FvAlignment = 16
77ERASE_POLARITY = 1
78MEMORY_MAPPED = TRUE
79STICKY_WRITE = TRUE
80LOCK_CAP = TRUE
81LOCK_STATUS = TRUE
82WRITE_DISABLED_CAP = TRUE
83WRITE_ENABLED_CAP = TRUE
84WRITE_STATUS = TRUE
85WRITE_LOCK_CAP = TRUE
86WRITE_LOCK_STATUS = TRUE
87READ_DISABLED_CAP = TRUE
88READ_ENABLED_CAP = TRUE
89READ_STATUS = TRUE
90READ_LOCK_CAP = TRUE
91READ_LOCK_STATUS = TRUE
92
93#
94# Files to be placed in MAIN FV
jljusten49ba9442009-05-27 21:10:18 +000095#
96# This firmware volume will have files placed in it uncompressed,
97# and then then entire firmware volume will be compressed in a
98# single compression operation in order to achieve better
99# overall compression.
100#
101
jljustenc1c26692010-01-04 16:17:59 +0000102APRIORI PEI {
103 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
104}
105
jljusten49ba9442009-05-27 21:10:18 +0000106#
jljustenc1c26692010-01-04 16:17:59 +0000107# PEI Phase modules
108#
109INF MdeModulePkg/Core/Pei/PeiMain.inf
110INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
111INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
112INF OvmfPkg/PlatformPei/PlatformPei.inf
113INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
114
lgao42ec2dee2010-03-01 01:59:46 +0000115FILE FV_IMAGE = A4EF5A93-3F1B-4232-A1C4-F0910E6D1D9C {
mdkinney76d428b2010-06-25 22:23:22 +0000116 SECTION FV_IMAGE = DXEFV
jljustenc29f6c02010-02-25 21:53:06 +0000117}
118
119################################################################################
120
121[FV.DXEFV]
122BlockSize = 0x10000
123FvAlignment = 16
124ERASE_POLARITY = 1
125MEMORY_MAPPED = TRUE
126STICKY_WRITE = TRUE
127LOCK_CAP = TRUE
128LOCK_STATUS = TRUE
129WRITE_DISABLED_CAP = TRUE
130WRITE_ENABLED_CAP = TRUE
131WRITE_STATUS = TRUE
132WRITE_LOCK_CAP = TRUE
133WRITE_LOCK_STATUS = TRUE
134READ_DISABLED_CAP = TRUE
135READ_ENABLED_CAP = TRUE
136READ_STATUS = TRUE
137READ_LOCK_CAP = TRUE
138READ_LOCK_STATUS = TRUE
139
140APRIORI DXE {
141 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
jljustenc29f6c02010-02-25 21:53:06 +0000142}
143
jljustenc1c26692010-01-04 16:17:59 +0000144#
jljusten49ba9442009-05-27 21:10:18 +0000145# DXE Phase modules
146#
147INF MdeModulePkg/Core/Dxe/DxeMain.inf
148
149INF IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
150INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
151
152INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
153INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
jljustenc1c26692010-01-04 16:17:59 +0000154INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
klu2e471bf12009-12-20 05:35:58 +0000155INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
jljusten49ba9442009-05-27 21:10:18 +0000156INF PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
eric_tianafbb91a2009-12-09 02:18:21 +0000157INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
jljusten49ba9442009-05-27 21:10:18 +0000158INF UefiCpuPkg/CpuDxe/CpuDxe.inf
159INF PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
160INF PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
davidhuang4ad90a82009-10-20 03:44:25 +0000161INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
jljusten49ba9442009-05-27 21:10:18 +0000162INF PcAtChipsetPkg/KbcResetDxe/Reset.inf
163INF MdeModulePkg/Universal/Metronome/Metronome.inf
jljusten712bd832009-07-14 23:32:41 +0000164INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
klu287a1d7a2009-07-07 04:54:01 +0000165
jljustenefd82c52010-03-21 00:34:15 +0000166INF OvmfPkg/BlockMmioToBlockIoDxe/BlockIo.inf
jljusten27f58ea2009-09-26 07:15:51 +0000167INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
168INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
169INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
jljusten49ba9442009-05-27 21:10:18 +0000170INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
171INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
172INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
173INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
174INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
175INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
vanjeffc6efcc22010-09-12 06:46:55 +0000176
177!ifndef $(SOURCE_DEBUG_ENABLE)
jljusten49ba9442009-05-27 21:10:18 +0000178INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
vanjeffc6efcc22010-09-12 06:46:55 +0000179!endif
180
jljusten49ba9442009-05-27 21:10:18 +0000181INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
182INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
jljusten86fef5b2009-06-30 15:57:29 +0000183INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
jljusten49ba9442009-05-27 21:10:18 +0000184INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
185INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
186INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
187INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
188INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
189INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
190INF PcAtChipsetPkg/Bus/Pci/IdeControllerDxe/IdeControllerDxe.inf
191INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
192INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
193
jljusten49ba9442009-05-27 21:10:18 +0000194INF PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
195INF IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
196INF IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
197INF IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
198INF IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
199
200INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
201INF MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
jljustend40d3ba2009-10-07 16:01:09 +0000202INF RuleOverride=ACPITABLE OvmfPkg/AcpiTables/AcpiTables.inf
mdkinney76d428b2010-06-25 22:23:22 +0000203INF OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430Dxe.inf
jljusten49ba9442009-05-27 21:10:18 +0000204
mdkinney7a743a22010-06-29 04:55:13 +0000205INF RuleOverride = BINARY USE = X64 FatBinPkg/EnhancedFatDxe/Fat.inf
206INF RuleOverride = BINARY USE = X64 EdkShellBinPkg/FullShell/FullShell.inf
jljusten49ba9442009-05-27 21:10:18 +0000207
lgao4d46f3632009-07-09 05:48:35 +0000208FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
mdkinney76d428b2010-06-25 22:23:22 +0000209 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
210}
mdkinney7416f4e2010-07-26 18:07:19 +0000211
212#
213# Network modules
214#
215!if $(NETWORK_ENABLE)
216 FILE DRIVER = 5D695E11-9B3F-4b83-B25F-4A8D5D69BE07 {
217 SECTION PE32 = Intel3.5/EFIX64/E3507X2.EFI
218 }
219
220 INF MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
221 INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
222 INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
223 INF MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
224 INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
225 INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
226 INF MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
227 INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
228 INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
229 INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
230 INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
231 INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
232 INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
233!endif
jljusten689562c2010-12-31 07:55:38 +0000234
235#
236# Usb Support
237#
238INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
239INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
240INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
241INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
242INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
243
jljusten49ba9442009-05-27 21:10:18 +0000244################################################################################
245
mdkinney76d428b2010-06-25 22:23:22 +0000246[FV.FVMAIN_COMPACT]
jljusten49ba9442009-05-27 21:10:18 +0000247FvAlignment = 16
248ERASE_POLARITY = 1
249MEMORY_MAPPED = TRUE
250STICKY_WRITE = TRUE
251LOCK_CAP = TRUE
252LOCK_STATUS = TRUE
253WRITE_DISABLED_CAP = TRUE
254WRITE_ENABLED_CAP = TRUE
255WRITE_STATUS = TRUE
256WRITE_LOCK_CAP = TRUE
257WRITE_LOCK_STATUS = TRUE
258READ_DISABLED_CAP = TRUE
259READ_ENABLED_CAP = TRUE
260READ_STATUS = TRUE
261READ_LOCK_CAP = TRUE
262READ_LOCK_STATUS = TRUE
263
mdkinney76d428b2010-06-25 22:23:22 +0000264FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
265 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
266 SECTION FV_IMAGE = MAINFV
267 }
268 }
269
jljusten49ba9442009-05-27 21:10:18 +0000270################################################################################
271
jljusten49ba9442009-05-27 21:10:18 +0000272[Rule.Common.SEC]
273 FILE SEC = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000274 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000275 UI STRING ="$(MODULE_NAME)" Optional
276 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
277 }
278
mdkinney76d428b2010-06-25 22:23:22 +0000279[Rule.Common.PEI_CORE]
280 FILE PEI_CORE = $(NAMED_GUID) {
281 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
282 UI STRING ="$(MODULE_NAME)" Optional
283 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
jljustend40d3ba2009-10-07 16:01:09 +0000284 }
285
jljusten49ba9442009-05-27 21:10:18 +0000286[Rule.Common.PEIM]
287 FILE PEIM = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000288 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
289 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000290 UI STRING="$(MODULE_NAME)" Optional
291 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
292 }
293
jljusten49ba9442009-05-27 21:10:18 +0000294[Rule.Common.DXE_CORE]
295 FILE DXE_CORE = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000296 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000297 UI STRING="$(MODULE_NAME)" Optional
298 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
299 }
300
jljusten49ba9442009-05-27 21:10:18 +0000301[Rule.Common.DXE_DRIVER]
302 FILE DRIVER = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000303 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
304 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000305 UI STRING="$(MODULE_NAME)" Optional
306 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
307 }
308
309[Rule.Common.DXE_RUNTIME_DRIVER]
310 FILE DRIVER = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000311 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
312 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000313 UI STRING="$(MODULE_NAME)" Optional
314 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
315 }
316
mdkinney76d428b2010-06-25 22:23:22 +0000317[Rule.Common.UEFI_DRIVER]
318 FILE DRIVER = $(NAMED_GUID) {
319 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
320 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
321 UI STRING="$(MODULE_NAME)" Optional
322 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
323 }
324
mdkinney7a743a22010-06-29 04:55:13 +0000325[Rule.Common.UEFI_DRIVER.BINARY]
mdkinney3b33c6d2010-06-29 18:34:32 +0000326 FILE DRIVER = $(NAMED_GUID) {
mdkinney7a743a22010-06-29 04:55:13 +0000327 DXE_DEPEX DXE_DEPEX Optional |.depex
328 PE32 PE32 |.efi
329 UI STRING="$(MODULE_NAME)" Optional
330 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
331 }
332
jljusten49ba9442009-05-27 21:10:18 +0000333[Rule.Common.UEFI_APPLICATION]
334 FILE APPLICATION = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000335 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000336 UI STRING="$(MODULE_NAME)" Optional
337 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
338 }
339
mdkinney7a743a22010-06-29 04:55:13 +0000340[Rule.Common.UEFI_APPLICATION.BINARY]
341 FILE APPLICATION = $(NAMED_GUID) {
342 PE32 PE32 |.efi
343 UI STRING="$(MODULE_NAME)" Optional
344 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
345 }
346
vanjeff48889992009-08-11 05:30:52 +0000347[Rule.Common.USER_DEFINED.ACPITABLE]
jljusten49ba9442009-05-27 21:10:18 +0000348 FILE FREEFORM = $(NAMED_GUID) {
jljustend40d3ba2009-10-07 16:01:09 +0000349 RAW ACPI |.acpi
350 RAW ASL |.aml
jljusten49ba9442009-05-27 21:10:18 +0000351 }
352
mdkinney7416f4e2010-07-26 18:07:19 +0000353[Rule.Common.SEC.RESET_VECTOR]
354 FILE RAW = $(NAMED_GUID) {
355 RAW RAW |.raw
356 }
357
jljusten712bd832009-07-14 23:32:41 +0000358[OptionRom.CirrusLogic5446]
359INF OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430Dxe.inf {
360 PCI_DEVICE_ID = 0x00B8
361 }