2 # This is Emulator FDF file with UEFI HII features enabled
4 # Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>
5 # Portions copyright (c) 2009 - 2011, Apple Inc. All rights reserved.<BR>
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
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.
18 # In OS X PEIMs are really XIP, so we need to make this address match the malloced
19 # buffer for the FD (0x41000000). If this address does not match the FV will get
20 # relocated in place (works, but not a great idea).
22 BaseAddress = 0x102000000|gEmulatorPkgTokenSpaceGuid.PcdEmuFdBaseAddress #The base address of the FLASH Device.
23 Size = 0x005a0000|gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareFdSize #The size in bytes of the FLASH Device
29 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashFvRecoveryBase|gEmulatorPkgTokenSpaceGuid.PcdEmuFlashFvRecoverySize
33 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageVariableBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
36 ## This is the EFI_FIRMWARE_VOLUME_HEADER
38 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
39 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
40 # FileSystemGuid: gEfiSystemNvDataFvGuid =
41 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
42 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
43 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
45 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
46 # Signature "_FVH" #Attributes
47 0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,
48 # HeaderLength #CheckSum #ExtHeaderOffset #Reserved #Revision
49 0x48, 0x00, 0x36, 0x09, 0x00, 0x00, 0x00, 0x02,
50 # Blockmap[0]: 2 Blocks * 0x10000 Bytes / Block
51 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
53 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
54 ## This is the VARIABLE_STORE_HEADER
55 #Signature: gEfiVariableGuid =
56 # { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d }}
57 0x16, 0x36, 0xcf, 0xdd, 0x75, 0x32, 0x64, 0x41,
58 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d,
59 #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0xBFB8
60 # This can speed up the Variable Dispatch a bit.
61 0xB8, 0xBF, 0x00, 0x00,
62 #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32
63 0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
68 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageEventLogBase|gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageEventLogSize
71 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageFtwWorkingBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
74 # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature = gEdkiiWorkingBlockSignatureGuid =
75 # { 0x9e58292b, 0x7c68, 0x497d, { 0xa0, 0xce, 0x65, 0x0, 0xfd, 0x9f, 0x1b, 0x95 }}
76 0x2b, 0x29, 0x58, 0x9e, 0x68, 0x7c, 0x7d, 0x49,
77 0xa0, 0xce, 0x65, 0x0, 0xfd, 0x9f, 0x1b, 0x95,
78 # Crc:UINT32 #WorkingBlockValid:1, WorkingBlockInvalid:1, Reserved
79 0xE2, 0x33, 0xF2, 0x03, 0xFE, 0xFF, 0xFF, 0xFF,
80 # WriteQueueSize: UINT64
81 0xE0, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
86 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageFtwSpareBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
89 FvAlignment = 16 #FV alignment and FV attributes setting.
95 WRITE_DISABLED_CAP = TRUE
96 WRITE_ENABLED_CAP = TRUE
99 WRITE_LOCK_STATUS = TRUE
100 READ_DISABLED_CAP = TRUE
101 READ_ENABLED_CAP = TRUE
104 READ_LOCK_STATUS = TRUE
111 # PEI Apriori file example, more PEIM module added later.
114 INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
115 INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
116 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
119 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
120 INF MdeModulePkg/Universal/Metronome/Metronome.inf
122 INF EmulatorPkg/Sec/Sec.inf
123 INF MdeModulePkg/Core/Pei/PeiMain.inf
124 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
125 INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
126 INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
127 INF EmulatorPkg/BootModePei/BootModePei.inf
128 INF EmulatorPkg/AutoScanPei/AutoScanPei.inf
129 INF EmulatorPkg/FirmwareVolumePei/FirmwareVolumePei.inf
130 INF EmulatorPkg/FlashMapPei/FlashMapPei.inf
131 INF EmulatorPkg/ThunkPpiToProtocolPei/ThunkPpiToProtocolPei.inf
132 INF MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
133 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
134 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
139 INF MdeModulePkg/Core/Dxe/DxeMain.inf
140 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
141 INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
142 INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
143 INF MdeModulePkg/Universal/Metronome/Metronome.inf
144 INF EmulatorPkg/RealTimeClockRuntimeDxe/RealTimeClock.inf
145 INF EmulatorPkg/ResetRuntimeDxe/Reset.inf
146 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
147 INF EmulatorPkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
148 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
149 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
150 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
151 INF EmulatorPkg/EmuThunkDxe/EmuThunk.inf
152 INF EmulatorPkg/CpuRuntimeDxe/Cpu.inf
153 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
154 INF EmulatorPkg/PlatformSmbiosDxe/PlatformSmbiosDxe.inf
155 INF EmulatorPkg/TimerDxe/Timer.inf
156 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
157 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
158 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
159 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
160 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
161 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
162 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
164 INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
165 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
166 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
167 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
168 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
169 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
170 INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
171 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
172 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
173 INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
174 INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
176 INF EmulatorPkg/EmuBusDriverDxe/EmuBusDriverDxe.inf
177 INF EmulatorPkg/EmuGopDxe/EmuGopDxe.inf
178 INF EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystemDxe.inf
179 INF EmulatorPkg/EmuBlockIoDxe/EmuBlockIoDxe.inf
180 INF EmulatorPkg/EmuSnpDxe/EmuSnpDxe.inf
182 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
183 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
184 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
185 INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
186 INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
187 INF MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf
188 INF MdeModulePkg/Application/HelloWorld/HelloWorld.inf
191 # Network stack drivers
193 !if $(NETWORK_SUPPORT)
194 INF EmulatorPkg/EmuSnpDxe/EmuSnpDxe.inf
196 INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
197 INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
198 INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
199 INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
200 INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
201 INF MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
202 INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
203 INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
204 INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
206 INF FatPkg/EnhancedFatDxe/Fat.inf
208 !ifndef $(USE_OLD_SHELL)
209 INF ShellPkg/Application/Shell/Shell.inf
211 INF RuleOverride = BINARY EdkShellBinPkg/FullShell/FullShell.inf
214 FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
215 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
220 FILE SEC = $(NAMED_GUID) {
221 PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
222 UI STRING ="$(MODULE_NAME)" Optional
223 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
227 [Rule.Common.PEI_CORE]
228 FILE PEI_CORE = $(NAMED_GUID) {
229 PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
230 UI STRING ="$(MODULE_NAME)" Optional
231 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
235 FILE PEIM = $(NAMED_GUID) {
236 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
237 PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
238 UI STRING="$(MODULE_NAME)" Optional
239 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
242 [Rule.Common.DXE_CORE]
243 FILE DXE_CORE = $(NAMED_GUID) {
245 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
246 UI STRING="$(MODULE_NAME)" Optional
247 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
251 [Rule.Common.UEFI_DRIVER]
252 FILE DRIVER = $(NAMED_GUID) {
253 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
256 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
257 UI STRING="$(MODULE_NAME)" Optional
258 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
263 [Rule.Common.DXE_DRIVER]
264 FILE DRIVER = $(NAMED_GUID) {
265 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
268 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
269 UI STRING="$(MODULE_NAME)" Optional
270 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
275 [Rule.Common.DXE_RUNTIME_DRIVER]
276 FILE DRIVER = $(NAMED_GUID) {
277 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
280 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
281 UI STRING="$(MODULE_NAME)" Optional
282 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
287 [Rule.Common.UEFI_APPLICATION]
288 FILE APPLICATION = $(NAMED_GUID) {
291 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
292 UI STRING="$(MODULE_NAME)" Optional
293 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
298 [Rule.Common.UEFI_DRIVER.BINARY]
299 FILE DRIVER = $(NAMED_GUID) {
300 DXE_DEPEX DXE_DEPEX Optional |.depex
302 UI STRING="$(MODULE_NAME)" Optional
303 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
306 [Rule.Common.UEFI_APPLICATION.BINARY]
307 FILE APPLICATION = $(NAMED_GUID) {
309 UI STRING="$(MODULE_NAME)" Optional
310 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)