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