c5c69f8a849b906e6c3443e745563961b40a421e
[mirror_edk2.git] / EmulatorPkg / EmulatorPkg.fdf
1 ## @file\r
2 # This is Emulator FDF file with UEFI HII features enabled\r
3 #\r
4 # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>\r
5 # Portions copyright (c) 2009 - 2011, Apple Inc. All rights reserved.<BR>\r
6 #\r
7 # SPDX-License-Identifier: BSD-2-Clause-Patent\r
8 #\r
9 \r
10 [FD.Fv_Recovery]\r
11 #\r
12 # In OS X PEIMs are really XIP, so we need to make this address match the malloced\r
13 # buffer for the FD (0x41000000). If this address does not match the FV will get\r
14 # relocated in place (works, but not a great idea).\r
15 #\r
16 BaseAddress   = 0x102000000|gEmulatorPkgTokenSpaceGuid.PcdEmuFdBaseAddress   #The base address of the FLASH Device.\r
17 Size          = 0x005a0000|gEmulatorPkgTokenSpaceGuid.PcdEmuFirmwareFdSize  #The size in bytes of the FLASH Device\r
18 ErasePolarity = 1\r
19 BlockSize     = 0x10000\r
20 NumBlocks     = 0x5a\r
21 \r
22 0x00000000|0x00580000\r
23 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashFvRecoveryBase|gEmulatorPkgTokenSpaceGuid.PcdEmuFlashFvRecoverySize\r
24 FV = FvRecovery\r
25 \r
26 0x00580000|0x0000c000\r
27 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageVariableBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize\r
28 #NV_VARIABLE_STORE\r
29 DATA = {\r
30   ## This is the EFI_FIRMWARE_VOLUME_HEADER\r
31   # ZeroVector []\r
32   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
33   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
34   # FileSystemGuid: gEfiSystemNvDataFvGuid         =\r
35   #  { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}\r
36   0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,\r
37   0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,\r
38   # FvLength: 0x20000\r
39   0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,\r
40   # Signature "_FVH"       #Attributes\r
41   0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,\r
42   # HeaderLength #CheckSum #ExtHeaderOffset #Reserved #Revision\r
43   0x48, 0x00, 0x36, 0x09, 0x00, 0x00, 0x00, 0x02,\r
44   # Blockmap[0]: 2 Blocks * 0x10000 Bytes / Block\r
45   0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,\r
46   # Blockmap[1]: End\r
47   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
48   ## This is the VARIABLE_STORE_HEADER\r
49   #Signature: gEfiVariableGuid =\r
50   #  { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d }}\r
51   0x16, 0x36, 0xcf, 0xdd, 0x75, 0x32, 0x64, 0x41,\r
52   0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d,\r
53   #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0xBFB8\r
54   # This can speed up the Variable Dispatch a bit.\r
55   0xB8, 0xBF, 0x00, 0x00,\r
56   #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32\r
57   0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\r
58 }\r
59 \r
60 0x0058c000|0x00002000\r
61 #NV_EVENT_LOG\r
62 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageEventLogBase|gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageEventLogSize\r
63 \r
64 0x0058e000|0x00002000\r
65 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageFtwWorkingBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize\r
66 #NV_FTW_WORKING\r
67 DATA = {\r
68   # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature = gEdkiiWorkingBlockSignatureGuid         =\r
69   #  { 0x9e58292b, 0x7c68, 0x497d, { 0xa0, 0xce, 0x65,  0x0, 0xfd, 0x9f, 0x1b, 0x95 }}\r
70   0x2b, 0x29, 0x58, 0x9e, 0x68, 0x7c, 0x7d, 0x49,\r
71   0xa0, 0xce, 0x65,  0x0, 0xfd, 0x9f, 0x1b, 0x95,\r
72   # Crc:UINT32            #WorkingBlockValid:1, WorkingBlockInvalid:1, Reserved\r
73   0xE2, 0x33, 0xF2, 0x03, 0xFE, 0xFF, 0xFF, 0xFF,\r
74   # WriteQueueSize: UINT64\r
75   0xE0, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\r
76 }\r
77 \r
78 0x00590000|0x00010000\r
79 #NV_FTW_SPARE\r
80 gEmulatorPkgTokenSpaceGuid.PcdEmuFlashNvStorageFtwSpareBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize\r
81 \r
82 [FV.FvRecovery]\r
83 FvNameGuid         = 6D99E806-3D38-42c2-A095-5F4300BFD7DC\r
84 FvAlignment        = 16         #FV alignment and FV attributes setting.\r
85 ERASE_POLARITY     = 1\r
86 MEMORY_MAPPED      = TRUE\r
87 STICKY_WRITE       = TRUE\r
88 LOCK_CAP           = TRUE\r
89 LOCK_STATUS        = TRUE\r
90 WRITE_DISABLED_CAP = TRUE\r
91 WRITE_ENABLED_CAP  = TRUE\r
92 WRITE_STATUS       = TRUE\r
93 WRITE_LOCK_CAP     = TRUE\r
94 WRITE_LOCK_STATUS  = TRUE\r
95 READ_DISABLED_CAP  = TRUE\r
96 READ_ENABLED_CAP   = TRUE\r
97 READ_STATUS        = TRUE\r
98 READ_LOCK_CAP      = TRUE\r
99 READ_LOCK_STATUS   = TRUE\r
100 \r
101 #\r
102 #  PEI Phase modules\r
103 #\r
104 \r
105 #\r
106 #  PEI Apriori file example, more PEIM module added later.\r
107 #\r
108 APRIORI PEI {\r
109   INF  MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf\r
110   INF  MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf\r
111   INF  MdeModulePkg/Universal/PCD/Pei/Pcd.inf\r
112   }\r
113 APRIORI DXE {\r
114   INF  MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r
115   INF  MdeModulePkg/Universal/Metronome/Metronome.inf\r
116   }\r
117 INF  EmulatorPkg/Sec/Sec.inf\r
118 INF  MdeModulePkg/Core/Pei/PeiMain.inf\r
119 INF  MdeModulePkg/Universal/PCD/Pei/Pcd.inf\r
120 INF  MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf\r
121 INF  MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf\r
122 INF  EmulatorPkg/BootModePei/BootModePei.inf\r
123 INF  EmulatorPkg/AutoScanPei/AutoScanPei.inf\r
124 INF  EmulatorPkg/FirmwareVolumePei/FirmwareVolumePei.inf\r
125 INF  EmulatorPkg/FlashMapPei/FlashMapPei.inf\r
126 INF  EmulatorPkg/ThunkPpiToProtocolPei/ThunkPpiToProtocolPei.inf\r
127 INF  MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf\r
128 INF  MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r
129 INF  MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r
130 \r
131 #\r
132 #  DXE Phase modules\r
133 #\r
134 INF  MdeModulePkg/Core/Dxe/DxeMain.inf\r
135 INF  MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r
136 INF  MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf\r
137 INF  MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf\r
138 INF  MdeModulePkg/Universal/Metronome/Metronome.inf\r
139 INF  EmulatorPkg/RealTimeClockRuntimeDxe/RealTimeClock.inf\r
140 INF  EmulatorPkg/ResetRuntimeDxe/Reset.inf\r
141 INF  MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
142 INF  EmulatorPkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf\r
143 INF  MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
144 INF  MdeModulePkg/Universal/EbcDxe/EbcDxe.inf\r
145 INF  MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf\r
146 INF  EmulatorPkg/EmuThunkDxe/EmuThunk.inf\r
147 INF  EmulatorPkg/CpuRuntimeDxe/Cpu.inf\r
148 INF  MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r
149 INF  EmulatorPkg/PlatformSmbiosDxe/PlatformSmbiosDxe.inf\r
150 INF  EmulatorPkg/TimerDxe/Timer.inf\r
151 INF  MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r
152 INF  MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
153 INF  MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
154 INF  MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
155 INF  MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
156 INF  MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
157 INF  MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r
158 \r
159 INF  MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r
160 INF  MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
161 INF  MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
162 INF  MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
163 INF  MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
164 INF  MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
165 INF  MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf\r
166 INF  MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
167 INF  MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
168 INF  IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf\r
169 INF  MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf\r
170 \r
171 INF  EmulatorPkg/EmuBusDriverDxe/EmuBusDriverDxe.inf\r
172 INF  EmulatorPkg/EmuGopDxe/EmuGopDxe.inf\r
173 INF  EmulatorPkg/EmuSimpleFileSystemDxe/EmuSimpleFileSystemDxe.inf\r
174 INF  EmulatorPkg/EmuBlockIoDxe/EmuBlockIoDxe.inf\r
175 INF  EmulatorPkg/EmuSnpDxe/EmuSnpDxe.inf\r
176 \r
177 INF  MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
178 INF  MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
179 INF  MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
180 INF  MdeModulePkg/Universal/PrintDxe/PrintDxe.inf\r
181 INF  MdeModulePkg/Universal/BdsDxe/BdsDxe.inf\r
182 INF  MdeModulePkg/Logo/LogoDxe.inf\r
183 INF  MdeModulePkg/Universal/LoadFileOnFv2/LoadFileOnFv2.inf\r
184 INF  RuleOverride = UI MdeModulePkg/Application/UiApp/UiApp.inf\r
185 INF  MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf\r
186 INF  MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf\r
187 \r
188 #\r
189 # Network stack drivers\r
190 #\r
191 !if $(NETWORK_SUPPORT)\r
192 INF  EmulatorPkg/EmuSnpDxe/EmuSnpDxe.inf\r
193 !endif\r
194 INF  MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf\r
195 INF  MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf\r
196 INF  MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf\r
197 INF  MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf\r
198 INF  MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf\r
199 INF  MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf\r
200 INF  MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf\r
201 INF  NetworkPkg/TcpDxe/TcpDxe.inf\r
202 INF  MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf\r
203 \r
204 INF FatPkg/EnhancedFatDxe/Fat.inf\r
205 \r
206 INF  ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf\r
207 INF  ShellPkg/Application/Shell/Shell.inf\r
208 \r
209 [Rule.Common.SEC]\r
210   FILE SEC = $(NAMED_GUID)  {\r
211     PE32     PE32    Align=Auto     $(INF_OUTPUT)/$(MODULE_NAME).efi\r
212     UI       STRING ="$(MODULE_NAME)" Optional\r
213     VERSION  STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
214   }\r
215 \r
216 \r
217 [Rule.Common.PEI_CORE]\r
218   FILE PEI_CORE = $(NAMED_GUID) {\r
219     PE32     PE32    Align=Auto     $(INF_OUTPUT)/$(MODULE_NAME).efi\r
220     UI       STRING ="$(MODULE_NAME)" Optional\r
221     VERSION  STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
222   }\r
223 \r
224 [Rule.Common.PEIM]\r
225   FILE PEIM = $(NAMED_GUID) {\r
226      PEI_DEPEX PEI_DEPEX Optional        $(INF_OUTPUT)/$(MODULE_NAME).depex\r
227      PE32      PE32   Align=Auto     $(INF_OUTPUT)/$(MODULE_NAME).efi\r
228      UI       STRING="$(MODULE_NAME)" Optional\r
229      VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
230   }\r
231 \r
232 [Rule.Common.DXE_CORE]\r
233   FILE DXE_CORE = $(NAMED_GUID) {\r
234     COMPRESS PI_STD {\r
235       PE32     PE32           $(INF_OUTPUT)/$(MODULE_NAME).efi\r
236       UI       STRING="$(MODULE_NAME)" Optional\r
237       VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
238     }\r
239   }\r
240 \r
241 [Rule.Common.UEFI_DRIVER]\r
242   FILE DRIVER = $(NAMED_GUID) {\r
243     DXE_DEPEX    DXE_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex\r
244     COMPRESS PI_STD {\r
245       GUIDED {\r
246         PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
247         UI       STRING="$(MODULE_NAME)" Optional\r
248         VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
249       }\r
250     }\r
251   }\r
252 \r
253 [Rule.Common.DXE_DRIVER]\r
254   FILE DRIVER = $(NAMED_GUID) {\r
255     DXE_DEPEX    DXE_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex\r
256     COMPRESS PI_STD {\r
257       GUIDED {\r
258         PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
259         UI       STRING="$(MODULE_NAME)" Optional\r
260         VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
261       }\r
262     }\r
263   }\r
264 \r
265 [Rule.Common.DXE_RUNTIME_DRIVER]\r
266   FILE DRIVER = $(NAMED_GUID) {\r
267     DXE_DEPEX    DXE_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex\r
268     COMPRESS PI_STD {\r
269       GUIDED {\r
270         PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
271         UI       STRING="$(MODULE_NAME)" Optional\r
272         VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
273       }\r
274     }\r
275   }\r
276 \r
277 [Rule.Common.UEFI_APPLICATION]\r
278   FILE APPLICATION = $(NAMED_GUID) {\r
279     COMPRESS PI_STD {\r
280       GUIDED {\r
281         PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
282         UI       STRING="$(MODULE_NAME)" Optional\r
283         VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
284       }\r
285     }\r
286   }\r
287 \r
288 [Rule.Common.UEFI_APPLICATION.UI]\r
289   FILE APPLICATION = $(NAMED_GUID) {\r
290     PE32      PE32                     $(INF_OUTPUT)/$(MODULE_NAME).efi\r
291     UI        STRING="Enter Setup"\r
292     VERSION   STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
293   }\r
294 \r
295 [Rule.Common.UEFI_DRIVER.BINARY]\r
296   FILE DRIVER = $(NAMED_GUID) {\r
297     DXE_DEPEX DXE_DEPEX Optional      |.depex\r
298     PE32      PE32                    |.efi\r
299     UI        STRING="$(MODULE_NAME)" Optional\r
300     VERSION   STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
301   }\r
302 \r
303 [Rule.Common.UEFI_APPLICATION.BINARY]\r
304   FILE APPLICATION = $(NAMED_GUID) {\r
305     PE32      PE32                    |.efi\r
306     UI        STRING="$(MODULE_NAME)" Optional\r
307     VERSION   STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
308   }\r
309 \r