blob: 4058815ee5e1c93090c094e10ea1f80b37170afc [file] [log] [blame]
andrewfish949f3882011-05-11 18:31:20 +00001## @file
2# This is Unix FDF file with UEFI HII features enabled
3#
jljusten72a44be2011-05-15 17:23:33 +00004# Copyright (c) 2008 - 2011, Intel Corporation. All rights reserved.<BR>
andrewfish949f3882011-05-11 18:31:20 +00005# Portions copyright (c) 2009 - 2011, Apple Inc. All rights reserved.<BR>
6#
7# This program and the accompanying materials
8# are licensed and made available under the terms and conditions of the BSD License
9# which accompanies this distribution. The full text of the license may be found at
10# http://opensource.org/licenses/bsd-license.php
11#
12# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14#
15
16################################################################################
17#
18# FD Section
19# The [FD] Section is made up of the definition statements and a
20# description of what goes into the Flash Device Image. Each FD section
21# defines one flash "device" image. A flash device image may be one of
22# the following: Removable media bootable image (like a boot floppy
23# image,) an Option ROM image (that would be "flashed" into an add-in
24# card,) a System "Flash" image (that would be burned into a system's
25# flash) or an Update ("Capsule") image that will be used to update and
26# existing system flash.
27#
28################################################################################
29[FD.Fv_Recovery]
30#
31# In OS X PEIMs are really XIP, so we need to make this address match the malloced
32# buffer for the FD (0x41000000). If this address does not match the FV will get
33# relocated in place (works, but not a great idea).
34#
35BaseAddress = 0x102000000|gInOsEmuPkgTokenSpaceGuid.PcdEmuFdBaseAddress #The base address of the FLASH Device.
36Size = 0x005a0000|gInOsEmuPkgTokenSpaceGuid.PcdEmuFirmwareFdSize #The size in bytes of the FLASH Device
37ErasePolarity = 1
38BlockSize = 0x10000
39NumBlocks = 0x5a
40
41################################################################################
42#
43# Following are lists of FD Region layout which correspond to the locations of different
44# images within the flash device.
45#
46# Regions must be defined in ascending order and may not overlap.
47#
48# A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
49# the pipe "|" character, followed by the size of the region, also in hex with the leading
50# "0x" characters. Like:
51# Offset|Size
52# PcdOffsetCName|PcdSizeCName
53# RegionType <FV, DATA, or FILE>
54#
55################################################################################
560x00000000|0x00580000
57gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashFvRecoveryBase|gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashFvRecoverySize
58FV = FvRecovery
59
600x00580000|0x0000c000
61gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashNvStorageVariableBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
62#NV_VARIABLE_STORE
63DATA = {
64 ## This is the EFI_FIRMWARE_VOLUME_HEADER
65 # ZeroVector []
66 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
67 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
68 # FileSystemGuid: gEfiSystemNvDataFvGuid =
69 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
70 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
71 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
72 # FvLength: 0x20000
73 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
74 # Signature "_FVH" #Attributes
75 0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,
76 # HeaderLength #CheckSum #ExtHeaderOffset #Reserved #Revision
77 0x48, 0x00, 0x36, 0x09, 0x00, 0x00, 0x00, 0x02,
78 # Blockmap[0]: 2 Blocks * 0x10000 Bytes / Block
79 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
80 # Blockmap[1]: End
81 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
82 ## This is the VARIABLE_STORE_HEADER
83 #Signature: gEfiVariableGuid =
84 # { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d }}
85 0x16, 0x36, 0xcf, 0xdd, 0x75, 0x32, 0x64, 0x41,
86 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d,
87 #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0xBFB8
88 # This can speed up the Variable Dispatch a bit.
89 0xB8, 0xBF, 0x00, 0x00,
90 #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32
91 0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
92}
93
940x0058c000|0x00002000
95#NV_EVENT_LOG
96gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashNvStorageEventLogBase|gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashNvStorageEventLogSize
97
980x0058e000|0x00002000
99gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashNvStorageFtwWorkingBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
100#NV_FTW_WORKING
101DATA = {
102 # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature = gEfiSystemNvDataFvGuid =
103 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
104 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
105 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
106 # Crc:UINT32 #WorkingBlockValid:1, WorkingBlockInvalid:1, Reserved
107 0x77, 0x13, 0x9B, 0xD7, 0xFE, 0xFF, 0xFF, 0xFF,
108 # WriteQueueSize: UINT64
109 0xE0, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
110}
111
1120x00590000|0x00010000
113#NV_FTW_SPARE
114gInOsEmuPkgTokenSpaceGuid.PcdEmuFlashNvStorageFtwSpareBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
115
116################################################################################
117#
118# FV Section
119#
120# [FV] section is used to define what components or modules are placed within a flash
121# device file. This section also defines order the components and modules are positioned
122# within the image. The [FV] section consists of define statements, set statements and
123# module statements.
124#
125################################################################################
126[FV.FvRecovery]
127FvAlignment = 16 #FV alignment and FV attributes setting.
128ERASE_POLARITY = 1
129MEMORY_MAPPED = TRUE
130STICKY_WRITE = TRUE
131LOCK_CAP = TRUE
132LOCK_STATUS = TRUE
133WRITE_DISABLED_CAP = TRUE
134WRITE_ENABLED_CAP = TRUE
135WRITE_STATUS = TRUE
136WRITE_LOCK_CAP = TRUE
137WRITE_LOCK_STATUS = TRUE
138READ_DISABLED_CAP = TRUE
139READ_ENABLED_CAP = TRUE
140READ_STATUS = TRUE
141READ_LOCK_CAP = TRUE
142READ_LOCK_STATUS = TRUE
143
144################################################################################
145#
146# The INF statements point to EDK component and EDK II module INF files, which will be placed into this FV image.
147# Parsing tools will scan the INF file to determine the type of component or module.
148# The component or module type is used to reference the standard rules
149# defined elsewhere in the FDF file.
150#
151# The format for INF statements is:
152# INF $(PathAndInfFileName)
153#
154################################################################################
155##
156# PEI Phase modules
157##
158##
159# PEI Apriori file example, more PEIM module added later.
160##
161APRIORI PEI {
162 INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
163 INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
164 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
165 }
166APRIORI DXE {
167 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
168 INF InOsEmuPkg/MetronomeDxe/Metronome.inf
169 }
andrewfish65e3f332011-05-14 16:00:22 +0000170INF InOsEmuPkg/Sec/Sec.inf
andrewfish949f3882011-05-11 18:31:20 +0000171INF MdeModulePkg/Core/Pei/PeiMain.inf
172INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
173INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
174INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
175INF InOsEmuPkg/BootModePei/BootModePei.inf
176INF InOsEmuPkg/AutoScanPei/AutoScanPei.inf
177INF InOsEmuPkg/FirmwareVolumePei/FirmwareVolumePei.inf
178INF InOsEmuPkg/FlashMapPei/FlashMapPei.inf
179INF InOsEmuPkg/ThunkPpiToProtocolPei/ThunkPpiToProtocolPei.inf
180INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
181INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
182
183##
184# DXE Phase modules
185##
186INF MdeModulePkg/Core/Dxe/DxeMain.inf
187INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
188INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
189INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
190INF InOsEmuPkg/MetronomeDxe/Metronome.inf
191INF InOsEmuPkg/RealTimeClockRuntimeDxe/RealTimeClock.inf
192INF InOsEmuPkg/ResetRuntimeDxe/Reset.inf
193INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
194INF InOsEmuPkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
195INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
196INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
197INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
198INF InOsEmuPkg/EmuThunkDxe/EmuThunk.inf
199INF InOsEmuPkg/CpuRuntimeDxe/Cpu.inf
200INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
201INF InOsEmuPkg/MiscSubClassPlatformDxe/MiscSubClassDriver.inf
202INF InOsEmuPkg/TimerDxe/Timer.inf
203INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
204INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
205INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
206INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
207INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
208INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
209INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
andrewfish7e284ac2011-06-08 02:34:12 +0000210
211INF EmbeddedPkg/SerialDxe/SerialDxe.inf
andrewfish949f3882011-05-11 18:31:20 +0000212INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
213INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
214INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
215INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
216INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
217INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
218INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
219INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
220INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
221INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
222
223INF InOsEmuPkg/EmuBusDriverDxe/EmuBusDriverDxe.inf
224INF InOsEmuPkg/EmuGopDxe/EmuGopDxe.inf
225INF InOsEmuPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystemDxe.inf
andrewfish033d0e52011-06-03 03:31:32 +0000226INF InOsEmuPkg/EmuBlockIoDxe/EmuBlockIoDxe.inf
andrewfish949f3882011-05-11 18:31:20 +0000227
andrewfish949f3882011-05-11 18:31:20 +0000228INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
229INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
230INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
231INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
232INF MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf
233INF MdeModulePkg/Application/HelloWorld/HelloWorld.inf
234
235#
236# Network stack drivers
237#
238!if $(NETWORK_SUPPORT)
andrewfish033d0e52011-06-03 03:31:32 +0000239INF InOsEmuPkg/EmuSnpDxe/EmuSnpDxe.inf
andrewfish949f3882011-05-11 18:31:20 +0000240!endif
241INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
242INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
243INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
244INF MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
245INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
246INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
247INF MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
248INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
249INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
250INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
251
252
jljusten72a44be2011-05-15 17:23:33 +0000253!if $(BUILD_FAT)
andrewfish949f3882011-05-11 18:31:20 +0000254INF FatPkg/EnhancedFatDxe/Fat.inf
255!else
256# Used checked in Visual Studio binaries
andrewfishd59326d2011-05-31 20:23:36 +0000257FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {
258 SECTION PE32 = FatBinPkg/EnhancedFatDxe/X64/Fat.efi
259 }
andrewfish949f3882011-05-11 18:31:20 +0000260!endif
261
jljusten72a44be2011-05-15 17:23:33 +0000262!if $(BUILD_NEW_SHELL)
263INF ShellPkg/Application/Shell/Shell.inf
264!else
andrewfishd59326d2011-05-31 20:23:36 +0000265# Used checked in Visual Studio binaries
266FILE APPLICATION = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile) {
267 SECTION PE32 = EdkShellBinPkg/FullShell/X64/Shell_Full.efi
268 }
jljusten72a44be2011-05-15 17:23:33 +0000269!endif
andrewfish949f3882011-05-11 18:31:20 +0000270
271FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
272 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
273}
274
275
276################################################################################
277#
278# Rules are use with the [FV] section's module INF type to define
279# how an FFS file is created for a given INF file. The following Rule are the default
280# rules for the different module type. User can add the customized rules to define the
281# content of the FFS file.
282#
283################################################################################
284
285
286############################################################################
287# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
288############################################################################
289#
290#[Rule.Common.DXE_DRIVER]
291# FILE DRIVER = $(NAMED_GUID) {
292# DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
293# COMPRESS PI_STD {
294# GUIDED {
295# PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
296# UI STRING="$(MODULE_NAME)" Optional
297# VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
298# }
299# }
300# }
301#
302############################################################################
andrewfish65e3f332011-05-14 16:00:22 +0000303[Rule.Common.SEC]
304 FILE SEC = $(NAMED_GUID) {
305 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
306 UI STRING ="$(MODULE_NAME)" Optional
307 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
308 }
309
andrewfish949f3882011-05-11 18:31:20 +0000310
311[Rule.Common.PEI_CORE]
312 FILE PEI_CORE = $(NAMED_GUID) {
313 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
314 UI STRING ="$(MODULE_NAME)" Optional
315 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
316 }
317
318[Rule.Common.PEIM]
319 FILE PEIM = $(NAMED_GUID) {
320 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
321 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
322 UI STRING="$(MODULE_NAME)" Optional
323 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
324 }
325
326[Rule.Common.DXE_CORE]
327 FILE DXE_CORE = $(NAMED_GUID) {
328 COMPRESS PI_STD {
329 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
330 UI STRING="$(MODULE_NAME)" Optional
331 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
332 }
333 }
334
335[Rule.Common.UEFI_DRIVER]
336 FILE DRIVER = $(NAMED_GUID) {
337 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
338 COMPRESS PI_STD {
339 GUIDED {
340 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
341 UI STRING="$(MODULE_NAME)" Optional
342 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
343 }
344 }
345 }
346
347[Rule.Common.DXE_DRIVER]
348 FILE DRIVER = $(NAMED_GUID) {
349 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
350 COMPRESS PI_STD {
351 GUIDED {
352 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
353 UI STRING="$(MODULE_NAME)" Optional
354 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
355 }
356 }
357 }
358
359[Rule.Common.DXE_RUNTIME_DRIVER]
360 FILE DRIVER = $(NAMED_GUID) {
361 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
362 COMPRESS PI_STD {
363 GUIDED {
364 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
365 UI STRING="$(MODULE_NAME)" Optional
366 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
367 }
368 }
369 }
370
371[Rule.Common.UEFI_APPLICATION]
372 FILE APPLICATION = $(NAMED_GUID) {
373 COMPRESS PI_STD {
374 GUIDED {
375 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
376 UI STRING="$(MODULE_NAME)" Optional
377 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
378 }
379 }
380 }
381
382[Rule.Common.UEFI_DRIVER.BINARY]
383 FILE DRIVER = $(NAMED_GUID) {
384 DXE_DEPEX DXE_DEPEX Optional |.depex
385 PE32 PE32 |.efi
386 UI STRING="$(MODULE_NAME)" Optional
387 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
388 }
389
390[Rule.Common.UEFI_APPLICATION.BINARY]
391 FILE APPLICATION = $(NAMED_GUID) {
392 PE32 PE32 |.efi
393 UI STRING="$(MODULE_NAME)" Optional
394 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
395 }
396