VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/OvmfPkgX64.fdf@ 53336

Last change on this file since 53336 was 48674, checked in by vboxsync, 11 years ago

EFI: Export newly imported tinaocore UEFI sources to OSE.

  • Property svn:eol-style set to native
File size: 13.8 KB
Line 
1## @file
2# Open Virtual Machine Firmware: FDF
3#
4# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
5#
6# 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#
14##
15
16################################################################################
17[FD.OVMF]
18BaseAddress = 0xFFF00000
19Size = 0x00100000
20ErasePolarity = 1
21BlockSize = 0x1000
22NumBlocks = 0x100
23
240x00000000|0x000EC000
25FV = FVMAIN_COMPACT
26
270x000EC000|0x14000
28FV = SECFV
29
30################################################################################
31
32[FD.MEMFD]
33BaseAddress = 0x2000000|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvBase
34Size = 0x600000|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfMemFvSize
35ErasePolarity = 1
36BlockSize = 0x10000
37NumBlocks = 0x60
38
390x0|0x600000
40FV = MAINFV
41
42################################################################################
43
44[FV.SECFV]
45BlockSize = 0x1000
46FvAlignment = 16
47ERASE_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#
64# 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
71INF RuleOverride=RESET_VECTOR UefiCpuPkg/ResetVector/Vtf0/Bin/ResetVector.inf
72
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
95#
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
102APRIORI PEI {
103 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
104}
105
106#
107# PEI Phase modules
108#
109INF MdeModulePkg/Core/Pei/PeiMain.inf
110INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
111INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
112!ifndef $(VBOX)
113INF OvmfPkg/PlatformPei/PlatformPei.inf
114!else
115INF VBoxPkg/PlatformPei/PlatformPei.inf
116!endif
117INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
118
119FILE FV_IMAGE = A4EF5A93-3F1B-4232-A1C4-F0910E6D1D9C {
120 SECTION COMPRESS PI_NONE {
121 SECTION FV_IMAGE = DXEFV
122 }
123}
124
125################################################################################
126
127[FV.DXEFV]
128BlockSize = 0x10000
129FvAlignment = 16
130ERASE_POLARITY = 1
131MEMORY_MAPPED = TRUE
132STICKY_WRITE = TRUE
133LOCK_CAP = TRUE
134LOCK_STATUS = TRUE
135WRITE_DISABLED_CAP = TRUE
136WRITE_ENABLED_CAP = TRUE
137WRITE_STATUS = TRUE
138WRITE_LOCK_CAP = TRUE
139WRITE_LOCK_STATUS = TRUE
140READ_DISABLED_CAP = TRUE
141READ_ENABLED_CAP = TRUE
142READ_STATUS = TRUE
143READ_LOCK_CAP = TRUE
144READ_LOCK_STATUS = TRUE
145
146APRIORI DXE {
147 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
148}
149
150#
151# DXE Phase modules
152#
153INF MdeModulePkg/Core/Dxe/DxeMain.inf
154
155INF IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
156INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
157
158INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
159INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
160INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
161INF PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
162INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
163INF UefiCpuPkg/CpuDxe/CpuDxe.inf
164INF PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
165INF PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
166INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
167INF PcAtChipsetPkg/KbcResetDxe/Reset.inf
168INF MdeModulePkg/Universal/Metronome/Metronome.inf
169INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
170
171INF OvmfPkg/BlockMmioToBlockIoDxe/BlockIo.inf
172INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
173INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
174!ifndef $(VBOX)
175INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
176!else
177INF VBoxPkg/VBoxVariable/VBoxVariableRuntimeDxe.inf
178!endif
179INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
180INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
181INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
182INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
183INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
184INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
185INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
186INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
187INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
188INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
189INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
190!ifndef $(VBOX)
191INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
192!else
193INF VBoxPkg/PartitionDxe/PartitionDxe.inf
194!endif
195INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
196INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
197INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
198!ifndef $(VBOX)
199INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
200!endif
201INF PcAtChipsetPkg/Bus/Pci/IdeControllerDxe/IdeControllerDxe.inf
202INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
203INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
204INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
205
206!ifdef $(VBOX)
207INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
208INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
209# Replaced by BDS platform specific functionality.
210#INF VBoxPkg/VBoxConsoleDxe/VBoxConsoleDxe.inf
211INF VBoxPkg/VBoxVgaMiniPortDxe/VBoxVgaMiniPortDxe.inf
212INF VBoxPkg/VBoxVgaDxe/VBoxVgaDxe.inf
213INF VBoxPkg/VBoxFsDxe/VBoxIso9660.inf
214INF VBoxPkg/VBoxFsDxe/VBoxHfs.inf
215INF VBoxPkg/VBoxSysTables/VBoxSysTables.inf
216INF VBoxPkg/VBoxAppleSim/VBoxAppleSim.inf
217 # we need it for VBoxAppleSim
218INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
219INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
220INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
221!endif
222
223INF PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
224INF IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
225INF IntelFrameworkModulePkg/Bus/Isa/IsaIoDxe/IsaIoDxe.inf
226
227!ifndef $(SOURCE_DEBUG_ENABLE)
228INF IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
229!endif
230
231INF IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
232INF IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
233
234INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
235INF OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
236
237INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
238!ifndef $(VBOX)
239INF MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
240INF RuleOverride=ACPITABLE OvmfPkg/AcpiTables/AcpiTables.inf
241!else
242INF VBoxPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
243!endif
244
245INF RuleOverride = BINARY FatBinPkg/EnhancedFatDxe/Fat.inf
246
247!if $(BUILD_NEW_SHELL)
248INF ShellPkg/Application/Shell/Shell.inf
249!else
250!if $(USE_NEW_SHELL)
251INF RuleOverride = BINARY ShellBinPkg/UefiShell/UefiShell.inf
252!else
253INF RuleOverride = BINARY EdkShellBinPkg/FullShell/FullShell.inf
254!endif
255!endif
256
257FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
258!ifndef $(VBOX)
259 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
260!else
261 !ifndef $(VBOX_OSE)
262 SECTION RAW = $(VBOX_PATH_ROOT)/src/VBox/Devices/Graphics/BIOS/puel_logo.bmp
263 !else
264 SECTION RAW = $(VBOX_PATH_ROOT)/src/VBox/Devices/Graphics/BIOS/ose_logo2.bmp
265 !endif
266!endif
267}
268
269#
270# Network modules
271#
272!if $(NETWORK_ENABLE)
273 FILE DRIVER = 5D695E11-9B3F-4b83-B25F-4A8D5D69BE07 {
274 SECTION PE32 = Intel3.5/EFIX64/E3507X2.EFI
275 }
276 INF MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
277 INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
278 INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
279 INF MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
280 INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
281 INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
282 INF MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
283 INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
284 INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
285 INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
286 INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
287 INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
288 INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
289!endif
290
291#
292# Usb Support
293#
294!ifndef $(VBOX)
295INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
296INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
297INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
298INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
299INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
300!endif
301
302!ifdef $(CSM_ENABLE)
303INF IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf
304INF IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
305INF RuleOverride=CSM OvmfPkg/Csm/Csm16/Csm16.inf
306!endif
307
308################################################################################
309
310[FV.FVMAIN_COMPACT]
311FvAlignment = 16
312ERASE_POLARITY = 1
313MEMORY_MAPPED = TRUE
314STICKY_WRITE = TRUE
315LOCK_CAP = TRUE
316LOCK_STATUS = TRUE
317WRITE_DISABLED_CAP = TRUE
318WRITE_ENABLED_CAP = TRUE
319WRITE_STATUS = TRUE
320WRITE_LOCK_CAP = TRUE
321WRITE_LOCK_STATUS = TRUE
322READ_DISABLED_CAP = TRUE
323READ_ENABLED_CAP = TRUE
324READ_STATUS = TRUE
325READ_LOCK_CAP = TRUE
326READ_LOCK_STATUS = TRUE
327
328FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
329 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
330 SECTION FV_IMAGE = MAINFV
331 }
332 }
333
334################################################################################
335
336[Rule.Common.SEC]
337 FILE SEC = $(NAMED_GUID) {
338 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
339 UI STRING ="$(MODULE_NAME)" Optional
340 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
341 }
342
343[Rule.Common.PEI_CORE]
344 FILE PEI_CORE = $(NAMED_GUID) {
345 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
346 UI STRING ="$(MODULE_NAME)" Optional
347 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
348 }
349
350[Rule.Common.PEIM]
351 FILE PEIM = $(NAMED_GUID) {
352 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
353 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
354 UI STRING="$(MODULE_NAME)" Optional
355 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
356 }
357
358[Rule.Common.DXE_CORE]
359 FILE DXE_CORE = $(NAMED_GUID) {
360 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
361 UI STRING="$(MODULE_NAME)" Optional
362 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
363 }
364
365[Rule.Common.DXE_DRIVER]
366 FILE DRIVER = $(NAMED_GUID) {
367 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
368 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
369 UI STRING="$(MODULE_NAME)" Optional
370 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
371 }
372
373[Rule.Common.DXE_RUNTIME_DRIVER]
374 FILE DRIVER = $(NAMED_GUID) {
375 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
376 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
377 UI STRING="$(MODULE_NAME)" Optional
378 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
379 }
380
381[Rule.Common.UEFI_DRIVER]
382 FILE DRIVER = $(NAMED_GUID) {
383 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
384 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
385 UI STRING="$(MODULE_NAME)" Optional
386 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
387 }
388
389[Rule.Common.UEFI_DRIVER.BINARY]
390 FILE DRIVER = $(NAMED_GUID) {
391 DXE_DEPEX DXE_DEPEX Optional |.depex
392 PE32 PE32 |.efi
393 UI STRING="$(MODULE_NAME)" Optional
394 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
395 }
396
397[Rule.Common.UEFI_APPLICATION]
398 FILE APPLICATION = $(NAMED_GUID) {
399 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
400 UI STRING="$(MODULE_NAME)" Optional
401 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
402 }
403
404[Rule.Common.UEFI_APPLICATION.BINARY]
405 FILE APPLICATION = $(NAMED_GUID) {
406 PE32 PE32 |.efi
407 UI STRING="$(MODULE_NAME)" Optional
408 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
409 }
410
411[Rule.Common.USER_DEFINED.ACPITABLE]
412 FILE FREEFORM = $(NAMED_GUID) {
413 RAW ACPI |.acpi
414 RAW ASL |.aml
415 }
416
417[Rule.Common.USER_DEFINED.CSM]
418 FILE FREEFORM = $(NAMED_GUID) {
419 RAW BIN |.bin
420 }
421
422[Rule.Common.SEC.RESET_VECTOR]
423 FILE RAW = $(NAMED_GUID) {
424 RAW RAW |.raw
425 }
426
427!ifndef $(VBOX)
428[OptionRom.OvmfVideo]
429INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
430 PCI_DEVICE_ID = 0x00B8
431 }
432!endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette