6d2019de5b17c8296973d83205c797d25b2bfee2
[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 - 2016, 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 FvAlignment = 16
65 ERASE_POLARITY = 1
66 MEMORY_MAPPED = TRUE
67 STICKY_WRITE = TRUE
68 LOCK_CAP = TRUE
69 LOCK_STATUS = TRUE
70 WRITE_DISABLED_CAP = TRUE
71 WRITE_ENABLED_CAP = TRUE
72 WRITE_STATUS = TRUE
73 WRITE_LOCK_CAP = TRUE
74 WRITE_LOCK_STATUS = TRUE
75 READ_DISABLED_CAP = TRUE
76 READ_ENABLED_CAP = TRUE
77 READ_STATUS = TRUE
78 READ_LOCK_CAP = TRUE
79 READ_LOCK_STATUS = TRUE
80
81 #
82 # DXE Phase modules
83 #
84 INF MdeModulePkg/Core/Dxe/DxeMain.inf
85 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
86 INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
87 INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
88
89 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
90 INF UefiCpuPkg/CpuDxe/CpuDxe.inf
91 INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
92 INF MdeModulePkg/Application/UiApp/UiApp.inf
93 INF PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
94 INF MdeModulePkg/Universal/Metronome/Metronome.inf
95 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
96 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
97 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
98 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
99 INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
100 INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
101 INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
102
103 INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
104 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
105 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
106 INF PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
107 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
108 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
109 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
110 INF CorebootModulePkg/CbSupportDxe/CbSupportDxe.inf
111
112 INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
113 #
114 # PCI Support
115 #
116 INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
117 INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
118
119 #
120 # ISA Support
121 #
122 INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
123
124 #
125 # Console Support
126 #
127 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
128 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
129 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
130 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
131
132 #
133 # SCSI/ATA/IDE/DISK Support
134 #
135 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
136 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
137 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
138 INF CorebootModulePkg/SataControllerDxe/SataControllerDxe.inf
139 INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
140 INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
141 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
142 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
143
144 INF FatPkg/EnhancedFatDxe/Fat.inf
145
146 #
147 # SD/eMMC Support
148 #
149 INF MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
150 INF MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
151 INF MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
152
153 #
154 # Usb Support
155 #
156 INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
157 INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
158 INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
159 INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
160 INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
161 INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
162
163 #
164 # OHCI Support
165 #
166 INF QuarkSocPkg/QuarkSouthCluster/Usb/Ohci/Dxe/OhciDxe.inf
167
168 #
169 # Shell
170 #
171 !if $(SHELL_TYPE) == BUILD_SHELL
172 INF ShellPkg/Application/Shell/Shell.inf
173 !endif
174
175 !if $(SHELL_TYPE) == FULL_BIN
176 !if $(ARCH) == IA32
177 INF RuleOverride = BINARY USE = IA32 EdkShellBinPkg/FullShell/FullShell.inf
178 !else
179 INF RuleOverride = BINARY USE = X64 EdkShellBinPkg/FullShell/FullShell.inf
180 !endif
181 !endif
182
183 !if $(SHELL_TYPE) == MIN_BIN
184 !if $(ARCH) == IA32
185 INF RuleOverride = BINARY USE = IA32 ShellBinPkg/MinUefiShell/MinUefiShell.inf
186 !else
187 INF RuleOverride = BINARY USE = X64 ShellBinPkg/MinUefiShell/MinUefiShell.inf
188 !endif
189 !endif
190
191 !if $(SHELL_TYPE) == UEFI_BIN
192 !if $(ARCH) == IA32
193 INF RuleOverride = BINARY USE = IA32 ShellBinPkg/UefiShell/UefiShell.inf
194 !else
195 INF RuleOverride = BINARY USE = X64 ShellBinPkg/UefiShell/UefiShell.inf
196 !endif
197 !endif
198
199 FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
200 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
201 }
202
203 #
204 # Framebuffer Gop
205 #
206 INF CorebootPayloadPkg/FbGop/FbGop.inf
207
208 ################################################################################
209 #
210 # Rules are use with the [FV] section's module INF type to define
211 # how an FFS file is created for a given INF file. The following Rule are the default
212 # rules for the different module type. User can add the customized rules to define the
213 # content of the FFS file.
214 #
215 ################################################################################
216
217 [Rule.Common.SEC]
218 FILE SEC = $(NAMED_GUID) {
219 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
220 }
221
222 [Rule.Common.PEI_CORE]
223 FILE PEI_CORE = $(NAMED_GUID) {
224 PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
225 UI STRING ="$(MODULE_NAME)" Optional
226 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
227 }
228
229 [Rule.Common.PEIM]
230 FILE PEIM = $(NAMED_GUID) {
231 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
232 PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
233 UI STRING="$(MODULE_NAME)" Optional
234 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
235 }
236
237 [Rule.Common.DXE_CORE]
238 FILE DXE_CORE = $(NAMED_GUID) {
239 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
240 UI STRING="$(MODULE_NAME)" Optional
241 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
242 }
243
244 [Rule.Common.DXE_DRIVER]
245 FILE DRIVER = $(NAMED_GUID) {
246 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
247 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
248 UI STRING="$(MODULE_NAME)" Optional
249 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
250 }
251
252 [Rule.Common.DXE_RUNTIME_DRIVER]
253 FILE DRIVER = $(NAMED_GUID) {
254 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
255 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
256 UI STRING="$(MODULE_NAME)" Optional
257 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
258 }
259
260 [Rule.Common.UEFI_DRIVER]
261 FILE DRIVER = $(NAMED_GUID) {
262 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
263 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
264 UI STRING="$(MODULE_NAME)" Optional
265 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
266 }
267
268 [Rule.Common.UEFI_DRIVER.BINARY]
269 FILE DRIVER = $(NAMED_GUID) {
270 DXE_DEPEX DXE_DEPEX Optional |.depex
271 PE32 PE32 |.efi
272 UI STRING="$(MODULE_NAME)" Optional
273 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
274 }
275
276 [Rule.Common.UEFI_APPLICATION]
277 FILE APPLICATION = $(NAMED_GUID) {
278 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
279 UI STRING="$(MODULE_NAME)" Optional
280 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
281 }
282
283 [Rule.Common.UEFI_APPLICATION.BINARY]
284 FILE APPLICATION = $(NAMED_GUID) {
285 PE32 PE32 |.efi
286 UI STRING="$(MODULE_NAME)" Optional
287 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
288 }
289
290 [Rule.Common.USER_DEFINED.ACPITABLE]
291 FILE FREEFORM = $(NAMED_GUID) {
292 RAW ACPI |.acpi
293 RAW ASL |.aml
294 }
295
296 [Rule.Common.USER_DEFINED.CSM]
297 FILE FREEFORM = $(NAMED_GUID) {
298 RAW BIN |.bin
299 }
300
301 [Rule.Common.SEC.RESET_VECTOR]
302 FILE RAW = $(NAMED_GUID) {
303 RAW RAW |.raw
304 }