Pkg-Module: CorebootPayloadPkg
[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, 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 = 0x400000|gUefiCorebootModulePkgTokenSpaceGuid.PcdPayloadFdMemSize
21 ErasePolarity = 1
22 BlockSize = 0x1000
23 NumBlocks = 0x400
24
25 0x00000000|0x020000
26 FV = PEIFV
27
28 0x00020000|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 PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
114 INF DuetPkg/PciBusNoEnumerationDxe/PciBusNoEnumeration.inf
115
116 #
117 # ISA Support
118 #
119 INF CorebootPayloadPkg/SerialDxe/SerialDxe.inf
120
121 #
122 # Console Support
123 #
124 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
125 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
126 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
127 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
128
129 #
130 # SCSI/ATA/IDE/DISK Support
131 #
132 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
133 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
134 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
135 INF DuetPkg/SataControllerDxe/SataControllerDxe.inf
136 INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
137 INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
138 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
139 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
140
141 !if $(ARCH) == IA32
142 INF RuleOverride = BINARY USE = IA32 FatBinPkg/EnhancedFatDxe/Fat.inf
143 !else
144 INF RuleOverride = BINARY USE = X64 FatBinPkg/EnhancedFatDxe/Fat.inf
145 !endif
146
147 #
148 # Usb Support
149 #
150 INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
151 INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
152 INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
153 INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
154 INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
155 INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
156
157 #
158 # Shell
159 #
160 #!if $(ARCH) == IA32
161 #INF RuleOverride = BINARY USE = IA32 ShellBinPkg/UefiShell/UefiShell.inf
162 #!else
163 #INF RuleOverride = BINARY USE = X64 ShellBinPkg/UefiShell/UefiShell.inf
164 #!endif
165 #
166 !if $(ARCH) == IA32
167 INF RuleOverride = BINARY USE = IA32 EdkShellBinPkg/FullShell/FullShell.inf
168 !else
169 INF RuleOverride = BINARY USE = X64 EdkShellBinPkg/FullShell/FullShell.inf
170 !endif
171
172 FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
173 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
174 }
175
176 #
177 # Framebuffer Gop
178 #
179 INF CorebootPayloadPkg/FbGop/FbGop.inf
180
181 ################################################################################
182 #
183 # Rules are use with the [FV] section's module INF type to define
184 # how an FFS file is created for a given INF file. The following Rule are the default
185 # rules for the different module type. User can add the customized rules to define the
186 # content of the FFS file.
187 #
188 ################################################################################
189
190 [Rule.Common.SEC]
191 FILE SEC = $(NAMED_GUID) {
192 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
193 }
194
195 [Rule.Common.PEI_CORE]
196 FILE PEI_CORE = $(NAMED_GUID) {
197 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
198 UI STRING ="$(MODULE_NAME)" Optional
199 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
200 }
201
202 [Rule.Common.PEIM]
203 FILE PEIM = $(NAMED_GUID) {
204 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
205 PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
206 UI STRING="$(MODULE_NAME)" Optional
207 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
208 }
209
210 [Rule.Common.DXE_CORE]
211 FILE DXE_CORE = $(NAMED_GUID) {
212 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
213 UI STRING="$(MODULE_NAME)" Optional
214 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
215 }
216
217 [Rule.Common.DXE_DRIVER]
218 FILE DRIVER = $(NAMED_GUID) {
219 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
220 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
221 UI STRING="$(MODULE_NAME)" Optional
222 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
223 }
224
225 [Rule.Common.DXE_RUNTIME_DRIVER]
226 FILE DRIVER = $(NAMED_GUID) {
227 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
228 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
229 UI STRING="$(MODULE_NAME)" Optional
230 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
231 }
232
233 [Rule.Common.UEFI_DRIVER]
234 FILE DRIVER = $(NAMED_GUID) {
235 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
236 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
237 UI STRING="$(MODULE_NAME)" Optional
238 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
239 }
240
241 [Rule.Common.UEFI_DRIVER.BINARY]
242 FILE DRIVER = $(NAMED_GUID) {
243 DXE_DEPEX DXE_DEPEX Optional |.depex
244 PE32 PE32 |.efi
245 UI STRING="$(MODULE_NAME)" Optional
246 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
247 }
248
249 [Rule.Common.UEFI_APPLICATION]
250 FILE APPLICATION = $(NAMED_GUID) {
251 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
252 UI STRING="$(MODULE_NAME)" Optional
253 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
254 }
255
256 [Rule.Common.UEFI_APPLICATION.BINARY]
257 FILE APPLICATION = $(NAMED_GUID) {
258 PE32 PE32 |.efi
259 UI STRING="$(MODULE_NAME)" Optional
260 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
261 }
262
263 [Rule.Common.USER_DEFINED.ACPITABLE]
264 FILE FREEFORM = $(NAMED_GUID) {
265 RAW ACPI |.acpi
266 RAW ASL |.aml
267 }
268
269 [Rule.Common.USER_DEFINED.CSM]
270 FILE FREEFORM = $(NAMED_GUID) {
271 RAW BIN |.bin
272 }
273
274 [Rule.Common.SEC.RESET_VECTOR]
275 FILE RAW = $(NAMED_GUID) {
276 RAW RAW |.raw
277 }
278