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