VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/OvmfPkgIa32X64.fdf@ 58459

Last change on this file since 58459 was 58459, checked in by vboxsync, 9 years ago

EFI/Firmware: 'svn merge /vendor/edk2/UDK2010.SR1 /vendor/edk2/current .', reverting and removing files+dirs listed in ReadMe.vbox, resolving conflicts with help from ../UDK2014.SP1/. This is a raw untested merge.

  • Property svn:eol-style set to native
File size: 14.7 KB
Line 
1## @file
2# Open Virtual Machine Firmware: FDF
3#
4# Copyright (c) 2006 - 2014, 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
18#
19# Default flash size for DEBUG build is 2MB. For RELEASE it is 1MB.
20#
21# Defining FD_SIZE_1MB or FD_SIZE_2MB on the build command line can
22# override this.
23#
24[Defines]
25!if $(TARGET) == RELEASE
26!ifndef $(FD_SIZE_2MB)
27DEFINE FD_SIZE_1MB=
28!endif
29!endif
30
31!include OvmfPkg.fdf.inc
32
33#
34# Build the variable store and the firmware code as one unified flash device
35# image.
36#
37[FD.OVMF]
38BaseAddress = $(FW_BASE_ADDRESS)
39Size = $(FW_SIZE)
40ErasePolarity = 1
41BlockSize = $(BLOCK_SIZE)
42NumBlocks = $(FW_BLOCKS)
43
44!include VarStore.fdf.inc
45
46$(VARS_SIZE)|$(FVMAIN_SIZE)
47FV = FVMAIN_COMPACT
48
49$(SECFV_OFFSET)|$(SECFV_SIZE)
50FV = SECFV
51
52#
53# Build the variable store and the firmware code as separate flash device
54# images.
55#
56[FD.OVMF_VARS]
57BaseAddress = $(FW_BASE_ADDRESS)
58Size = $(VARS_SIZE)
59ErasePolarity = 1
60BlockSize = $(BLOCK_SIZE)
61NumBlocks = $(VARS_BLOCKS)
62
63!include VarStore.fdf.inc
64
65[FD.OVMF_CODE]
66BaseAddress = $(CODE_BASE_ADDRESS)
67Size = $(CODE_SIZE)
68ErasePolarity = 1
69BlockSize = $(BLOCK_SIZE)
70NumBlocks = $(CODE_BLOCKS)
71
720x00000000|$(FVMAIN_SIZE)
73FV = FVMAIN_COMPACT
74
75$(FVMAIN_SIZE)|$(SECFV_SIZE)
76FV = SECFV
77
78################################################################################
79
80[FD.MEMFD]
81BaseAddress = 0x800000
82Size = 0x900000
83ErasePolarity = 1
84BlockSize = 0x10000
85NumBlocks = 0x90
86
870x000000|0x006000
88gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesSize
89
900x006000|0x001000
91gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageSize
92
930x007000|0x001000
94gEfiMdePkgTokenSpaceGuid.PcdGuidedExtractHandlerTableAddress|gUefiOvmfPkgTokenSpaceGuid.PcdGuidedExtractHandlerTableSize
95
960x010000|0x008000
97gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize
98
990x018000|0x008000
100gUefiOvmfPkgTokenSpaceGuid.PcdS3AcpiReservedMemoryBase|gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdS3AcpiReservedMemorySize
101
1020x020000|0x0E0000
103gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvSize
104FV = PEIFV
105
1060x100000|0x800000
107gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvSize
108FV = DXEFV
109
110################################################################################
111
112[FV.SECFV]
113BlockSize = 0x1000
114FvAlignment = 16
115ERASE_POLARITY = 1
116MEMORY_MAPPED = TRUE
117STICKY_WRITE = TRUE
118LOCK_CAP = TRUE
119LOCK_STATUS = TRUE
120WRITE_DISABLED_CAP = TRUE
121WRITE_ENABLED_CAP = TRUE
122WRITE_STATUS = TRUE
123WRITE_LOCK_CAP = TRUE
124WRITE_LOCK_STATUS = TRUE
125READ_DISABLED_CAP = TRUE
126READ_ENABLED_CAP = TRUE
127READ_STATUS = TRUE
128READ_LOCK_CAP = TRUE
129READ_LOCK_STATUS = TRUE
130
131#
132# SEC Phase modules
133#
134# The code in this FV handles the initial firmware startup, and
135# decompresses the PEI and DXE FVs which handles the rest of the boot sequence.
136#
137INF OvmfPkg/Sec/SecMain.inf
138
139INF RuleOverride=RESET_VECTOR OvmfPkg/ResetVector/ResetVector.inf
140
141################################################################################
142[FV.PEIFV]
143BlockSize = 0x10000
144FvAlignment = 16
145ERASE_POLARITY = 1
146MEMORY_MAPPED = TRUE
147STICKY_WRITE = TRUE
148LOCK_CAP = TRUE
149LOCK_STATUS = TRUE
150WRITE_DISABLED_CAP = TRUE
151WRITE_ENABLED_CAP = TRUE
152WRITE_STATUS = TRUE
153WRITE_LOCK_CAP = TRUE
154WRITE_LOCK_STATUS = TRUE
155READ_DISABLED_CAP = TRUE
156READ_ENABLED_CAP = TRUE
157READ_STATUS = TRUE
158READ_LOCK_CAP = TRUE
159READ_LOCK_STATUS = TRUE
160
161APRIORI PEI {
162 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
163}
164
165#
166# PEI Phase modules
167#
168INF MdeModulePkg/Core/Pei/PeiMain.inf
169INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
170INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
171INF OvmfPkg/PlatformPei/PlatformPei.inf
172INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
173INF UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
174
175################################################################################
176
177[FV.DXEFV]
178BlockSize = 0x10000
179FvAlignment = 16
180ERASE_POLARITY = 1
181MEMORY_MAPPED = TRUE
182STICKY_WRITE = TRUE
183LOCK_CAP = TRUE
184LOCK_STATUS = TRUE
185WRITE_DISABLED_CAP = TRUE
186WRITE_ENABLED_CAP = TRUE
187WRITE_STATUS = TRUE
188WRITE_LOCK_CAP = TRUE
189WRITE_LOCK_STATUS = TRUE
190READ_DISABLED_CAP = TRUE
191READ_ENABLED_CAP = TRUE
192READ_STATUS = TRUE
193READ_LOCK_CAP = TRUE
194READ_LOCK_STATUS = TRUE
195
196APRIORI DXE {
197 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
198 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
199 INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
200}
201
202#
203# DXE Phase modules
204#
205INF MdeModulePkg/Core/Dxe/DxeMain.inf
206
207INF IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
208INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
209
210INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
211INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
212INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
213INF PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
214INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
215INF UefiCpuPkg/CpuDxe/CpuDxe.inf
216INF PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
217INF PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
218INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
219INF PcAtChipsetPkg/KbcResetDxe/Reset.inf
220INF MdeModulePkg/Universal/Metronome/Metronome.inf
221INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
222
223INF OvmfPkg/BlockMmioToBlockIoDxe/BlockIo.inf
224INF OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
225INF OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
226INF OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
227INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
228INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
229INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
230
231!if $(SECURE_BOOT_ENABLE) == TRUE
232 INF SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableRuntimeDxe.inf
233 INF OvmfPkg/SecureBootConfigDxe/SecureBootConfigDxe.inf
234!else
235 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
236!endif
237
238INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
239INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
240INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
241INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
242INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
243INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
244INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
245INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
246INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
247INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
248INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
249INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
250INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
251INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
252INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
253INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
254INF PcAtChipsetPkg/Bus/Pci/IdeControllerDxe/IdeControllerDxe.inf
255INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
256INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
257INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
258INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
259
260INF PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
261INF IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
262
263!ifndef $(SOURCE_DEBUG_ENABLE)
264INF IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
265!endif
266
267INF IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
268INF IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
269
270INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
271INF OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
272
273INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
274INF OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
275INF RuleOverride=ACPITABLE OvmfPkg/AcpiTables/AcpiTables.inf
276INF OvmfPkg/AcpiS3SaveDxe/AcpiS3SaveDxe.inf
277INF MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
278INF MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
279
280INF RuleOverride = BINARY USE = X64 FatBinPkg/EnhancedFatDxe/Fat.inf
281
282!ifndef $(USE_OLD_SHELL)
283INF ShellPkg/Application/Shell/Shell.inf
284!else
285INF RuleOverride = BINARY USE = X64 EdkShellBinPkg/FullShell/FullShell.inf
286!endif
287
288FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
289 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
290}
291
292#
293# Network modules
294#
295!if $(E1000_ENABLE)
296 FILE DRIVER = 5D695E11-9B3F-4b83-B25F-4A8D5D69BE07 {
297 SECTION PE32 = Intel3.5/EFIX64/E3507X2.EFI
298 }
299!endif
300 INF MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
301 INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
302 INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
303 INF MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
304 INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
305 INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
306 INF MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
307 INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
308 INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
309 INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
310 INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
311 INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
312 INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
313 INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
314
315#
316# Usb Support
317#
318INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
319INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
320INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
321INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
322INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
323
324!ifdef $(CSM_ENABLE)
325INF IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf
326INF IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
327INF RuleOverride=CSM OvmfPkg/Csm/Csm16/Csm16.inf
328!endif
329
330INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
331INF OvmfPkg/PlatformDxe/Platform.inf
332
333################################################################################
334
335[FV.FVMAIN_COMPACT]
336FvAlignment = 16
337ERASE_POLARITY = 1
338MEMORY_MAPPED = TRUE
339STICKY_WRITE = TRUE
340LOCK_CAP = TRUE
341LOCK_STATUS = TRUE
342WRITE_DISABLED_CAP = TRUE
343WRITE_ENABLED_CAP = TRUE
344WRITE_STATUS = TRUE
345WRITE_LOCK_CAP = TRUE
346WRITE_LOCK_STATUS = TRUE
347READ_DISABLED_CAP = TRUE
348READ_ENABLED_CAP = TRUE
349READ_STATUS = TRUE
350READ_LOCK_CAP = TRUE
351READ_LOCK_STATUS = TRUE
352
353FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
354 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
355 #
356 # These firmware volumes will have files placed in them uncompressed,
357 # and then both firmware volumes will be compressed in a single
358 # compression operation in order to achieve better overall compression.
359 #
360 SECTION FV_IMAGE = PEIFV
361 SECTION FV_IMAGE = DXEFV
362 }
363 }
364
365################################################################################
366
367[Rule.Common.SEC]
368 FILE SEC = $(NAMED_GUID) {
369 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
370 UI STRING ="$(MODULE_NAME)" Optional
371 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
372 }
373
374[Rule.Common.PEI_CORE]
375 FILE PEI_CORE = $(NAMED_GUID) {
376 PE32 PE32 Align=32 $(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.PEIM]
382 FILE PEIM = $(NAMED_GUID) {
383 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
384 PE32 PE32 Align=32 $(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.DXE_CORE]
390 FILE DXE_CORE = $(NAMED_GUID) {
391 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
392 UI STRING="$(MODULE_NAME)" Optional
393 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
394 }
395
396[Rule.Common.DXE_DRIVER]
397 FILE DRIVER = $(NAMED_GUID) {
398 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
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.DXE_RUNTIME_DRIVER]
405 FILE DRIVER = $(NAMED_GUID) {
406 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
407 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
408 UI STRING="$(MODULE_NAME)" Optional
409 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
410 }
411
412[Rule.Common.UEFI_DRIVER]
413 FILE DRIVER = $(NAMED_GUID) {
414 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
415 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
416 UI STRING="$(MODULE_NAME)" Optional
417 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
418 }
419
420[Rule.Common.UEFI_DRIVER.BINARY]
421 FILE DRIVER = $(NAMED_GUID) {
422 DXE_DEPEX DXE_DEPEX Optional |.depex
423 PE32 PE32 |.efi
424 UI STRING="$(MODULE_NAME)" Optional
425 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
426 }
427
428[Rule.Common.UEFI_APPLICATION]
429 FILE APPLICATION = $(NAMED_GUID) {
430 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
431 UI STRING="$(MODULE_NAME)" Optional
432 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
433 }
434
435[Rule.Common.UEFI_APPLICATION.BINARY]
436 FILE APPLICATION = $(NAMED_GUID) {
437 PE32 PE32 |.efi
438 UI STRING="$(MODULE_NAME)" Optional
439 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
440 }
441
442[Rule.Common.USER_DEFINED.ACPITABLE]
443 FILE FREEFORM = $(NAMED_GUID) {
444 RAW ACPI |.acpi
445 RAW ASL |.aml
446 }
447
448[Rule.Common.USER_DEFINED.CSM]
449 FILE FREEFORM = $(NAMED_GUID) {
450 RAW BIN |.bin
451 }
452
453[Rule.Common.SEC.RESET_VECTOR]
454 FILE RAW = $(NAMED_GUID) {
455 RAW BIN Align = 16 |.bin
456 }
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