blob: c1de3badc5f67c910ad04ee3635df7da6185c824 [file] [log] [blame]
lgao47b202cb2010-02-23 23:58:38 +00001## @file
qwang125fd5fcd2008-01-21 14:42:45 +00002# This is NT32 FDF file with UEFI HII features enabled
klu2a9ce5752007-07-27 05:33:01 +00003#
lgao47b202cb2010-02-23 23:58:38 +00004# Copyright (c) 2007 - 2010, Intel Corporation
klu2a9ce5752007-07-27 05:33:01 +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#
lgao424491cf2007-07-03 03:10:14 +000014
lgao4f5d74f62007-07-03 09:10:26 +000015################################################################################
16#
17# FD Section
vanjeff7800ef42007-07-16 06:38:10 +000018# The [FD] Section is made up of the definition statements and a
19# description of what goes into the Flash Device Image. Each FD section
lgao4d88bd7a2007-07-26 06:35:29 +000020# defines one flash "device" image. A flash device image may be one of
vanjeff7800ef42007-07-16 06:38:10 +000021# the following: Removable media bootable image (like a boot floppy
lgao4d88bd7a2007-07-26 06:35:29 +000022# image,) an Option ROM image (that would be "flashed" into an add-in
qhuang88df425c2007-08-17 06:57:21 +000023# card,) a System "Flash" image (that would be burned into a system's
lgao4d88bd7a2007-07-26 06:35:29 +000024# flash) or an Update ("Capsule") image that will be used to update and
lgao4f5d74f62007-07-03 09:10:26 +000025# existing system flash.
26#
27################################################################################
lgao4ae8432d2008-09-09 02:53:35 +000028[FD.Nt32]
lgao4c4396d62007-09-10 05:46:12 +000029BaseAddress = 0x0|gEfiNt32PkgTokenSpaceGuid.PcdWinNtFdBaseAddress #The base address of the FLASH Device.
30Size = 0x002a0000 #The size in bytes of the FLASH Device
lgao424491cf2007-07-03 03:10:14 +000031ErasePolarity = 1
32BlockSize = 0x10000
33NumBlocks = 0x2a
34
lgao4f5d74f62007-07-03 09:10:26 +000035################################################################################
36#
vanjeff7800ef42007-07-16 06:38:10 +000037# Following are lists of FD Region layout which correspond to the locations of different
38# images within the flash device.
39#
lgao4f5d74f62007-07-03 09:10:26 +000040# Regions must be defined in ascending order and may not overlap.
41#
lgao4d88bd7a2007-07-26 06:35:29 +000042# A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
43# the pipe "|" character, followed by the size of the region, also in hex with the leading
44# "0x" characters. Like:
lgao4f5d74f62007-07-03 09:10:26 +000045# Offset|Size
46# PcdOffsetCName|PcdSizeCName
47# RegionType <FV, DATA, or FILE>
48#
49################################################################################
lgao424491cf2007-07-03 03:10:14 +0000500x00000000|0x00280000
lgao4c4396d62007-09-10 05:46:12 +000051gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashFvRecoveryBase|gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashFvRecoverySize
lgao424491cf2007-07-03 03:10:14 +000052FV = FvRecovery
53
540x00280000|0x0000c000
lgao4c4396d62007-09-10 05:46:12 +000055gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageVariableBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
lgao4498f4b32008-02-28 12:28:20 +000056#NV_VARIABLE_STORE
lgao424491cf2007-07-03 03:10:14 +000057DATA = {
lgao4498f4b32008-02-28 12:28:20 +000058 ## This is the EFI_FIRMWARE_VOLUME_HEADER
59 # ZeroVector []
vanjeff7800ef42007-07-16 06:38:10 +000060 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
61 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
lgao4498f4b32008-02-28 12:28:20 +000062 # FileSystemGuid: gEfiSystemNvDataFvGuid =
63 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
64 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
65 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
66 # FvLength: 0x20000
vanjeff7800ef42007-07-16 06:38:10 +000067 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
lgao4498f4b32008-02-28 12:28:20 +000068 #Signature "_FVH" #Attributes
69 0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,
70 #HeaderLength #CheckSum #ExtHeaderOffset #Reserved #Revision
71 0x48, 0x00, 0x36, 0x09, 0x00, 0x00, 0x00, 0x02,
72 #Blockmap[0]: 2 Blocks * 0x10000 Bytes / Block
vanjeff7800ef42007-07-16 06:38:10 +000073 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
lgao4498f4b32008-02-28 12:28:20 +000074 #Blockmap[1]: End
vanjeff7800ef42007-07-16 06:38:10 +000075 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
lgao4498f4b32008-02-28 12:28:20 +000076 ## This is the VARIABLE_STORE_HEADER
eric_tian3709c4c2009-02-27 05:35:08 +000077 #Signature: gEfiVariableGuid =
78 # { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d }}
79 0x16, 0x36, 0xcf, 0xdd, 0x75, 0x32, 0x64, 0x41,
80 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d,
81 #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0xBFB8
82 # This can speed up the Variable Dispatch a bit.
83 0xB8, 0xBF, 0x00, 0x00,
lgao4498f4b32008-02-28 12:28:20 +000084 #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32
85 0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
lgao424491cf2007-07-03 03:10:14 +000086}
87
880x0028c000|0x00002000
lgao4498f4b32008-02-28 12:28:20 +000089#NV_EVENT_LOG
lgao4c4396d62007-09-10 05:46:12 +000090gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageEventLogBase|gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageEventLogSize
lgao424491cf2007-07-03 03:10:14 +000091
920x0028e000|0x00002000
lgao4c4396d62007-09-10 05:46:12 +000093gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageFtwWorkingBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
lgao4498f4b32008-02-28 12:28:20 +000094#NV_FTW_WORKING
vanjeff7800ef42007-07-16 06:38:10 +000095DATA = {
lgao4498f4b32008-02-28 12:28:20 +000096 # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature = gEfiSystemNvDataFvGuid =
97 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
98 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
99 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
100 # Crc:UINT32 #WorkingBlockValid:1, WorkingBlockInvalid:1, Reserved
lgao42a958a02008-07-17 07:05:21 +0000101 0x77, 0x13, 0x9B, 0xD7, 0xFE, 0xFF, 0xFF, 0xFF,
102 # WriteQueueSize: UINT64
103 0xE0, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
lgao424491cf2007-07-03 03:10:14 +0000104}
105
1060x00290000|0x00010000
lgao4498f4b32008-02-28 12:28:20 +0000107#NV_FTW_SPARE
lgao4c4396d62007-09-10 05:46:12 +0000108gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageFtwSpareBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
lgao424491cf2007-07-03 03:10:14 +0000109
lgao4f5d74f62007-07-03 09:10:26 +0000110################################################################################
111#
112# FV Section
113#
114# [FV] section is used to define what components or modules are placed within a flash
115# device file. This section also defines order the components and modules are positioned
116# within the image. The [FV] section consists of define statements, set statements and
117# module statements.
118#
119################################################################################
lgao424491cf2007-07-03 03:10:14 +0000120[FV.FvRecovery]
vanjeff7800ef42007-07-16 06:38:10 +0000121FvAlignment = 16 #FV alignment and FV attributes setting.
lgao424491cf2007-07-03 03:10:14 +0000122ERASE_POLARITY = 1
123MEMORY_MAPPED = TRUE
124STICKY_WRITE = TRUE
125LOCK_CAP = TRUE
126LOCK_STATUS = TRUE
127WRITE_DISABLED_CAP = TRUE
128WRITE_ENABLED_CAP = TRUE
129WRITE_STATUS = TRUE
130WRITE_LOCK_CAP = TRUE
131WRITE_LOCK_STATUS = TRUE
132READ_DISABLED_CAP = TRUE
133READ_ENABLED_CAP = TRUE
134READ_STATUS = TRUE
135READ_LOCK_CAP = TRUE
136READ_LOCK_STATUS = TRUE
klu2eb920362009-03-10 09:27:59 +0000137FvNameGuid = 6D99E806-3D38-42c2-A095-5F4300BFD7DC
lgao424491cf2007-07-03 03:10:14 +0000138
lgao4f5d74f62007-07-03 09:10:26 +0000139################################################################################
140#
141# The INF statements point to EDK component and EDK II module INF files, which will be placed into this FV image.
142# Parsing tools will scan the INF file to determine the type of component or module.
vanjeff7800ef42007-07-16 06:38:10 +0000143# The component or module type is used to reference the standard rules
lgao4f5d74f62007-07-03 09:10:26 +0000144# defined elsewhere in the FDF file.
145#
146# The format for INF statements is:
147# INF $(PathAndInfFileName)
148#
149################################################################################
klu204eced52007-07-06 14:56:41 +0000150 ##
151 # PEI Phase modules
152 ##
qwang129c7aa182007-10-15 11:17:01 +0000153 ##
154 # PEI Apriori file example, more PEIM module added later.
155 ##
156APRIORI PEI {
157 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
xli2425126a02009-11-03 02:39:10 +0000158 INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
xli24164393a2009-12-25 07:29:33 +0000159 INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
xli2425126a02009-11-03 02:39:10 +0000160 INF Nt32Pkg/WinNtOemHookStatusCodeHandlerPei/WinNtOemHookStatusCodeHandlerPei.inf
qwang129c7aa182007-10-15 11:17:01 +0000161 }
qwang1200b73212007-10-19 12:02:31 +0000162APRIORI DXE {
163 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
164 INF Nt32Pkg/MetronomeDxe/MetronomeDxe.inf
165 }
qwang129c7aa182007-10-15 11:17:01 +0000166
mdkinneya5b8a502007-08-17 21:04:53 +0000167INF MdeModulePkg/Core/Pei/PeiMain.inf
168INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
xli2425126a02009-11-03 02:39:10 +0000169INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
xli24164393a2009-12-25 07:29:33 +0000170INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
xli2425126a02009-11-03 02:39:10 +0000171INF Nt32Pkg/WinNtOemHookStatusCodeHandlerPei/WinNtOemHookStatusCodeHandlerPei.inf
mdkinneya5b8a502007-08-17 21:04:53 +0000172INF Nt32Pkg/BootModePei/BootModePei.inf
klu2ba82cb62010-01-04 04:45:44 +0000173INF Nt32Pkg/StallPei/StallPei.inf
mdkinneya5b8a502007-08-17 21:04:53 +0000174INF Nt32Pkg/WinNtFlashMapPei/WinNtFlashMapPei.inf
mdkinneya5b8a502007-08-17 21:04:53 +0000175INF Nt32Pkg/WinNtAutoScanPei/WinNtAutoScanPei.inf
176INF Nt32Pkg/WinNtFirmwareVolumePei/WinNtFirmwareVolumePei.inf
klu258dcdad2008-02-29 18:24:43 +0000177INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
mdkinneya5b8a502007-08-17 21:04:53 +0000178INF Nt32Pkg/WinNtThunkPPIToProtocolPei/WinNtThunkPPIToProtocolPei.inf
179INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
vanjeff7800ef42007-07-16 06:38:10 +0000180
klu204eced52007-07-06 14:56:41 +0000181 ##
182 # DXE Phase modules
183 ##
mdkinneya5b8a502007-08-17 21:04:53 +0000184INF MdeModulePkg/Core/Dxe/DxeMain.inf
lgao4c47eca12007-11-30 09:25:57 +0000185INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
186INF Nt32Pkg/MetronomeDxe/MetronomeDxe.inf
187INF Nt32Pkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
188INF Nt32Pkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
189INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
190INF Nt32Pkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
191INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
192INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
davidhuang1fdd39d2009-11-20 04:02:03 +0000193INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
lgao4c47eca12007-11-30 09:25:57 +0000194INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
195INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
qwang125fd5fcd2008-01-21 14:42:45 +0000196INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
lgao4c47eca12007-11-30 09:25:57 +0000197INF Nt32Pkg/WinNtThunkDxe/WinNtThunkDxe.inf
198INF Nt32Pkg/CpuRuntimeDxe/CpuRuntimeDxe.inf
klu25c5a2ca2009-01-23 07:26:59 +0000199INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
lgao4eba3ff42009-03-04 01:31:34 +0000200INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
lgao4c47eca12007-11-30 09:25:57 +0000201INF IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErrDxe.inf
202INF Nt32Pkg/MiscSubClassPlatformDxe/MiscSubClassPlatformDxe.inf
203INF Nt32Pkg/TimerDxe/TimerDxe.inf
xli2425126a02009-11-03 02:39:10 +0000204INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
xli24164393a2009-12-25 07:29:33 +0000205INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
xli2425126a02009-11-03 02:39:10 +0000206INF Nt32Pkg/WinNtOemHookStatusCodeHandlerDxe/WinNtOemHookStatusCodeHandlerDxe.inf
lgao4c47eca12007-11-30 09:25:57 +0000207INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
jlin169efcf132009-03-20 07:53:09 +0000208INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
lgao4c47eca12007-11-30 09:25:57 +0000209INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
210INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
211INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
212INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
213INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
214INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
215INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
216INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
217INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
qwang125fd5fcd2008-01-21 14:42:45 +0000218INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
qhuang8fcf24ba2009-02-23 03:20:29 +0000219INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
lgao497ef8cf2009-03-11 03:06:25 +0000220INF RuleOverride = TIANOCOMPRESSED MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
davidhuang061b1c22009-10-20 03:44:03 +0000221INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
lgao4d46f3632009-07-09 05:48:35 +0000222INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
223INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
lgao4c47eca12007-11-30 09:25:57 +0000224INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
225INF Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriverDxe.inf
226INF Nt32Pkg/WinNtBlockIoDxe/WinNtBlockIoDxe.inf
227INF Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIoDxe.inf
228INF Nt32Pkg/WinNtGopDxe/WinNtGopDxe.inf
229INF Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystemDxe.inf
lgao427431722009-02-24 15:37:53 +0000230INF MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf
lgao4785a1212009-04-13 06:24:36 +0000231INF MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf
lgao4f5d74f62007-07-03 09:10:26 +0000232
eric_tian3709c4c2009-02-27 05:35:08 +0000233INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
234INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
235INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
236INF MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
237INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
238INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
xdu21b14ec42010-03-03 10:47:27 +0000239INF MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
eric_tian3709c4c2009-02-27 05:35:08 +0000240INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
241INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
242INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
243INF Nt32Pkg/SnpNt32Dxe/SnpNt32Dxe.inf
vanjeffdda34dc2009-09-03 09:09:58 +0000244INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
eric_tian3709c4c2009-02-27 05:35:08 +0000245INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
lgao4f5d74f62007-07-03 09:10:26 +0000246################################################################################
247#
vanjeff7800ef42007-07-16 06:38:10 +0000248# FILE statements are provided so that a platform integrator can include
249# complete EFI FFS files, as well as a method for constructing FFS files
250# using curly "{}" brace scoping. The following three FILEs are
lgao4f5d74f62007-07-03 09:10:26 +0000251# for binary shell, binary fat and logo module.
252#
253################################################################################
lgao4d46f3632009-07-09 05:48:35 +0000254FILE APPLICATION = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile) {
255 SECTION PE32 = EdkShellBinPkg/FullShell/Ia32/Shell_Full.efi
klu204eced52007-07-06 14:56:41 +0000256 }
lgao4ae8432d2008-09-09 02:53:35 +0000257
lgao4c47eca12007-11-30 09:25:57 +0000258FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {
lgao4ae8432d2008-09-09 02:53:35 +0000259 SECTION PE32 = FatBinPkg/EnhancedFatDxe/Ia32/Fat.efi
lgao4c47eca12007-11-30 09:25:57 +0000260 }
lgao4ae8432d2008-09-09 02:53:35 +0000261
lgao4d46f3632009-07-09 05:48:35 +0000262FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
lgao4ae8432d2008-09-09 02:53:35 +0000263 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
lgao4c47eca12007-11-30 09:25:57 +0000264 }
265
lgao4f5d74f62007-07-03 09:10:26 +0000266
267################################################################################
268#
qhuang88df425c2007-08-17 06:57:21 +0000269# Rules are use with the [FV] section's module INF type to define
lgao4f5d74f62007-07-03 09:10:26 +0000270# how an FFS file is created for a given INF file. The following Rule are the default
271# rules for the different module type. User can add the customized rules to define the
272# content of the FFS file.
273#
274################################################################################
mdkinney29c36222007-08-16 21:47:44 +0000275
276
277############################################################################
278# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
279############################################################################
280#
281#[Rule.Common.DXE_DRIVER]
lgao4c4396d62007-09-10 05:46:12 +0000282# FILE DRIVER = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000283# DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
mdkinney29c36222007-08-16 21:47:44 +0000284# COMPRESS PI_STD {
285# GUIDED {
lgao42014a812010-03-01 06:47:58 +0000286# PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
lgao4c4396d62007-09-10 05:46:12 +0000287# UI STRING="$(MODULE_NAME)" Optional
288# VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
mdkinney29c36222007-08-16 21:47:44 +0000289# }
290# }
291# }
292#
293############################################################################
294
lgao424491cf2007-07-03 03:10:14 +0000295[Rule.Common.PEI_CORE]
mdkinney29c36222007-08-16 21:47:44 +0000296 FILE PEI_CORE = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000297 PE32 PE32 Align=4K $(INF_OUTPUT)/$(MODULE_NAME).efi
lgao4c4396d62007-09-10 05:46:12 +0000298 UI STRING ="$(MODULE_NAME)" Optional
299 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
lgao424491cf2007-07-03 03:10:14 +0000300 }
301
302[Rule.Common.PEIM]
mdkinney29c36222007-08-16 21:47:44 +0000303 FILE PEIM = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000304 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
305 PE32 PE32 Align=4K $(INF_OUTPUT)/$(MODULE_NAME).efi
lgao4c4396d62007-09-10 05:46:12 +0000306 UI STRING="$(MODULE_NAME)" Optional
307 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
vanjeff7800ef42007-07-16 06:38:10 +0000308 }
lgao424491cf2007-07-03 03:10:14 +0000309
310[Rule.Common.DXE_CORE]
mdkinney29c36222007-08-16 21:47:44 +0000311 FILE DXE_CORE = $(NAMED_GUID) {
lgao424491cf2007-07-03 03:10:14 +0000312 COMPRESS PI_STD {
lgao42014a812010-03-01 06:47:58 +0000313 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
lgao4c4396d62007-09-10 05:46:12 +0000314 UI STRING="$(MODULE_NAME)" Optional
315 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
vanjeff7800ef42007-07-16 06:38:10 +0000316 }
lgao424491cf2007-07-03 03:10:14 +0000317 }
318
319[Rule.Common.UEFI_DRIVER]
mdkinney29c36222007-08-16 21:47:44 +0000320 FILE DRIVER = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000321 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
lgao424491cf2007-07-03 03:10:14 +0000322 COMPRESS PI_STD {
323 GUIDED {
lgao42014a812010-03-01 06:47:58 +0000324 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
lgao4c4396d62007-09-10 05:46:12 +0000325 UI STRING="$(MODULE_NAME)" Optional
326 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
lgao424491cf2007-07-03 03:10:14 +0000327 }
328 }
vanjeff7800ef42007-07-16 06:38:10 +0000329 }
lgao424491cf2007-07-03 03:10:14 +0000330
lgao497ef8cf2009-03-11 03:06:25 +0000331[Rule.Common.UEFI_DRIVER.TIANOCOMPRESSED]
332 FILE DRIVER = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000333 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
lgao497ef8cf2009-03-11 03:06:25 +0000334 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
lgao42014a812010-03-01 06:47:58 +0000335 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
lgao497ef8cf2009-03-11 03:06:25 +0000336 UI STRING="$(MODULE_NAME)" Optional
337 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
338 }
339 }
340
lgao424491cf2007-07-03 03:10:14 +0000341[Rule.Common.DXE_DRIVER]
mdkinney29c36222007-08-16 21:47:44 +0000342 FILE DRIVER = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000343 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
lgao424491cf2007-07-03 03:10:14 +0000344 COMPRESS PI_STD {
345 GUIDED {
lgao42014a812010-03-01 06:47:58 +0000346 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
lgao4c4396d62007-09-10 05:46:12 +0000347 UI STRING="$(MODULE_NAME)" Optional
348 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
lgao424491cf2007-07-03 03:10:14 +0000349 }
350 }
vanjeff7800ef42007-07-16 06:38:10 +0000351 }
lgao424491cf2007-07-03 03:10:14 +0000352
353[Rule.Common.DXE_RUNTIME_DRIVER]
mdkinney29c36222007-08-16 21:47:44 +0000354 FILE DRIVER = $(NAMED_GUID) {
lgao42014a812010-03-01 06:47:58 +0000355 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
lgao424491cf2007-07-03 03:10:14 +0000356 COMPRESS PI_STD {
357 GUIDED {
lgao42014a812010-03-01 06:47:58 +0000358 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
lgao4c4396d62007-09-10 05:46:12 +0000359 UI STRING="$(MODULE_NAME)" Optional
360 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
lgao424491cf2007-07-03 03:10:14 +0000361 }
362 }
vanjeff7800ef42007-07-16 06:38:10 +0000363 }
lgao424491cf2007-07-03 03:10:14 +0000364
365[Rule.Common.UEFI_APPLICATION]
mdkinney29c36222007-08-16 21:47:44 +0000366 FILE APPLICATION = $(NAMED_GUID) {
lgao424491cf2007-07-03 03:10:14 +0000367 COMPRESS PI_STD {
368 GUIDED {
lgao42014a812010-03-01 06:47:58 +0000369 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
lgao4c4396d62007-09-10 05:46:12 +0000370 UI STRING="$(MODULE_NAME)" Optional
371 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
lgao424491cf2007-07-03 03:10:14 +0000372 }
373 }
vanjeff7800ef42007-07-16 06:38:10 +0000374 }