2 # This is Emulator FDF file with UEFI HII features enabled
4 # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>
5 # Portions copyright (c) 2009 - 2011, Apple Inc. All rights reserved.<BR>
7 # SPDX-License-Identifier: BSD-2-Clause-Patent
12 # In OS X PEIMs are really XIP, so we need to make this address match the malloced
13 # buffer for the FD (0x41000000). If this address does not match the FV will get
14 # relocated in place (works, but not a great idea).
16 BaseAddress = 0x102000000|gEmulatorPkgTokenSpaceGuid.PcdEmuFdBaseAddress #The base address of the FLASH Device.
17 Size = 0x005a0000|gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareFdSize #The size in bytes of the FLASH Device
23 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashFvRecoveryBase|gEmulatorPkgTokenSpaceGuid.PcdEmuFlashFvRecoverySize
27 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageVariableBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
30 ## This is the EFI_FIRMWARE_VOLUME_HEADER
32 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
33 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
34 # FileSystemGuid: gEfiSystemNvDataFvGuid =
35 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
36 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
37 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
39 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
40 # Signature "_FVH" #Attributes
41 0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,
42 # HeaderLength #CheckSum #ExtHeaderOffset #Reserved #Revision
43 0x48, 0x00, 0x36, 0x09, 0x00, 0x00, 0x00, 0x02,
44 # Blockmap[0]: 2 Blocks * 0x10000 Bytes / Block
45 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
47 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
48 ## This is the VARIABLE_STORE_HEADER
49 #Signature: gEfiVariableGuid =
50 # { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d }}
51 0x16, 0x36, 0xcf, 0xdd, 0x75, 0x32, 0x64, 0x41,
52 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d,
53 #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0xBFB8
54 # This can speed up the Variable Dispatch a bit.
55 0xB8, 0xBF, 0x00, 0x00,
56 #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32
57 0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
62 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageEventLogBase|gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageEventLogSize
65 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageFtwWorkingBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
68 # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature = gEdkiiWorkingBlockSignatureGuid =
69 # { 0x9e58292b, 0x7c68, 0x497d, { 0xa0, 0xce, 0x65, 0x0, 0xfd, 0x9f, 0x1b, 0x95 }}
70 0x2b, 0x29, 0x58, 0x9e, 0x68, 0x7c, 0x7d, 0x49,
71 0xa0, 0xce, 0x65, 0x0, 0xfd, 0x9f, 0x1b, 0x95,
72 # Crc:UINT32 #WorkingBlockValid:1, WorkingBlockInvalid:1, Reserved
73 0xE2, 0x33, 0xF2, 0x03, 0xFE, 0xFF, 0xFF, 0xFF,
74 # WriteQueueSize: UINT64
75 0xE0, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
80 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageFtwSpareBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
83 FvNameGuid = 6D99E806-3D38-42c2-A095-5F4300BFD7DC
84 FvAlignment = 16 #FV alignment and FV attributes setting.
90 WRITE_DISABLED_CAP = TRUE
91 WRITE_ENABLED_CAP = TRUE
94 WRITE_LOCK_STATUS = TRUE
95 READ_DISABLED_CAP = TRUE
96 READ_ENABLED_CAP = TRUE
99 READ_LOCK_STATUS = TRUE
106 # PEI Apriori file example, more PEIM module added later.
109 INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
110 INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
111 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
114 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
115 INF MdeModulePkg/Universal/Metronome/Metronome.inf
117 INF EmulatorPkg/Sec/Sec.inf
118 INF MdeModulePkg/Core/Pei/PeiMain.inf
119 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
120 INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
121 INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
122 INF EmulatorPkg/BootModePei/BootModePei.inf
123 INF EmulatorPkg/AutoScanPei/AutoScanPei.inf
124 INF EmulatorPkg/FirmwareVolumePei/FirmwareVolumePei.inf
125 INF EmulatorPkg/FlashMapPei/FlashMapPei.inf
126 INF EmulatorPkg/ThunkPpiToProtocolPei/ThunkPpiToProtocolPei.inf
127 INF MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
128 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
129 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
134 INF MdeModulePkg/Core/Dxe/DxeMain.inf
135 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
136 INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
137 INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
138 INF MdeModulePkg/Universal/Metronome/Metronome.inf
139 INF EmulatorPkg/RealTimeClockRuntimeDxe/RealTimeClock.inf
140 INF EmulatorPkg/ResetRuntimeDxe/Reset.inf
141 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
142 INF EmulatorPkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
143 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
144 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
145 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
146 INF EmulatorPkg/EmuThunkDxe/EmuThunk.inf
147 INF EmulatorPkg/CpuRuntimeDxe/Cpu.inf
148 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
149 INF EmulatorPkg/PlatformSmbiosDxe/PlatformSmbiosDxe.inf
150 INF EmulatorPkg/TimerDxe/Timer.inf
151 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
152 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
153 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
154 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
155 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
156 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
157 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
159 INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
160 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
161 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
162 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
163 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
164 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
165 INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
166 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
167 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
168 INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
170 INF EmulatorPkg/EmuBusDriverDxe/EmuBusDriverDxe.inf
171 INF EmulatorPkg/EmuGopDxe/EmuGopDxe.inf
172 INF EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystemDxe.inf
173 INF EmulatorPkg/EmuBlockIoDxe/EmuBlockIoDxe.inf
174 INF EmulatorPkg/EmuSnpDxe/EmuSnpDxe.inf
176 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
177 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
178 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
179 INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
180 INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
181 !if "XCODE5" not in $(TOOL_CHAIN_TAG)
182 INF MdeModulePkg/Logo/LogoDxe.inf
184 INF MdeModulePkg/Universal/LoadFileOnFv2/LoadFileOnFv2.inf
185 INF RuleOverride = UI MdeModulePkg/Application/UiApp/UiApp.inf
186 INF MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf
187 INF MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf
190 # Network stack drivers
192 !if $(NETWORK_SUPPORT)
193 INF EmulatorPkg/EmuSnpDxe/EmuSnpDxe.inf
195 !include NetworkPkg/Network.fdf.inc
197 INF FatPkg/EnhancedFatDxe/Fat.inf
199 !if "XCODE5" not in $(TOOL_CHAIN_TAG)
200 INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
202 INF ShellPkg/Application/Shell/Shell.inf
205 FILE SEC = $(NAMED_GUID) {
206 PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
207 UI STRING ="$(MODULE_NAME)" Optional
208 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
212 [Rule.Common.PEI_CORE]
213 FILE PEI_CORE = $(NAMED_GUID) {
214 PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
215 UI STRING ="$(MODULE_NAME)" Optional
216 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
220 FILE PEIM = $(NAMED_GUID) {
221 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
222 PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
223 UI STRING="$(MODULE_NAME)" Optional
224 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
227 [Rule.Common.DXE_CORE]
228 FILE DXE_CORE = $(NAMED_GUID) {
230 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
231 UI STRING="$(MODULE_NAME)" Optional
232 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
236 [Rule.Common.UEFI_DRIVER]
237 FILE DRIVER = $(NAMED_GUID) {
238 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
241 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
242 UI STRING="$(MODULE_NAME)" Optional
243 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
248 [Rule.Common.DXE_DRIVER]
249 FILE DRIVER = $(NAMED_GUID) {
250 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
253 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
254 UI STRING="$(MODULE_NAME)" Optional
255 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
260 [Rule.Common.DXE_RUNTIME_DRIVER]
261 FILE DRIVER = $(NAMED_GUID) {
262 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
265 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
266 UI STRING="$(MODULE_NAME)" Optional
267 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
272 [Rule.Common.UEFI_APPLICATION]
273 FILE APPLICATION = $(NAMED_GUID) {
276 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
277 UI STRING="$(MODULE_NAME)" Optional
278 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
283 [Rule.Common.UEFI_APPLICATION.UI]
284 FILE APPLICATION = $(NAMED_GUID) {
285 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
286 UI STRING="Enter Setup"
287 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
290 [Rule.Common.UEFI_DRIVER.BINARY]
291 FILE DRIVER = $(NAMED_GUID) {
292 DXE_DEPEX DXE_DEPEX Optional |.depex
294 UI STRING="$(MODULE_NAME)" Optional
295 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
298 [Rule.Common.UEFI_APPLICATION.BINARY]
299 FILE APPLICATION = $(NAMED_GUID) {
301 UI STRING="$(MODULE_NAME)" Optional
302 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)