1 | ## @file
|
---|
2 | # Bootloader Payload Package
|
---|
3 | #
|
---|
4 | # Provides drivers and definitions to create uefi payload for bootloaders.
|
---|
5 | #
|
---|
6 | # Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.<BR>
|
---|
7 | # SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
8 | #
|
---|
9 | ##
|
---|
10 |
|
---|
11 | ################################################################################
|
---|
12 | [FD.UefiPayload]
|
---|
13 | BaseAddress = 0x800000|gUefiPayloadPkgTokenSpaceGuid.PcdPayloadFdMemBase
|
---|
14 | Size = 0x410000|gUefiPayloadPkgTokenSpaceGuid.PcdPayloadFdMemSize
|
---|
15 | ErasePolarity = 1
|
---|
16 | BlockSize = 0x1000
|
---|
17 | NumBlocks = 0x410
|
---|
18 |
|
---|
19 | 0x00000000|0x030000
|
---|
20 | FV = PEIFV
|
---|
21 |
|
---|
22 | 0x00030000|0x3E0000
|
---|
23 | FV = DXEFV
|
---|
24 |
|
---|
25 | ################################################################################
|
---|
26 | [FV.PEIFV]
|
---|
27 | BlockSize = 0x1000
|
---|
28 | FvAlignment = 16
|
---|
29 | ERASE_POLARITY = 1
|
---|
30 | MEMORY_MAPPED = TRUE
|
---|
31 | STICKY_WRITE = TRUE
|
---|
32 | LOCK_CAP = TRUE
|
---|
33 | LOCK_STATUS = TRUE
|
---|
34 | WRITE_DISABLED_CAP = TRUE
|
---|
35 | WRITE_ENABLED_CAP = TRUE
|
---|
36 | WRITE_STATUS = TRUE
|
---|
37 | WRITE_LOCK_CAP = TRUE
|
---|
38 | WRITE_LOCK_STATUS = TRUE
|
---|
39 | READ_DISABLED_CAP = TRUE
|
---|
40 | READ_ENABLED_CAP = TRUE
|
---|
41 | READ_STATUS = TRUE
|
---|
42 | READ_LOCK_CAP = TRUE
|
---|
43 | READ_LOCK_STATUS = TRUE
|
---|
44 |
|
---|
45 | INF UefiPayloadPkg/SecCore/SecCore.inf
|
---|
46 |
|
---|
47 | INF MdeModulePkg/Core/Pei/PeiMain.inf
|
---|
48 | INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
|
---|
49 | INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
|
---|
50 | INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
|
---|
51 | INF UefiPayloadPkg/BlSupportPei/BlSupportPei.inf
|
---|
52 | INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
|
---|
53 |
|
---|
54 | ################################################################################
|
---|
55 |
|
---|
56 | [FV.DXEFV]
|
---|
57 | BlockSize = 0x1000
|
---|
58 | FvForceRebase = FALSE
|
---|
59 | FvAlignment = 16
|
---|
60 | ERASE_POLARITY = 1
|
---|
61 | MEMORY_MAPPED = TRUE
|
---|
62 | STICKY_WRITE = TRUE
|
---|
63 | LOCK_CAP = TRUE
|
---|
64 | LOCK_STATUS = TRUE
|
---|
65 | WRITE_DISABLED_CAP = TRUE
|
---|
66 | WRITE_ENABLED_CAP = TRUE
|
---|
67 | WRITE_STATUS = TRUE
|
---|
68 | WRITE_LOCK_CAP = TRUE
|
---|
69 | WRITE_LOCK_STATUS = TRUE
|
---|
70 | READ_DISABLED_CAP = TRUE
|
---|
71 | READ_ENABLED_CAP = TRUE
|
---|
72 | READ_STATUS = TRUE
|
---|
73 | READ_LOCK_CAP = TRUE
|
---|
74 | READ_LOCK_STATUS = TRUE
|
---|
75 |
|
---|
76 | APRIORI DXE {
|
---|
77 | INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
|
---|
78 | INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
|
---|
79 | INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
|
---|
80 | }
|
---|
81 |
|
---|
82 | #
|
---|
83 | # DXE Phase modules
|
---|
84 | #
|
---|
85 | INF MdeModulePkg/Core/Dxe/DxeMain.inf
|
---|
86 | INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
|
---|
87 | INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
|
---|
88 | INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
|
---|
89 |
|
---|
90 | INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
|
---|
91 | INF UefiCpuPkg/CpuDxe/CpuDxe.inf
|
---|
92 | INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
|
---|
93 | INF MdeModulePkg/Application/UiApp/UiApp.inf
|
---|
94 | INF PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf
|
---|
95 | INF MdeModulePkg/Universal/Metronome/Metronome.inf
|
---|
96 | INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
|
---|
97 | INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
|
---|
98 | INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
|
---|
99 | INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
|
---|
100 | INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
|
---|
101 | INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
|
---|
102 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
|
---|
103 |
|
---|
104 | INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
|
---|
105 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
|
---|
106 | INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
|
---|
107 | INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
|
---|
108 | INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
|
---|
109 | INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
|
---|
110 | INF UefiPayloadPkg/BlSupportDxe/BlSupportDxe.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 | !if $(PS2_KEYBOARD_ENABLE) == TRUE
|
---|
124 | INF OvmfPkg/SioBusDxe/SioBusDxe.inf
|
---|
125 | INF MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
|
---|
126 | !endif
|
---|
127 |
|
---|
128 | #
|
---|
129 | # Console Support
|
---|
130 | #
|
---|
131 | INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
|
---|
132 | INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
|
---|
133 | INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
|
---|
134 | INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
|
---|
135 | INF UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
|
---|
136 |
|
---|
137 | #
|
---|
138 | # SCSI/ATA/IDE/DISK Support
|
---|
139 | #
|
---|
140 | INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
|
---|
141 | INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
|
---|
142 | INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
|
---|
143 | INF MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
|
---|
144 | INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
|
---|
145 | INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
|
---|
146 | INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
|
---|
147 | INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
|
---|
148 |
|
---|
149 | INF FatPkg/EnhancedFatDxe/Fat.inf
|
---|
150 |
|
---|
151 | #
|
---|
152 | # SD/eMMC Support
|
---|
153 | #
|
---|
154 | INF MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
|
---|
155 | INF MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
|
---|
156 | INF MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
|
---|
157 |
|
---|
158 | #
|
---|
159 | # Usb Support
|
---|
160 | #
|
---|
161 | INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
|
---|
162 | INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
|
---|
163 | INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
|
---|
164 | INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
|
---|
165 | INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
|
---|
166 | INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
|
---|
167 |
|
---|
168 |
|
---|
169 | #
|
---|
170 | # Shell
|
---|
171 | #
|
---|
172 | !if $(SHELL_TYPE) == BUILD_SHELL
|
---|
173 | INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
|
---|
174 | INF ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf
|
---|
175 | INF ShellPkg/Application/Shell/Shell.inf
|
---|
176 | !endif
|
---|
177 |
|
---|
178 | !if $(SHELL_TYPE) == MIN_BIN
|
---|
179 | !if $(ARCH) == IA32
|
---|
180 | INF RuleOverride = BINARY USE = IA32 ShellBinPkg/MinUefiShell/MinUefiShell.inf
|
---|
181 | !else
|
---|
182 | INF RuleOverride = BINARY USE = X64 ShellBinPkg/MinUefiShell/MinUefiShell.inf
|
---|
183 | !endif
|
---|
184 | !endif
|
---|
185 |
|
---|
186 | !if $(SHELL_TYPE) == UEFI_BIN
|
---|
187 | !if $(ARCH) == IA32
|
---|
188 | INF RuleOverride = BINARY USE = IA32 ShellBinPkg/UefiShell/UefiShell.inf
|
---|
189 | !else
|
---|
190 | INF RuleOverride = BINARY USE = X64 ShellBinPkg/UefiShell/UefiShell.inf
|
---|
191 | !endif
|
---|
192 | !endif
|
---|
193 |
|
---|
194 |
|
---|
195 | ################################################################################
|
---|
196 | #
|
---|
197 | # Rules are use with the [FV] section's module INF type to define
|
---|
198 | # how an FFS file is created for a given INF file. The following Rule are the default
|
---|
199 | # rules for the different module type. User can add the customized rules to define the
|
---|
200 | # content of the FFS file.
|
---|
201 | #
|
---|
202 | ################################################################################
|
---|
203 |
|
---|
204 | [Rule.Common.SEC]
|
---|
205 | FILE SEC = $(NAMED_GUID) {
|
---|
206 | PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
207 | }
|
---|
208 |
|
---|
209 | [Rule.Common.PEI_CORE]
|
---|
210 | FILE PEI_CORE = $(NAMED_GUID) {
|
---|
211 | PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
212 | UI STRING ="$(MODULE_NAME)" Optional
|
---|
213 | VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
214 | }
|
---|
215 |
|
---|
216 | [Rule.Common.PEIM]
|
---|
217 | FILE PEIM = $(NAMED_GUID) {
|
---|
218 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
219 | PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
220 | UI STRING="$(MODULE_NAME)" Optional
|
---|
221 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
222 | }
|
---|
223 |
|
---|
224 | [Rule.Common.DXE_CORE]
|
---|
225 | FILE DXE_CORE = $(NAMED_GUID) {
|
---|
226 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
227 | UI STRING="$(MODULE_NAME)" Optional
|
---|
228 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
229 | }
|
---|
230 |
|
---|
231 | [Rule.Common.DXE_DRIVER]
|
---|
232 | FILE DRIVER = $(NAMED_GUID) {
|
---|
233 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
234 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
235 | UI STRING="$(MODULE_NAME)" Optional
|
---|
236 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
237 | }
|
---|
238 |
|
---|
239 | [Rule.Common.DXE_RUNTIME_DRIVER]
|
---|
240 | FILE DRIVER = $(NAMED_GUID) {
|
---|
241 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
242 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
243 | UI STRING="$(MODULE_NAME)" Optional
|
---|
244 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
245 | }
|
---|
246 |
|
---|
247 | [Rule.Common.UEFI_DRIVER]
|
---|
248 | FILE DRIVER = $(NAMED_GUID) {
|
---|
249 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
250 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
251 | UI STRING="$(MODULE_NAME)" Optional
|
---|
252 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
253 | }
|
---|
254 |
|
---|
255 | [Rule.Common.UEFI_DRIVER.BINARY]
|
---|
256 | FILE DRIVER = $(NAMED_GUID) {
|
---|
257 | DXE_DEPEX DXE_DEPEX Optional |.depex
|
---|
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.UEFI_APPLICATION]
|
---|
264 | FILE APPLICATION = $(NAMED_GUID) {
|
---|
265 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
266 | UI STRING="$(MODULE_NAME)" Optional
|
---|
267 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
268 | }
|
---|
269 |
|
---|
270 | [Rule.Common.UEFI_APPLICATION.BINARY]
|
---|
271 | FILE APPLICATION = $(NAMED_GUID) {
|
---|
272 | PE32 PE32 |.efi
|
---|
273 | UI STRING="$(MODULE_NAME)" Optional
|
---|
274 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
275 | }
|
---|
276 |
|
---|
277 | [Rule.Common.USER_DEFINED.ACPITABLE]
|
---|
278 | FILE FREEFORM = $(NAMED_GUID) {
|
---|
279 | RAW ACPI |.acpi
|
---|
280 | RAW ASL |.aml
|
---|
281 | }
|
---|
282 |
|
---|
283 | [Rule.Common.USER_DEFINED.CSM]
|
---|
284 | FILE FREEFORM = $(NAMED_GUID) {
|
---|
285 | RAW BIN |.bin
|
---|
286 | }
|
---|
287 |
|
---|
288 | [Rule.Common.SEC.RESET_VECTOR]
|
---|
289 | FILE RAW = $(NAMED_GUID) {
|
---|
290 | RAW RAW |.raw
|
---|
291 | }
|
---|