Remove dead command and clean up some coding style stuff.
[mirror_edk2.git] / UnixPkg / UnixPkg.fdf
CommitLineData
804405e7 1# This is Unix FDF file with UEFI HII features enabled\r
2#\r
3# Copyright (c) 2008, Intel Corporation\r
4#\r
5# All rights reserved. This program and the accompanying materials\r
6# are licensed and made available under the terms and conditions of the BSD License\r
7# which accompanies this distribution. The full text of the license may be found at\r
8# http://opensource.org/licenses/bsd-license.php\r
9#\r
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12#\r
13\r
14################################################################################\r
15#\r
16# FD Section\r
17# The [FD] Section is made up of the definition statements and a\r
18# description of what goes into the Flash Device Image. Each FD section\r
19# defines one flash "device" image. A flash device image may be one of\r
20# the following: Removable media bootable image (like a boot floppy\r
21# image,) an Option ROM image (that would be "flashed" into an add-in\r
22# card,) a System "Flash" image (that would be burned into a system's\r
23# flash) or an Update ("Capsule") image that will be used to update and\r
24# existing system flash.\r
25#\r
26################################################################################\r
27[FD.Fv_Recovery]\r
7ee3b613
A
28#\r
29# In OS X PEIMs are really XIP, so we need to make this address match the malloced \r
30# buffer for the FD (0x41000000). If this address does not match the FV will get\r
31# relocated in place (works, but not a great idea).\r
32#\r
33BaseAddress = 0x41000000|gEfiUnixPkgTokenSpaceGuid.PcdUnixFdBaseAddress #The base address of the FLASH Device.\r
34Size = 0x002a0000|gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareFdSize #The size in bytes of the FLASH Device\r
804405e7 35ErasePolarity = 1\r
36BlockSize = 0x10000\r
37NumBlocks = 0x2a\r
38\r
39################################################################################\r
40#\r
41# Following are lists of FD Region layout which correspond to the locations of different\r
42# images within the flash device.\r
43#\r
44# Regions must be defined in ascending order and may not overlap.\r
45#\r
46# A Layout Region start with a eight digit hex offset (leading "0x" required) followed by\r
47# the pipe "|" character, followed by the size of the region, also in hex with the leading\r
48# "0x" characters. Like:\r
49# Offset|Size\r
50# PcdOffsetCName|PcdSizeCName\r
51# RegionType <FV, DATA, or FILE>\r
52#\r
53################################################################################\r
540x00000000|0x00280000\r
55gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashFvRecoveryBase|gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashFvRecoverySize\r
56FV = FvRecovery\r
57\r
580x00280000|0x0000c000\r
59gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashNvStorageVariableBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize\r
60#NV_VARIABLE_STORE\r
61DATA = {\r
62 ## This is the EFI_FIRMWARE_VOLUME_HEADER\r
63 # ZeroVector []\r
64 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
65 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
66 # FileSystemGuid: gEfiSystemNvDataFvGuid =\r
67 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}\r
68 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,\r
69 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,\r
70 # FvLength: 0x20000\r
71 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,\r
72 # Signature "_FVH" #Attributes\r
73 0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,\r
74 # HeaderLength #CheckSum #ExtHeaderOffset #Reserved #Revision\r
75 0x48, 0x00, 0x36, 0x09, 0x00, 0x00, 0x00, 0x02,\r
76 # Blockmap[0]: 2 Blocks * 0x10000 Bytes / Block\r
77 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,\r
78 # Blockmap[1]: End\r
79 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
80 ## This is the VARIABLE_STORE_HEADER\r
3709c4cd 81 #Signature: gEfiVariableGuid =\r
82 # { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d }}\r
83 0x16, 0x36, 0xcf, 0xdd, 0x75, 0x32, 0x64, 0x41,\r
84 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d,\r
85 #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0xBFB8\r
86 # This can speed up the Variable Dispatch a bit.\r
87 0xB8, 0xBF, 0x00, 0x00,\r
804405e7 88 #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32\r
89 0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\r
90}\r
91\r
920x0028c000|0x00002000\r
93#NV_EVENT_LOG\r
94gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashNvStorageEventLogBase|gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashNvStorageEventLogSize\r
95\r
960x0028e000|0x00002000\r
97gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashNvStorageFtwWorkingBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize\r
98#NV_FTW_WORKING\r
99DATA = {\r
100 # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature = gEfiSystemNvDataFvGuid =\r
101 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}\r
102 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,\r
103 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,\r
104 # Crc:UINT32 #WorkingBlockValid:1, WorkingBlockInvalid:1, Reserved\r
c84588fd 105 0x77, 0x13, 0x9B, 0xD7, 0xFE, 0xFF, 0xFF, 0xFF,\r
106 # WriteQueueSize: UINT64\r
107 0xE0, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\r
804405e7 108}\r
109\r
1100x00290000|0x00010000\r
111#NV_FTW_SPARE\r
112gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashNvStorageFtwSpareBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize\r
113\r
114################################################################################\r
115#\r
116# FV Section\r
117#\r
118# [FV] section is used to define what components or modules are placed within a flash\r
119# device file. This section also defines order the components and modules are positioned\r
120# within the image. The [FV] section consists of define statements, set statements and\r
121# module statements.\r
122#\r
123################################################################################\r
124[FV.FvRecovery]\r
125FvAlignment = 16 #FV alignment and FV attributes setting.\r
126ERASE_POLARITY = 1\r
127MEMORY_MAPPED = TRUE\r
128STICKY_WRITE = TRUE\r
129LOCK_CAP = TRUE\r
130LOCK_STATUS = TRUE\r
131WRITE_DISABLED_CAP = TRUE\r
132WRITE_ENABLED_CAP = TRUE\r
133WRITE_STATUS = TRUE\r
134WRITE_LOCK_CAP = TRUE\r
135WRITE_LOCK_STATUS = TRUE\r
136READ_DISABLED_CAP = TRUE\r
137READ_ENABLED_CAP = TRUE\r
138READ_STATUS = TRUE\r
139READ_LOCK_CAP = TRUE\r
140READ_LOCK_STATUS = TRUE\r
141\r
142################################################################################\r
143#\r
144# The INF statements point to EDK component and EDK II module INF files, which will be placed into this FV image.\r
145# Parsing tools will scan the INF file to determine the type of component or module.\r
146# The component or module type is used to reference the standard rules\r
147# defined elsewhere in the FDF file.\r
148#\r
149# The format for INF statements is:\r
150# INF $(PathAndInfFileName)\r
151#\r
152################################################################################\r
153##\r
154# PEI Phase modules\r
155##\r
156##\r
157# PEI Apriori file example, more PEIM module added later.\r
158##\r
159APRIORI PEI {\r
160 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf\r
02994038 161 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r
804405e7 162 }\r
163APRIORI DXE {\r
804405e7 164 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r
ecd8990a 165 INF IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf\r
804405e7 166 INF UnixPkg/MetronomeDxe/Metronome.inf\r
167 }\r
168INF MdeModulePkg/Core/Pei/PeiMain.inf\r
169INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf\r
02994038 170INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r
804405e7 171INF UnixPkg/BootModePei/BootModePei.inf\r
172INF UnixPkg/UnixFlashMapPei/FlashMap.inf\r
804405e7 173INF UnixPkg/UnixAutoScanPei/UnixAutoScan.inf\r
174INF UnixPkg/UnixFirmwareVolumePei/UnixFwh.inf\r
175INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r
176INF UnixPkg/UnixThunkPpiToProtocolPei/UnixThunkPpiToProtocol.inf\r
177INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r
178\r
179##\r
180# DXE Phase modules\r
181##\r
182INF MdeModulePkg/Core/Dxe/DxeMain.inf\r
ecd8990a 183INF IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf\r
804405e7 184INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r
185INF UnixPkg/MetronomeDxe/Metronome.inf\r
186INF UnixPkg/RealTimeClockRuntimeDxe/RealTimeClock.inf\r
187INF UnixPkg/ResetRuntimeDxe/Reset.inf\r
188INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
189INF UnixPkg/FvbServicesRuntimeDxe/UnixFwh.inf\r
190INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
191INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf\r
192INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf\r
193INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf\r
194INF UnixPkg/UnixThunkDxe/UnixThunk.inf\r
195INF UnixPkg/CpuRuntimeDxe/Cpu.inf\r
7ee40c6e 196INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r
804405e7 197INF IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErrDxe.inf\r
198INF UnixPkg/MiscSubClassPlatformDxe/MiscSubClassDriver.inf\r
199INF UnixPkg/TimerDxe/Timer.inf\r
200INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r
201INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
202INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
203INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
204INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
205INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
206INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r
207INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
208INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
209INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
210INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
211INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
beb9b900 212INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf\r
804405e7 213INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
214INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
215INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf\r
216INF UnixPkg/UnixBusDriverDxe/UnixBusDriver.inf\r
217 \r
aaa2cc19 218INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf\r
804405e7 219INF UnixPkg/UnixBlockIoDxe/UnixBlockIo.inf\r
220INF UnixPkg/UnixSerialIoDxe/UnixSerialIo.inf\r
221INF UnixPkg/UnixUgaDxe/UnixUga.inf\r
288a3c98 222#INF UnixPkg/UnixConsoleDxe/UnixConsole.inf\r
804405e7 223INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
c71b6597 224INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
225INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf\r
5d1a5b35 226INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf \r
804405e7 227INF UnixPkg/UnixSimpleFileSystemDxe/UnixSimpleFileSystem.inf\r
228INF MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf\r
229INF MdeModulePkg/Application/HelloWorld/HelloWorld.inf\r
230\r
231#\r
232# Network stack drivers\r
233# To test network drivers, need network Io driver(SnpNt32Io.dll), please refer to NETWORK-IO Subproject.\r
234#\r
235#INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf\r
236#INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf\r
237#INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf\r
238#INF MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf\r
239#INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf\r
240#INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf\r
241#INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf\r
242#INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf\r
243#INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf\r
244#INF UnixPkg/SnpUnixDxe/SnpUnixDxe.inf\r
245\r
3b66da94 246#INF FatPkg/EnhancedFatDxe/Fat.inf\r
247\r
804405e7 248\r
249 \r
250################################################################################\r
251# \r
252# FILE statements are provided so that a platform integrator can include\r
253# complete EFI FFS files, as well as a method for constructing FFS files\r
254# using curly "{}" brace scoping. The following three FILEs are\r
255# for binary shell, binary fat and logo module.\r
256# \r
257################################################################################\r
d46f3632 258FILE APPLICATION = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile) {\r
804405e7 259 SECTION COMPRESS PI_STD {\r
260 SECTION GUIDED {\r
0534bb8f 261# SECTION PE32 = EdkShellBinPkg/FullShell/Ia32/Shell_Full.efi\r
3b66da94 262# SECTION PE32 =Build/GccShellPkg/DEBUG_XCODE32/IA32/ShellFull.efi\r
0534bb8f 263 SECTION PE32 = Build/Unix/DEBUG_XCODE32/IA32/Ebl.efi\r
804405e7 264 }\r
265 }\r
266 }\r
d46f3632 267\r
804405e7 268FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {\r
269 SECTION COMPRESS PI_STD {\r
270 SECTION GUIDED {\r
271 SECTION PE32 = FatBinPkg/EnhancedFatDxe/Ia32/Fat.efi\r
272 }\r
273 }\r
274 }\r
d46f3632
LG
275\r
276FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {\r
804405e7 277 SECTION COMPRESS PI_STD {\r
278 SECTION GUIDED {\r
279 SECTION RAW = MdeModulePkg/Logo/Logo.bmp\r
280 }\r
281 }\r
282 }\r
283 \r
284 \r
285################################################################################\r
286# \r
287# Rules are use with the [FV] section's module INF type to define\r
288# how an FFS file is created for a given INF file. The following Rule are the default\r
289# rules for the different module type. User can add the customized rules to define the\r
290# content of the FFS file.\r
291# \r
292################################################################################\r
293 \r
294 \r
295############################################################################\r
296# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section # \r
297############################################################################\r
298# \r
299#[Rule.Common.DXE_DRIVER]\r
300# FILE DRIVER = $(NAMED_GUID) {\r
301# DXE_DEPEX DXE_DEPEX Optional |.depex\r
302# COMPRESS PI_STD {\r
303# GUIDED {\r
304# PE32 PE32 |.efi\r
305# UI STRING="$(MODULE_NAME)" Optional\r
306# VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
307# }\r
308# }\r
309# }\r
310#\r
311############################################################################\r
312\r
313[Rule.Common.PEI_CORE]\r
314 FILE PEI_CORE = $(NAMED_GUID) {\r
60975752 315 PE32 PE32 Align=32 |.efi\r
804405e7 316 UI STRING ="$(MODULE_NAME)" Optional \r
317 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER) \r
318 }\r
319\r
320[Rule.Common.PEIM]\r
321 FILE PEIM = $(NAMED_GUID) {\r
322 PEI_DEPEX PEI_DEPEX Optional |.depex\r
60975752 323 PE32 PE32 Align=32 |.efi\r
804405e7 324 UI STRING="$(MODULE_NAME)" Optional \r
325 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER) \r
326 }\r
327\r
328[Rule.Common.PEIM.TIANOCOMPRESSED]\r
a6be5d45 329 FILE PEIM = $(NAMED_GUID) {\r
804405e7 330 PEI_DEPEX PEI_DEPEX Optional |.depex\r
331 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {\r
332 PE32 PE32 |.efi\r
333 UI STRING="$(MODULE_NAME)" Optional\r
334 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
335 }\r
336 }\r
337\r
338[Rule.Common.DXE_CORE]\r
339 FILE DXE_CORE = $(NAMED_GUID) {\r
340 COMPRESS PI_STD {\r
341 PE32 PE32 |.efi\r
342 UI STRING="$(MODULE_NAME)" Optional\r
343 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
344 }\r
345 }\r
346\r
347[Rule.Common.UEFI_DRIVER]\r
348 FILE DRIVER = $(NAMED_GUID) {\r
349 DXE_DEPEX DXE_DEPEX Optional |.depex\r
350 COMPRESS PI_STD {\r
351 GUIDED {\r
352 PE32 PE32 |.efi\r
353 UI STRING="$(MODULE_NAME)" Optional\r
354 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
355 }\r
356 }\r
357 }\r
358\r
359[Rule.Common.DXE_DRIVER]\r
360 FILE DRIVER = $(NAMED_GUID) {\r
361 DXE_DEPEX DXE_DEPEX Optional |.depex\r
362 COMPRESS PI_STD {\r
363 GUIDED {\r
364 PE32 PE32 |.efi\r
365 UI STRING="$(MODULE_NAME)" Optional\r
366 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
367 }\r
368 }\r
369 }\r
370\r
371[Rule.Common.DXE_RUNTIME_DRIVER]\r
372 FILE DRIVER = $(NAMED_GUID) {\r
373 DXE_DEPEX DXE_DEPEX Optional |.depex\r
374 COMPRESS PI_STD {\r
375 GUIDED {\r
376 PE32 PE32 |.efi\r
377 UI STRING="$(MODULE_NAME)" Optional\r
378 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
379 }\r
380 }\r
381 }\r
382\r
383[Rule.Common.UEFI_APPLICATION]\r
384 FILE APPLICATION = $(NAMED_GUID) {\r
385 COMPRESS PI_STD {\r
386 GUIDED {\r
387 PE32 PE32 |.efi\r
388 UI STRING="$(MODULE_NAME)" Optional\r
389 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
390 }\r
391 }\r
392 }\r