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