EmulatorPkg: Remove framework pkgs dependency from EmulatorPkg
[mirror_edk2.git] / UefiPayloadPkg / UefiPayloadPkg.fdf
1 ## @file\r
2 # Bootloader Payload Package\r
3 #\r
4 # Provides drivers and definitions to create uefi payload for bootloaders.\r
5 #\r
6 # Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.<BR>\r
7 # SPDX-License-Identifier: BSD-2-Clause-Patent\r
8 #\r
9 ##\r
10 \r
11 ################################################################################\r
12 [FD.UefiPayload]\r
13 BaseAddress   = 0x800000|gUefiPayloadPkgTokenSpaceGuid.PcdPayloadFdMemBase\r
14 Size          = 0x410000|gUefiPayloadPkgTokenSpaceGuid.PcdPayloadFdMemSize\r
15 ErasePolarity = 1\r
16 BlockSize     = 0x1000\r
17 NumBlocks     = 0x410\r
18 \r
19 0x00000000|0x030000\r
20 FV = PEIFV\r
21 \r
22 0x00030000|0x3E0000\r
23 FV = DXEFV\r
24 \r
25 ################################################################################\r
26 [FV.PEIFV]\r
27 BlockSize          = 0x1000\r
28 FvAlignment        = 16\r
29 ERASE_POLARITY     = 1\r
30 MEMORY_MAPPED      = TRUE\r
31 STICKY_WRITE       = TRUE\r
32 LOCK_CAP           = TRUE\r
33 LOCK_STATUS        = TRUE\r
34 WRITE_DISABLED_CAP = TRUE\r
35 WRITE_ENABLED_CAP  = TRUE\r
36 WRITE_STATUS       = TRUE\r
37 WRITE_LOCK_CAP     = TRUE\r
38 WRITE_LOCK_STATUS  = TRUE\r
39 READ_DISABLED_CAP  = TRUE\r
40 READ_ENABLED_CAP   = TRUE\r
41 READ_STATUS        = TRUE\r
42 READ_LOCK_CAP      = TRUE\r
43 READ_LOCK_STATUS   = TRUE\r
44 \r
45 INF UefiPayloadPkg/SecCore/SecCore.inf\r
46 \r
47 INF MdeModulePkg/Core/Pei/PeiMain.inf\r
48 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf\r
49 INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf\r
50 INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf\r
51 INF UefiPayloadPkg/BlSupportPei/BlSupportPei.inf\r
52 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r
53 \r
54 ################################################################################\r
55 \r
56 [FV.DXEFV]\r
57 BlockSize          = 0x1000\r
58 FvForceRebase      = FALSE\r
59 FvAlignment        = 16\r
60 ERASE_POLARITY     = 1\r
61 MEMORY_MAPPED      = TRUE\r
62 STICKY_WRITE       = TRUE\r
63 LOCK_CAP           = TRUE\r
64 LOCK_STATUS        = TRUE\r
65 WRITE_DISABLED_CAP = TRUE\r
66 WRITE_ENABLED_CAP  = TRUE\r
67 WRITE_STATUS       = TRUE\r
68 WRITE_LOCK_CAP     = TRUE\r
69 WRITE_LOCK_STATUS  = TRUE\r
70 READ_DISABLED_CAP  = TRUE\r
71 READ_ENABLED_CAP   = TRUE\r
72 READ_STATUS        = TRUE\r
73 READ_LOCK_CAP      = TRUE\r
74 READ_LOCK_STATUS   = TRUE\r
75 \r
76 APRIORI DXE {\r
77   INF  MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r
78   INF  MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf\r
79   INF  MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf\r
80 }\r
81 \r
82 #\r
83 # DXE Phase modules\r
84 #\r
85 INF MdeModulePkg/Core/Dxe/DxeMain.inf\r
86 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r
87 INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf\r
88 INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf\r
89 \r
90 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
91 INF UefiCpuPkg/CpuDxe/CpuDxe.inf\r
92 INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf\r
93 INF MdeModulePkg/Application/UiApp/UiApp.inf\r
94 INF PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf\r
95 INF MdeModulePkg/Universal/Metronome/Metronome.inf\r
96 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
97 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
98 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
99 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
100 INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf\r
101 INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf\r
102 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r
103 \r
104 INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf\r
105 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
106 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf\r
107 INF PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf\r
108 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
109 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
110 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
111 INF UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf\r
112 \r
113 INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf\r
114 #\r
115 # PCI Support\r
116 #\r
117 INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf\r
118 INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf\r
119 \r
120 #\r
121 # ISA Support\r
122 #\r
123 INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r
124 \r
125 #\r
126 # Console Support\r
127 #\r
128 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
129 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
130 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r
131 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
132 INF UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf\r
133 \r
134 #\r
135 # SCSI/ATA/IDE/DISK Support\r
136 #\r
137 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
138 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
139 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
140 INF MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf\r
141 INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf\r
142 INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf\r
143 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
144 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
145 \r
146 INF FatPkg/EnhancedFatDxe/Fat.inf\r
147 \r
148 #\r
149 # SD/eMMC Support\r
150 #\r
151 INF MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf\r
152 INF MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf\r
153 INF MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf\r
154 \r
155 #\r
156 # Usb Support\r
157 #\r
158 INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf\r
159 INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf\r
160 INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf\r
161 INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf\r
162 INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf\r
163 INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf\r
164 \r
165 \r
166 #\r
167 # Shell\r
168 #\r
169 !if $(SHELL_TYPE) == BUILD_SHELL\r
170 INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf\r
171 INF ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf\r
172 INF ShellPkg/Application/Shell/Shell.inf\r
173 !endif\r
174 \r
175 !if $(SHELL_TYPE) == MIN_BIN\r
176 !if $(ARCH) == IA32\r
177 INF  RuleOverride = BINARY USE = IA32 ShellBinPkg/MinUefiShell/MinUefiShell.inf\r
178 !else\r
179 INF  RuleOverride = BINARY USE = X64 ShellBinPkg/MinUefiShell/MinUefiShell.inf\r
180 !endif\r
181 !endif\r
182 \r
183 !if $(SHELL_TYPE) == UEFI_BIN\r
184 !if $(ARCH) == IA32\r
185 INF  RuleOverride = BINARY USE = IA32 ShellBinPkg/UefiShell/UefiShell.inf\r
186 !else\r
187 INF  RuleOverride = BINARY USE = X64 ShellBinPkg/UefiShell/UefiShell.inf\r
188 !endif\r
189 !endif\r
190 \r
191 \r
192 ################################################################################\r
193 #\r
194 # Rules are use with the [FV] section's module INF type to define\r
195 # how an FFS file is created for a given INF file. The following Rule are the default\r
196 # rules for the different module type. User can add the customized rules to define the\r
197 # content of the FFS file.\r
198 #\r
199 ################################################################################\r
200 \r
201 [Rule.Common.SEC]\r
202   FILE SEC = $(NAMED_GUID) {\r
203     PE32     PE32   Align=32    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
204   }\r
205 \r
206 [Rule.Common.PEI_CORE]\r
207   FILE PEI_CORE = $(NAMED_GUID) {\r
208     PE32     PE32   Align=Auto    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
209     UI       STRING ="$(MODULE_NAME)" Optional\r
210     VERSION  STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
211   }\r
212 \r
213 [Rule.Common.PEIM]\r
214   FILE PEIM = $(NAMED_GUID) {\r
215      PEI_DEPEX PEI_DEPEX Optional        $(INF_OUTPUT)/$(MODULE_NAME).depex\r
216      PE32      PE32   Align=Auto           $(INF_OUTPUT)/$(MODULE_NAME).efi\r
217      UI       STRING="$(MODULE_NAME)" Optional\r
218      VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
219   }\r
220 \r
221 [Rule.Common.DXE_CORE]\r
222   FILE DXE_CORE = $(NAMED_GUID) {\r
223     PE32     PE32           $(INF_OUTPUT)/$(MODULE_NAME).efi\r
224     UI       STRING="$(MODULE_NAME)" Optional\r
225     VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
226   }\r
227 \r
228 [Rule.Common.DXE_DRIVER]\r
229   FILE DRIVER = $(NAMED_GUID) {\r
230     DXE_DEPEX    DXE_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex\r
231     PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
232     UI       STRING="$(MODULE_NAME)" Optional\r
233     VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
234   }\r
235 \r
236 [Rule.Common.DXE_RUNTIME_DRIVER]\r
237   FILE DRIVER = $(NAMED_GUID) {\r
238     DXE_DEPEX    DXE_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex\r
239     PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
240     UI       STRING="$(MODULE_NAME)" Optional\r
241     VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
242   }\r
243 \r
244 [Rule.Common.UEFI_DRIVER]\r
245   FILE DRIVER = $(NAMED_GUID) {\r
246     DXE_DEPEX    DXE_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex\r
247     PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
248     UI       STRING="$(MODULE_NAME)" Optional\r
249     VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
250   }\r
251 \r
252 [Rule.Common.UEFI_DRIVER.BINARY]\r
253   FILE DRIVER = $(NAMED_GUID) {\r
254     DXE_DEPEX DXE_DEPEX Optional      |.depex\r
255     PE32      PE32                    |.efi\r
256     UI        STRING="$(MODULE_NAME)" Optional\r
257     VERSION   STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
258   }\r
259 \r
260 [Rule.Common.UEFI_APPLICATION]\r
261   FILE APPLICATION = $(NAMED_GUID) {\r
262     PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
263     UI       STRING="$(MODULE_NAME)" Optional\r
264     VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
265   }\r
266 \r
267 [Rule.Common.UEFI_APPLICATION.BINARY]\r
268   FILE APPLICATION = $(NAMED_GUID) {\r
269     PE32      PE32                    |.efi\r
270     UI        STRING="$(MODULE_NAME)" Optional\r
271     VERSION   STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
272   }\r
273 \r
274 [Rule.Common.USER_DEFINED.ACPITABLE]\r
275   FILE FREEFORM = $(NAMED_GUID) {\r
276     RAW ACPI               |.acpi\r
277     RAW ASL                |.aml\r
278   }\r
279 \r
280 [Rule.Common.USER_DEFINED.CSM]\r
281   FILE FREEFORM = $(NAMED_GUID) {\r
282     RAW BIN                |.bin\r
283   }\r
284 \r
285 [Rule.Common.SEC.RESET_VECTOR]\r
286   FILE RAW = $(NAMED_GUID) {\r
287     RAW RAW                |.raw\r
288   }\r