blob: c27774051098e41a7fc3785979ec377156fc2cd6 [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
jljusten49ba9442009-05-27 21:10:18 +000029
30################################################################################
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
geekboy15ad79d2cd2010-02-02 18:05:03 +000071INF RuleOverride=RESET_VECTOR 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
klu271095b22009-07-07 04:52:44 +0000164INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
jljusten49ba9442009-05-27 21:10:18 +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
202INF 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 FatBinPkg/EnhancedFatDxe/Fat.inf
206INF RuleOverride = BINARY 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}
jljusten49ba9442009-05-27 21:10:18 +0000211
mdkinney7416f4e2010-07-26 18:07:19 +0000212#
213# Network modules
214#
215!if $(NETWORK_ENABLE)
216 FILE DRIVER = 5D695E11-9B3F-4b83-B25F-4A8D5D69BE07 {
217 SECTION PE32 = Intel3.5/EFI32/E3507E2.EFI
218 }
219 INF MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
220 INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
221 INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
222 INF MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
223 INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
224 INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
225 INF MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
226 INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
227 INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
228 INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
229 INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
230 INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
231 INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
232!endif
233
jljusten49ba9442009-05-27 21:10:18 +0000234################################################################################
235
mdkinney76d428b2010-06-25 22:23:22 +0000236[FV.FVMAIN_COMPACT]
jljusten49ba9442009-05-27 21:10:18 +0000237FvAlignment = 16
238ERASE_POLARITY = 1
239MEMORY_MAPPED = TRUE
240STICKY_WRITE = TRUE
241LOCK_CAP = TRUE
242LOCK_STATUS = TRUE
243WRITE_DISABLED_CAP = TRUE
244WRITE_ENABLED_CAP = TRUE
245WRITE_STATUS = TRUE
246WRITE_LOCK_CAP = TRUE
247WRITE_LOCK_STATUS = TRUE
248READ_DISABLED_CAP = TRUE
249READ_ENABLED_CAP = TRUE
250READ_STATUS = TRUE
251READ_LOCK_CAP = TRUE
252READ_LOCK_STATUS = TRUE
253
mdkinney76d428b2010-06-25 22:23:22 +0000254FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
255 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
256 SECTION FV_IMAGE = MAINFV
jljusten49ba9442009-05-27 21:10:18 +0000257 }
258 }
259
jljusten49ba9442009-05-27 21:10:18 +0000260################################################################################
jljusten49ba9442009-05-27 21:10:18 +0000261
jljusten49ba9442009-05-27 21:10:18 +0000262[Rule.Common.SEC]
263 FILE SEC = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000264 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000265 UI STRING ="$(MODULE_NAME)" Optional
266 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
267 }
268
mdkinney76d428b2010-06-25 22:23:22 +0000269[Rule.Common.PEI_CORE]
270 FILE PEI_CORE = $(NAMED_GUID) {
271 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
272 UI STRING ="$(MODULE_NAME)" Optional
273 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
jljustend40d3ba2009-10-07 16:01:09 +0000274 }
275
jljusten49ba9442009-05-27 21:10:18 +0000276[Rule.Common.PEIM]
277 FILE PEIM = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000278 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
279 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000280 UI STRING="$(MODULE_NAME)" Optional
281 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
282 }
283
jljusten49ba9442009-05-27 21:10:18 +0000284[Rule.Common.DXE_CORE]
285 FILE DXE_CORE = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000286 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000287 UI STRING="$(MODULE_NAME)" Optional
288 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
289 }
290
jljusten49ba9442009-05-27 21:10:18 +0000291[Rule.Common.DXE_DRIVER]
292 FILE DRIVER = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000293 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
294 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000295 UI STRING="$(MODULE_NAME)" Optional
296 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
297 }
298
299[Rule.Common.DXE_RUNTIME_DRIVER]
300 FILE DRIVER = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000301 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
302 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000303 UI STRING="$(MODULE_NAME)" Optional
304 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
305 }
mdkinney7416f4e2010-07-26 18:07:19 +0000306
mdkinney76d428b2010-06-25 22:23:22 +0000307[Rule.Common.UEFI_DRIVER]
308 FILE DRIVER = $(NAMED_GUID) {
309 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
lgao42014a812010-03-01 06:47:58 +0000310 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000311 UI STRING="$(MODULE_NAME)" Optional
312 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
313 }
314
mdkinney7a743a22010-06-29 04:55:13 +0000315[Rule.Common.UEFI_DRIVER.BINARY]
mdkinney3b33c6d2010-06-29 18:34:32 +0000316 FILE DRIVER = $(NAMED_GUID) {
mdkinney7a743a22010-06-29 04:55:13 +0000317 DXE_DEPEX DXE_DEPEX Optional |.depex
318 PE32 PE32 |.efi
319 UI STRING="$(MODULE_NAME)" Optional
320 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
321 }
322
mdkinney76d428b2010-06-25 22:23:22 +0000323[Rule.Common.UEFI_APPLICATION]
lgao4d989c452010-03-02 02:50:32 +0000324 FILE APPLICATION = $(NAMED_GUID) {
mdkinney76d428b2010-06-25 22:23:22 +0000325 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
lgao4d989c452010-03-02 02:50:32 +0000326 UI STRING="$(MODULE_NAME)" Optional
327 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
328 }
329
mdkinney7a743a22010-06-29 04:55:13 +0000330[Rule.Common.UEFI_APPLICATION.BINARY]
331 FILE APPLICATION = $(NAMED_GUID) {
332 PE32 PE32 |.efi
333 UI STRING="$(MODULE_NAME)" Optional
334 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
335 }
336
vanjeff48889992009-08-11 05:30:52 +0000337[Rule.Common.USER_DEFINED.ACPITABLE]
jljusten49ba9442009-05-27 21:10:18 +0000338 FILE FREEFORM = $(NAMED_GUID) {
339 RAW ACPI |.acpi
340 RAW ASL |.aml
341 }
342
343[Rule.Common.SEC.RESET_VECTOR]
344 FILE RAW = $(NAMED_GUID) {
345 RAW RAW |.raw
346 }
347
jljusten712bd832009-07-14 23:32:41 +0000348[OptionRom.CirrusLogic5446]
349INF OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430Dxe.inf {
350 PCI_DEVICE_ID = 0x00B8
351 }