EmulatorPkg: Fix build failure due to Tftp library removal
[mirror_edk2.git] / EmulatorPkg / EmulatorPkg.fdf
1 ## @file
2 # This is Emulator FDF file with UEFI HII features enabled
3 #
4 # Copyright (c) 2008 - 2017, Intel Corporation. All rights reserved.<BR>
5 # Portions copyright (c) 2009 - 2011, Apple Inc. All rights reserved.<BR>
6 #
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
11 #
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.
14 #
15
16 [FD.Fv_Recovery]
17 #
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).
21 #
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
24 ErasePolarity = 1
25 BlockSize = 0x10000
26 NumBlocks = 0x5a
27
28 0x00000000|0x00580000
29 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashFvRecoveryBase|gEmulatorPkgTokenSpaceGuid.PcdEmuFlashFvRecoverySize
30 FV = FvRecovery
31
32 0x00580000|0x0000c000
33 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageVariableBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
34 #NV_VARIABLE_STORE
35 DATA = {
36 ## This is the EFI_FIRMWARE_VOLUME_HEADER
37 # ZeroVector []
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,
44 # FvLength: 0x20000
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,
52 # Blockmap[1]: End
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
64 }
65
66 0x0058c000|0x00002000
67 #NV_EVENT_LOG
68 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageEventLogBase|gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageEventLogSize
69
70 0x0058e000|0x00002000
71 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageFtwWorkingBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
72 #NV_FTW_WORKING
73 DATA = {
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
82 }
83
84 0x00590000|0x00010000
85 #NV_FTW_SPARE
86 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageFtwSpareBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
87
88 [FV.FvRecovery]
89 FvAlignment = 16 #FV alignment and FV attributes setting.
90 ERASE_POLARITY = 1
91 MEMORY_MAPPED = TRUE
92 STICKY_WRITE = TRUE
93 LOCK_CAP = TRUE
94 LOCK_STATUS = TRUE
95 WRITE_DISABLED_CAP = TRUE
96 WRITE_ENABLED_CAP = TRUE
97 WRITE_STATUS = TRUE
98 WRITE_LOCK_CAP = TRUE
99 WRITE_LOCK_STATUS = TRUE
100 READ_DISABLED_CAP = TRUE
101 READ_ENABLED_CAP = TRUE
102 READ_STATUS = TRUE
103 READ_LOCK_CAP = TRUE
104 READ_LOCK_STATUS = TRUE
105
106 #
107 # PEI Phase modules
108 #
109
110 #
111 # PEI Apriori file example, more PEIM module added later.
112 #
113 APRIORI PEI {
114 INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
115 INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
116 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
117 }
118 APRIORI DXE {
119 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
120 INF MdeModulePkg/Universal/Metronome/Metronome.inf
121 }
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
135
136 #
137 # DXE Phase modules
138 #
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
163
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
175
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
181
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
189
190 #
191 # Network stack drivers
192 #
193 !if $(NETWORK_SUPPORT)
194 INF EmulatorPkg/EmuSnpDxe/EmuSnpDxe.inf
195 !endif
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
205
206 INF FatPkg/EnhancedFatDxe/Fat.inf
207
208 !ifndef $(USE_OLD_SHELL)
209 INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
210 INF ShellPkg/Application/Shell/Shell.inf
211 !else
212 INF RuleOverride = BINARY EdkShellBinPkg/FullShell/FullShell.inf
213 !endif
214
215 FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
216 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
217 }
218
219
220 [Rule.Common.SEC]
221 FILE SEC = $(NAMED_GUID) {
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)
225 }
226
227
228 [Rule.Common.PEI_CORE]
229 FILE PEI_CORE = $(NAMED_GUID) {
230 PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
231 UI STRING ="$(MODULE_NAME)" Optional
232 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
233 }
234
235 [Rule.Common.PEIM]
236 FILE PEIM = $(NAMED_GUID) {
237 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
238 PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
239 UI STRING="$(MODULE_NAME)" Optional
240 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
241 }
242
243 [Rule.Common.DXE_CORE]
244 FILE DXE_CORE = $(NAMED_GUID) {
245 COMPRESS PI_STD {
246 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
247 UI STRING="$(MODULE_NAME)" Optional
248 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
249 }
250 }
251
252 [Rule.Common.UEFI_DRIVER]
253 FILE DRIVER = $(NAMED_GUID) {
254 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
255 COMPRESS PI_STD {
256 GUIDED {
257 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
258 UI STRING="$(MODULE_NAME)" Optional
259 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
260 }
261 }
262 }
263
264 [Rule.Common.DXE_DRIVER]
265 FILE DRIVER = $(NAMED_GUID) {
266 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
267 COMPRESS PI_STD {
268 GUIDED {
269 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
270 UI STRING="$(MODULE_NAME)" Optional
271 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
272 }
273 }
274 }
275
276 [Rule.Common.DXE_RUNTIME_DRIVER]
277 FILE DRIVER = $(NAMED_GUID) {
278 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
279 COMPRESS PI_STD {
280 GUIDED {
281 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
282 UI STRING="$(MODULE_NAME)" Optional
283 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
284 }
285 }
286 }
287
288 [Rule.Common.UEFI_APPLICATION]
289 FILE APPLICATION = $(NAMED_GUID) {
290 COMPRESS PI_STD {
291 GUIDED {
292 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
293 UI STRING="$(MODULE_NAME)" Optional
294 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
295 }
296 }
297 }
298
299 [Rule.Common.UEFI_DRIVER.BINARY]
300 FILE DRIVER = $(NAMED_GUID) {
301 DXE_DEPEX DXE_DEPEX Optional |.depex
302 PE32 PE32 |.efi
303 UI STRING="$(MODULE_NAME)" Optional
304 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
305 }
306
307 [Rule.Common.UEFI_APPLICATION.BINARY]
308 FILE APPLICATION = $(NAMED_GUID) {
309 PE32 PE32 |.efi
310 UI STRING="$(MODULE_NAME)" Optional
311 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
312 }
313