blob: b6866e137b4974744b4082be1e16f3133f200874 [file] [log] [blame]
lgao47b202cb2010-02-23 23:58:38 +00001## @file
jljusten49ba9442009-05-27 21:10:18 +00002# Open Virtual Machine Firmware: FDF
3#
jljustenc1c26692010-01-04 16:17:59 +00004# Copyright (c) 2006 - 2010, Intel Corporation
jljusten49ba9442009-05-27 21:10:18 +00005#
6# All rights reserved. This program and the accompanying materials
7# 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################################################################################
jljustenc1c26692010-01-04 16:17:59 +000017[FD.SEC]
18BaseAddress = 0xFFFEE000
19Size = 0x00012000
jljusten49ba9442009-05-27 21:10:18 +000020ErasePolarity = 1
jljustenc1c26692010-01-04 16:17:59 +000021BlockSize = 0x1000
22NumBlocks = 0x12
23
240x0|0x12000
25FV = SECFV
jljusten49ba9442009-05-27 21:10:18 +000026
27################################################################################
jljustenc1c26692010-01-04 16:17:59 +000028
29[FD.MEMFD]
30BaseAddress = 0x800000|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvBase
31Size = 0x400000|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvSize
32ErasePolarity = 1
33BlockSize = 0x10000
34NumBlocks = 0x40
35
360x0|0x400000
jljusten49ba9442009-05-27 21:10:18 +000037FV = MAINFV
38
39################################################################################
jljustenc1c26692010-01-04 16:17:59 +000040
41[FV.SECFV]
jljusten49ba9442009-05-27 21:10:18 +000042BlockSize = 0x1000
jljustenc1c26692010-01-04 16:17:59 +000043FvAlignment = 16
jljusten49ba9442009-05-27 21:10:18 +000044ERASE_POLARITY = 1
45MEMORY_MAPPED = TRUE
46STICKY_WRITE = TRUE
47LOCK_CAP = TRUE
48LOCK_STATUS = TRUE
49WRITE_DISABLED_CAP = TRUE
50WRITE_ENABLED_CAP = TRUE
51WRITE_STATUS = TRUE
52WRITE_LOCK_CAP = TRUE
53WRITE_LOCK_STATUS = TRUE
54READ_DISABLED_CAP = TRUE
55READ_ENABLED_CAP = TRUE
56READ_STATUS = TRUE
57READ_LOCK_CAP = TRUE
58READ_LOCK_STATUS = TRUE
59
60#
jljustenc1c26692010-01-04 16:17:59 +000061# SEC Phase modules
62#
63# The code in this FV handles the initial firmware startup, and
64# decompresses the MAINFV which handles the majority of the boot sequence.
65#
66INF OvmfPkg/Sec/SecMain.inf
67
68FILE RAW = 1BA0062E-C779-4582-8566-336AE8F78F09 {
geekboy15ad79d2cd2010-02-02 18:05:03 +000069 SECTION RAW = UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.ia32.raw
jljustenc1c26692010-01-04 16:17:59 +000070 }
71
72################################################################################
73[FV.MAINFV]
74BlockSize = 0x10000
75FvAlignment = 16
76ERASE_POLARITY = 1
77MEMORY_MAPPED = TRUE
78STICKY_WRITE = TRUE
79LOCK_CAP = TRUE
80LOCK_STATUS = TRUE
81WRITE_DISABLED_CAP = TRUE
82WRITE_ENABLED_CAP = TRUE
83WRITE_STATUS = TRUE
84WRITE_LOCK_CAP = TRUE
85WRITE_LOCK_STATUS = TRUE
86READ_DISABLED_CAP = TRUE
87READ_ENABLED_CAP = TRUE
88READ_STATUS = TRUE
89READ_LOCK_CAP = TRUE
90READ_LOCK_STATUS = TRUE
91
92#
93# Files to be placed in MAIN FV
jljusten49ba9442009-05-27 21:10:18 +000094#
95# This firmware volume will have files placed in it uncompressed,
96# and then then entire firmware volume will be compressed in a
97# single compression operation in order to achieve better
98# overall compression.
99#
100
jljustenc1c26692010-01-04 16:17:59 +0000101APRIORI PEI {
102 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
103}
104
jljusten49ba9442009-05-27 21:10:18 +0000105#
jljustenc1c26692010-01-04 16:17:59 +0000106# PEI Phase modules
107#
108INF MdeModulePkg/Core/Pei/PeiMain.inf
109INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
110INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
111INF OvmfPkg/PlatformPei/PlatformPei.inf
112INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
113
lgao42ec2dee2010-03-01 01:59:46 +0000114FILE FV_IMAGE = A4EF5A93-3F1B-4232-A1C4-F0910E6D1D9C {
115 SECTION COMPRESS PI_NONE {
116 SECTION FV_IMAGE = DXEFV
117 }
jljustenc29f6c02010-02-25 21:53:06 +0000118}
119
120################################################################################
121
122[FV.DXEFV]
123BlockSize = 0x10000
124FvAlignment = 16
125ERASE_POLARITY = 1
126MEMORY_MAPPED = TRUE
127STICKY_WRITE = TRUE
128LOCK_CAP = TRUE
129LOCK_STATUS = TRUE
130WRITE_DISABLED_CAP = TRUE
131WRITE_ENABLED_CAP = TRUE
132WRITE_STATUS = TRUE
133WRITE_LOCK_CAP = TRUE
134WRITE_LOCK_STATUS = TRUE
135READ_DISABLED_CAP = TRUE
136READ_ENABLED_CAP = TRUE
137READ_STATUS = TRUE
138READ_LOCK_CAP = TRUE
139READ_LOCK_STATUS = TRUE
140
141APRIORI DXE {
142 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
143 INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
144}
145
jljustenc1c26692010-01-04 16:17:59 +0000146#
jljusten49ba9442009-05-27 21:10:18 +0000147# DXE Phase modules
148#
149INF MdeModulePkg/Core/Dxe/DxeMain.inf
150
151INF IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
152INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
153
154INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
155INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
156INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
jljustenc1c26692010-01-04 16:17:59 +0000157INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
klu2e471bf12009-12-20 05:35:58 +0000158INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
jljusten49ba9442009-05-27 21:10:18 +0000159INF PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
eric_tianafbb91a2009-12-09 02:18:21 +0000160INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
jljusten49ba9442009-05-27 21:10:18 +0000161INF UefiCpuPkg/CpuDxe/CpuDxe.inf
162INF PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
163INF PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
davidhuang4ad90a82009-10-20 03:44:25 +0000164INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
jljusten49ba9442009-05-27 21:10:18 +0000165INF PcAtChipsetPkg/KbcResetDxe/Reset.inf
166INF MdeModulePkg/Universal/Metronome/Metronome.inf
jljusten712bd832009-07-14 23:32:41 +0000167INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
klu287a1d7a2009-07-07 04:54:01 +0000168
jljusten27f58ea2009-09-26 07:15:51 +0000169INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
170INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
171INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
jljusten49ba9442009-05-27 21:10:18 +0000172INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
173INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
174INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
175INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
176INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
177INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
178INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
179INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
180INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
jljusten86fef5b2009-06-30 15:57:29 +0000181INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
jljusten49ba9442009-05-27 21:10:18 +0000182INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
183INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
184INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
185INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
186INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
187INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
188INF PcAtChipsetPkg/Bus/Pci/IdeControllerDxe/IdeControllerDxe.inf
189INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
190INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
191
jljusten49ba9442009-05-27 21:10:18 +0000192INF PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
193INF IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
194INF IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
195INF IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
196INF IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
197
198INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
199INF MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
jljustend40d3ba2009-10-07 16:01:09 +0000200INF RuleOverride=ACPITABLE OvmfPkg/AcpiTables/AcpiTables.inf
jljusten49ba9442009-05-27 21:10:18 +0000201
202FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {
203 SECTION PE32 = FatBinPkg/EnhancedFatDxe/X64/Fat.efi
204 }
205
lgao4d46f3632009-07-09 05:48:35 +0000206FILE APPLICATION = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile) {
jljusten49ba9442009-05-27 21:10:18 +0000207 SECTION PE32 = EdkShellBinPkg/FullShell/X64/Shell_full.efi
208 }
209
lgao4d46f3632009-07-09 05:48:35 +0000210FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
jljusten49ba9442009-05-27 21:10:18 +0000211 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE { # LzmaCompress
212 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
213 }
214 }
215
216################################################################################
217
jljustenc1c26692010-01-04 16:17:59 +0000218[FV.OVMF]
219BlockSize = 0x10000
jljusten49ba9442009-05-27 21:10:18 +0000220FvAlignment = 16
221ERASE_POLARITY = 1
222MEMORY_MAPPED = TRUE
223STICKY_WRITE = TRUE
224LOCK_CAP = TRUE
225LOCK_STATUS = TRUE
226WRITE_DISABLED_CAP = TRUE
227WRITE_ENABLED_CAP = TRUE
228WRITE_STATUS = TRUE
229WRITE_LOCK_CAP = TRUE
230WRITE_LOCK_STATUS = TRUE
231READ_DISABLED_CAP = TRUE
232READ_ENABLED_CAP = TRUE
233READ_STATUS = TRUE
234READ_LOCK_CAP = TRUE
235READ_LOCK_STATUS = TRUE
236
237#
jljustenc1c26692010-01-04 16:17:59 +0000238# This file contains the compressed MAINFV, which is compressed
jljusten49ba9442009-05-27 21:10:18 +0000239# in a single compression operation in order to achieve better
240# overall compression.
241#
242FILE FV_IMAGE = 20bc8ac9-94d1-4208-ab28-5d673fd73486 {
243 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE { # LzmaCompress
jljustenc1c26692010-01-04 16:17:59 +0000244 SECTION FV_IMAGE = MAINFV
jljusten49ba9442009-05-27 21:10:18 +0000245 }
246 }
247
jljusten49ba9442009-05-27 21:10:18 +0000248#
jljustenc1c26692010-01-04 16:17:59 +0000249# This file contains the uncompressed SECFV, which contains the initial
250# boot code. The code in this FV decompresses the MAINFV.
jljusten49ba9442009-05-27 21:10:18 +0000251#
jljustenc1c26692010-01-04 16:17:59 +0000252# It uses the Volume Top File (VTF) GUID so it will be placed at the
253# end of the FV.
254#
255FILE FREEFORM = 1BA0062E-C779-4582-8566-336AE8F78F09 {
256 SECTION Align=16 FV_IMAGE = SECFV
257}
258
jljusten49ba9442009-05-27 21:10:18 +0000259################################################################################
260
261[Rule.Common.PEI_CORE]
262 FILE PEI_CORE = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000263 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000264 UI STRING ="$(MODULE_NAME)" Optional
265 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
266 }
267
268[Rule.Common.SEC]
269 FILE SEC = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000270 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000271 UI STRING ="$(MODULE_NAME)" Optional
272 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
273 }
274
jljustend40d3ba2009-10-07 16:01:09 +0000275[Rule.Common.PEIM.NORELOC]
276 FILE PEIM = $(NAMED_GUID) RELOCS_STRIPPED {
lgao42014a812010-03-01 06:47:58 +0000277 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
278 TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi
jljustend40d3ba2009-10-07 16:01:09 +0000279 UI STRING="$(MODULE_NAME)" Optional
280 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
281 }
282
jljusten49ba9442009-05-27 21:10:18 +0000283[Rule.Common.PEIM]
284 FILE PEIM = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000285 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
286 PE32 PE32 Align=32 $(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
291[Rule.Common.PEIM.TIANOCOMPRESSED]
292 FILE PEIM = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000293 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
jljusten49ba9442009-05-27 21:10:18 +0000294 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
lgao42014a812010-03-01 06:47:58 +0000295 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
301[Rule.Common.DXE_CORE]
302 FILE DXE_CORE = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000303 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
308[Rule.Common.UEFI_DRIVER]
309 FILE DRIVER = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000310 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
311 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000312 UI STRING="$(MODULE_NAME)" Optional
313 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
314 }
315
316[Rule.Common.DXE_DRIVER]
317 FILE DRIVER = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000318 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
319 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000320 UI STRING="$(MODULE_NAME)" Optional
321 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
322 }
323
324[Rule.Common.DXE_RUNTIME_DRIVER]
325 FILE DRIVER = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000326 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
327 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000328 UI STRING="$(MODULE_NAME)" Optional
329 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
330 }
331
332[Rule.Common.UEFI_APPLICATION]
333 FILE APPLICATION = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000334 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
jljusten49ba9442009-05-27 21:10:18 +0000335 UI STRING="$(MODULE_NAME)" Optional
336 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
337 }
338
vanjeff48889992009-08-11 05:30:52 +0000339[Rule.Common.USER_DEFINED.ACPITABLE]
jljusten49ba9442009-05-27 21:10:18 +0000340 FILE FREEFORM = $(NAMED_GUID) {
jljustend40d3ba2009-10-07 16:01:09 +0000341 RAW ACPI |.acpi
342 RAW ASL |.aml
jljusten49ba9442009-05-27 21:10:18 +0000343 }
344
345[Rule.Common.SEC.RESET_VECTOR]
346 FILE RAW = $(NAMED_GUID) {
347 RAW RAW |.raw
348 }
349
jljusten712bd832009-07-14 23:32:41 +0000350[OptionRom.CirrusLogic5446]
351INF OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430Dxe.inf {
352 PCI_DEVICE_ID = 0x00B8
353 }
354