blob: 5da018ba0a18b0735c1a63cdbbff12a187820f2c [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
mdkinney76d428b2010-06-25 22:23:22 +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
mdkinney76d428b2010-06-25 22:23:22 +0000234
jljusten49ba9442009-05-27 21:10:18 +0000235################################################################################
236
mdkinney76d428b2010-06-25 22:23:22 +0000237[FV.FVMAIN_COMPACT]
jljusten49ba9442009-05-27 21:10:18 +0000238FvAlignment = 16
239ERASE_POLARITY = 1
240MEMORY_MAPPED = TRUE
241STICKY_WRITE = TRUE
242LOCK_CAP = TRUE
243LOCK_STATUS = TRUE
244WRITE_DISABLED_CAP = TRUE
245WRITE_ENABLED_CAP = TRUE
246WRITE_STATUS = TRUE
247WRITE_LOCK_CAP = TRUE
248WRITE_LOCK_STATUS = TRUE
249READ_DISABLED_CAP = TRUE
250READ_ENABLED_CAP = TRUE
251READ_STATUS = TRUE
252READ_LOCK_CAP = TRUE
253READ_LOCK_STATUS = TRUE
254
mdkinney76d428b2010-06-25 22:23:22 +0000255FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
256 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
257 SECTION FV_IMAGE = MAINFV
258 }
259 }
260
jljusten49ba9442009-05-27 21:10:18 +0000261################################################################################
262
jljusten49ba9442009-05-27 21:10:18 +0000263[Rule.Common.SEC]
264 FILE SEC = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000265 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000266 UI STRING ="$(MODULE_NAME)" Optional
267 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
268 }
269
mdkinney76d428b2010-06-25 22:23:22 +0000270[Rule.Common.PEI_CORE]
271 FILE PEI_CORE = $(NAMED_GUID) {
272 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
273 UI STRING ="$(MODULE_NAME)" Optional
274 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
jljustend40d3ba2009-10-07 16:01:09 +0000275 }
276
jljusten49ba9442009-05-27 21:10:18 +0000277[Rule.Common.PEIM]
278 FILE PEIM = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000279 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
280 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000281 UI STRING="$(MODULE_NAME)" Optional
282 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
283 }
284
jljusten49ba9442009-05-27 21:10:18 +0000285[Rule.Common.DXE_CORE]
286 FILE DXE_CORE = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000287 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000288 UI STRING="$(MODULE_NAME)" Optional
289 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
290 }
291
jljusten49ba9442009-05-27 21:10:18 +0000292[Rule.Common.DXE_DRIVER]
293 FILE DRIVER = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000294 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
295 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000296 UI STRING="$(MODULE_NAME)" Optional
297 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
298 }
299
300[Rule.Common.DXE_RUNTIME_DRIVER]
301 FILE DRIVER = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000302 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
303 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000304 UI STRING="$(MODULE_NAME)" Optional
305 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
306 }
307
mdkinney76d428b2010-06-25 22:23:22 +0000308[Rule.Common.UEFI_DRIVER]
309 FILE DRIVER = $(NAMED_GUID) {
310 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
311 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
312 UI STRING="$(MODULE_NAME)" Optional
313 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
314 }
315
mdkinney7a743a22010-06-29 04:55:13 +0000316[Rule.Common.UEFI_DRIVER.BINARY]
mdkinney3b33c6d2010-06-29 18:34:32 +0000317 FILE DRIVER = $(NAMED_GUID) {
mdkinney7a743a22010-06-29 04:55:13 +0000318 DXE_DEPEX DXE_DEPEX Optional |.depex
319 PE32 PE32 |.efi
320 UI STRING="$(MODULE_NAME)" Optional
321 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
322 }
323
jljusten49ba9442009-05-27 21:10:18 +0000324[Rule.Common.UEFI_APPLICATION]
325 FILE APPLICATION = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000326 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000327 UI STRING="$(MODULE_NAME)" Optional
328 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
329 }
330
mdkinney7a743a22010-06-29 04:55:13 +0000331[Rule.Common.UEFI_APPLICATION.BINARY]
332 FILE APPLICATION = $(NAMED_GUID) {
333 PE32 PE32 |.efi
334 UI STRING="$(MODULE_NAME)" Optional
335 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
336 }
337
vanjeff48889992009-08-11 05:30:52 +0000338[Rule.Common.USER_DEFINED.ACPITABLE]
jljusten49ba9442009-05-27 21:10:18 +0000339 FILE FREEFORM = $(NAMED_GUID) {
jljustend40d3ba2009-10-07 16:01:09 +0000340 RAW ACPI |.acpi
341 RAW ASL |.aml
jljusten49ba9442009-05-27 21:10:18 +0000342 }
343
mdkinney7416f4e2010-07-26 18:07:19 +0000344[Rule.Common.SEC.RESET_VECTOR]
345 FILE RAW = $(NAMED_GUID) {
346 RAW RAW |.raw
347 }
348
jljusten712bd832009-07-14 23:32:41 +0000349[OptionRom.CirrusLogic5446]
350INF OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430Dxe.inf {
351 PCI_DEVICE_ID = 0x00B8
352 }