]> git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/Nt32Pkg.fdf
UEFI HII: Merge UEFI HII support changes from branch.
[mirror_edk2.git] / Nt32Pkg / Nt32Pkg.fdf
1 # This is NT32 FDF file with UEFI HII features enabled
2 #
3 # Copyright (c) 2007, Intel Corporation
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php
9 #
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 #
13
14 ################################################################################
15 #
16 # FD Section
17 # The [FD] Section is made up of the definition statements and a
18 # description of what goes into the Flash Device Image. Each FD section
19 # defines one flash "device" image. A flash device image may be one of
20 # the following: Removable media bootable image (like a boot floppy
21 # image,) an Option ROM image (that would be "flashed" into an add-in
22 # card,) a System "Flash" image (that would be burned into a system's
23 # flash) or an Update ("Capsule") image that will be used to update and
24 # existing system flash.
25 #
26 ################################################################################
27 [FD.Fv_Recovery]
28 BaseAddress = 0x0|gEfiNt32PkgTokenSpaceGuid.PcdWinNtFdBaseAddress #The base address of the FLASH Device.
29 Size = 0x002a0000 #The size in bytes of the FLASH Device
30 ErasePolarity = 1
31 BlockSize = 0x10000
32 NumBlocks = 0x2a
33
34 ################################################################################
35 #
36 # Following are lists of FD Region layout which correspond to the locations of different
37 # images within the flash device.
38 #
39 # Regions must be defined in ascending order and may not overlap.
40 #
41 # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
42 # the pipe "|" character, followed by the size of the region, also in hex with the leading
43 # "0x" characters. Like:
44 # Offset|Size
45 # PcdOffsetCName|PcdSizeCName
46 # RegionType <FV, DATA, or FILE>
47 #
48 ################################################################################
49 0x00000000|0x00280000
50 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashFvRecoveryBase|gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashFvRecoverySize
51 FV = FvRecovery
52
53 0x00280000|0x0000c000
54 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageVariableBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
55 DATA = {
56 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
57 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
58 0x8d, 0x2b, 0xf1, 0xff, 0x96, 0x76, 0x8b, 0x4c,
59 0xa9, 0x85, 0x27, 0x47, 0x07, 0x5b, 0x4f, 0x50,
60 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
61 0x5f, 0x46, 0x56, 0x48, 0xff, 0x8c, 0xff, 0xff,
62 0x48, 0x00, 0x3b, 0x7c, 0x00, 0x00, 0x00, 0x01,
63 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
64 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
65 0x24, 0x56, 0x53, 0x53, 0xb8, 0xbf, 0x00, 0x00,
66 0x5a, 0xfe, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
67 }
68
69 0x0028c000|0x00002000
70 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageEventLogBase|gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageEventLogSize
71
72 0x0028e000|0x00002000
73 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageFtwWorkingBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
74 DATA = {
75 0x8d, 0x2b, 0xf1, 0xff, 0x96, 0x76, 0x8b, 0x4c,
76 0xa9, 0x85, 0x27, 0x47, 0x07, 0x5b, 0x4f, 0x50,
77 0xd2, 0x5f, 0x05, 0x9e, 0xfe, 0xff, 0xff, 0xff,
78 0xff, 0xff, 0xff, 0xff, 0xe0, 0x1f, 0x00, 0x00
79 }
80
81 0x00290000|0x00010000
82 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageFtwSpareBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
83
84 ################################################################################
85 #
86 # FV Section
87 #
88 # [FV] section is used to define what components or modules are placed within a flash
89 # device file. This section also defines order the components and modules are positioned
90 # within the image. The [FV] section consists of define statements, set statements and
91 # module statements.
92 #
93 ################################################################################
94 [FV.FvRecovery]
95 FvAlignment = 16 #FV alignment and FV attributes setting.
96 ERASE_POLARITY = 1
97 MEMORY_MAPPED = TRUE
98 STICKY_WRITE = TRUE
99 LOCK_CAP = TRUE
100 LOCK_STATUS = TRUE
101 WRITE_DISABLED_CAP = TRUE
102 WRITE_ENABLED_CAP = TRUE
103 WRITE_STATUS = TRUE
104 WRITE_LOCK_CAP = TRUE
105 WRITE_LOCK_STATUS = TRUE
106 READ_DISABLED_CAP = TRUE
107 READ_ENABLED_CAP = TRUE
108 READ_STATUS = TRUE
109 READ_LOCK_CAP = TRUE
110 READ_LOCK_STATUS = TRUE
111
112 ################################################################################
113 #
114 # The INF statements point to EDK component and EDK II module INF files, which will be placed into this FV image.
115 # Parsing tools will scan the INF file to determine the type of component or module.
116 # The component or module type is used to reference the standard rules
117 # defined elsewhere in the FDF file.
118 #
119 # The format for INF statements is:
120 # INF $(PathAndInfFileName)
121 #
122 ################################################################################
123 ##
124 # PEI Phase modules
125 ##
126 ##
127 # PEI Apriori file example, more PEIM module added later.
128 ##
129 APRIORI PEI {
130 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
131 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.inf
132 }
133 APRIORI DXE {
134 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
135 INF Nt32Pkg/MetronomeDxe/MetronomeDxe.inf
136 }
137
138 INF MdeModulePkg/Core/Pei/PeiMain.inf
139 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
140 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.inf
141 INF Nt32Pkg/BootModePei/BootModePei.inf
142 INF Nt32Pkg/WinNtFlashMapPei/WinNtFlashMapPei.inf
143 INF MdeModulePkg/Universal/MemoryTest/BaseMemoryTestPei/BaseMemoryTestPei.inf
144 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
145 INF Nt32Pkg/WinNtAutoScanPei/WinNtAutoScanPei.inf
146 INF Nt32Pkg/WinNtFirmwareVolumePei/WinNtFirmwareVolumePei.inf
147 INF Nt32Pkg/WinNtThunkPPIToProtocolPei/WinNtThunkPPIToProtocolPei.inf
148 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
149
150 ##
151 # DXE Phase modules
152 ##
153 INF MdeModulePkg/Core/Dxe/DxeMain.inf
154 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
155 INF Nt32Pkg/MetronomeDxe/MetronomeDxe.inf
156 INF Nt32Pkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
157 INF Nt32Pkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
158 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
159 INF Nt32Pkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
160 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
161 INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
162 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
163 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
164 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
165 INF Nt32Pkg/WinNtThunkDxe/WinNtThunkDxe.inf
166 INF Nt32Pkg/CpuRuntimeDxe/CpuRuntimeDxe.inf
167 INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
168 INF MdeModulePkg/Universal/FirmwareVolume/FaultTolerantWriteDxe/FtwLite.inf
169 INF IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErrDxe.inf
170 INF Nt32Pkg/MiscSubClassPlatformDxe/MiscSubClassPlatformDxe.inf
171 INF Nt32Pkg/TimerDxe/TimerDxe.inf
172 INF IntelFrameworkModulePkg/Universal/StatusCode/Dxe/DxeStatusCode.inf
173 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
174 INF MdeModulePkg/Universal/WatchDogTimerDxe/WatchDogTimer.inf
175 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
176 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
177 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
178 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
179 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
180 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
181 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
182 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
183 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
184 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
185 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
186 INF IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
187 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf ##This driver follows UEFI specification definition
188 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf ##This driver follows UEFI specification definition
189 INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
190 INF Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriverDxe.inf
191 INF Nt32Pkg/WinNtBlockIoDxe/WinNtBlockIoDxe.inf
192 INF Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIoDxe.inf
193 INF Nt32Pkg/WinNtGopDxe/WinNtGopDxe.inf
194 INF Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystemDxe.inf
195 INF MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf
196 INF MdeModulePkg/Application/HelloWorld/HelloWorld.inf
197
198 ################################################################################
199 #
200 # FILE statements are provided so that a platform integrator can include
201 # complete EFI FFS files, as well as a method for constructing FFS files
202 # using curly "{}" brace scoping. The following three FILEs are
203 # for binary shell, binary fat and logo module.
204 #
205 ################################################################################
206 FILE APPLICATION = c57ad6b7-0515-40a8-9d21-551652854e37 {
207 SECTION COMPRESS PI_STD {
208 SECTION GUIDED {
209 SECTION PE32 = EdkShellBinPkg/FullShell/ia32/Shell_Full.efi
210 }
211 }
212 }
213 FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {
214 SECTION COMPRESS PI_STD {
215 SECTION GUIDED {
216 SECTION PE32 = FatBinPkg/EnhancedFatDxe/Ia32/Fat.efi
217 }
218 }
219 }
220 FILE FREEFORM = 7BB28B99-61BB-11D5-9A5D-0090273FC14D {
221 SECTION COMPRESS PI_STD {
222 SECTION GUIDED {
223 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
224 }
225 }
226 }
227
228
229 ################################################################################
230 #
231 # Rules are use with the [FV] section's module INF type to define
232 # how an FFS file is created for a given INF file. The following Rule are the default
233 # rules for the different module type. User can add the customized rules to define the
234 # content of the FFS file.
235 #
236 ################################################################################
237
238
239 ############################################################################
240 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
241 ############################################################################
242 #
243 #[Rule.Common.DXE_DRIVER]
244 # FILE DRIVER = $(NAMED_GUID) {
245 # DXE_DEPEX DXE_DEPEX Optional |.depex
246 # COMPRESS PI_STD {
247 # GUIDED {
248 # PE32 PE32 |.efi
249 # UI STRING="$(MODULE_NAME)" Optional
250 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
251 # }
252 # }
253 # }
254 #
255 ############################################################################
256
257 [Rule.Common.PEI_CORE]
258 FILE PEI_CORE = $(NAMED_GUID) {
259 PE32 PE32 |.efi
260 UI STRING ="$(MODULE_NAME)" Optional
261 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
262 }
263
264 [Rule.Common.PEIM]
265 FILE PEIM = $(NAMED_GUID) {
266 PEI_DEPEX PEI_DEPEX Optional |.depex
267 PE32 PE32 |.efi
268 UI STRING="$(MODULE_NAME)" Optional
269 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
270 }
271
272 [Rule.Common.PEIM.TIANOCOMPRESSED]
273 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
274 PEI_DEPEX PEI_DEPEX Optional |.depex
275 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
276 PE32 PE32 |.efi
277 UI STRING="$(MODULE_NAME)" Optional
278 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
279 }
280 }
281
282 [Rule.Common.DXE_CORE]
283 FILE DXE_CORE = $(NAMED_GUID) {
284 COMPRESS PI_STD {
285 PE32 PE32 |.efi
286 UI STRING="$(MODULE_NAME)" Optional
287 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
288 }
289 }
290
291 [Rule.Common.UEFI_DRIVER]
292 FILE DRIVER = $(NAMED_GUID) {
293 DXE_DEPEX DXE_DEPEX Optional |.depex
294 COMPRESS PI_STD {
295 GUIDED {
296 PE32 PE32 |.efi
297 UI STRING="$(MODULE_NAME)" Optional
298 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
299 }
300 }
301 }
302
303 [Rule.Common.DXE_DRIVER]
304 FILE DRIVER = $(NAMED_GUID) {
305 DXE_DEPEX DXE_DEPEX Optional |.depex
306 COMPRESS PI_STD {
307 GUIDED {
308 PE32 PE32 |.efi
309 UI STRING="$(MODULE_NAME)" Optional
310 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
311 }
312 }
313 }
314
315 [Rule.Common.DXE_RUNTIME_DRIVER]
316 FILE DRIVER = $(NAMED_GUID) {
317 DXE_DEPEX DXE_DEPEX Optional |.depex
318 COMPRESS PI_STD {
319 GUIDED {
320 PE32 PE32 |.efi
321 UI STRING="$(MODULE_NAME)" Optional
322 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
323 }
324 }
325 }
326
327 [Rule.Common.UEFI_APPLICATION]
328 FILE APPLICATION = $(NAMED_GUID) {
329 COMPRESS PI_STD {
330 GUIDED {
331 PE32 PE32 |.efi
332 UI STRING="$(MODULE_NAME)" Optional
333 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
334 }
335 }
336 }