1 | ## @file
|
---|
2 | # Open Virtual Machine Firmware: FDF
|
---|
3 | #
|
---|
4 | # Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
|
---|
5 | # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
|
---|
6 | #
|
---|
7 | # SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
8 | #
|
---|
9 | ##
|
---|
10 |
|
---|
11 | ################################################################################
|
---|
12 |
|
---|
13 | [Defines]
|
---|
14 | !include OvmfPkgDefines.fdf.inc
|
---|
15 |
|
---|
16 | #
|
---|
17 | # Build the variable store and the firmware code as one unified flash device
|
---|
18 | # image.
|
---|
19 | #
|
---|
20 | [FD.OVMF]
|
---|
21 | BaseAddress = $(FW_BASE_ADDRESS)
|
---|
22 | Size = $(FW_SIZE)
|
---|
23 | ErasePolarity = 1
|
---|
24 | BlockSize = $(BLOCK_SIZE)
|
---|
25 | NumBlocks = $(FW_BLOCKS)
|
---|
26 |
|
---|
27 | !include VarStore.fdf.inc
|
---|
28 |
|
---|
29 | $(VARS_SIZE)|$(FVMAIN_SIZE)
|
---|
30 | FV = FVMAIN_COMPACT
|
---|
31 |
|
---|
32 | $(SECFV_OFFSET)|$(SECFV_SIZE)
|
---|
33 | FV = SECFV
|
---|
34 |
|
---|
35 | #
|
---|
36 | # Build the variable store and the firmware code as separate flash device
|
---|
37 | # images.
|
---|
38 | #
|
---|
39 | [FD.OVMF_VARS]
|
---|
40 | BaseAddress = $(FW_BASE_ADDRESS)
|
---|
41 | Size = $(VARS_SIZE)
|
---|
42 | ErasePolarity = 1
|
---|
43 | BlockSize = $(BLOCK_SIZE)
|
---|
44 | NumBlocks = $(VARS_BLOCKS)
|
---|
45 |
|
---|
46 | !include VarStore.fdf.inc
|
---|
47 |
|
---|
48 | [FD.OVMF_CODE]
|
---|
49 | BaseAddress = $(CODE_BASE_ADDRESS)
|
---|
50 | Size = $(CODE_SIZE)
|
---|
51 | ErasePolarity = 1
|
---|
52 | BlockSize = $(BLOCK_SIZE)
|
---|
53 | NumBlocks = $(CODE_BLOCKS)
|
---|
54 |
|
---|
55 | 0x00000000|$(FVMAIN_SIZE)
|
---|
56 | FV = FVMAIN_COMPACT
|
---|
57 |
|
---|
58 | $(FVMAIN_SIZE)|$(SECFV_SIZE)
|
---|
59 | FV = SECFV
|
---|
60 |
|
---|
61 | ################################################################################
|
---|
62 |
|
---|
63 | [FD.MEMFD]
|
---|
64 | BaseAddress = $(MEMFD_BASE_ADDRESS)
|
---|
65 | Size = 0xD00000
|
---|
66 | ErasePolarity = 1
|
---|
67 | BlockSize = 0x10000
|
---|
68 | NumBlocks = 0xD0
|
---|
69 |
|
---|
70 | 0x000000|0x006000
|
---|
71 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesSize
|
---|
72 |
|
---|
73 | 0x006000|0x001000
|
---|
74 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageSize
|
---|
75 |
|
---|
76 | 0x007000|0x001000
|
---|
77 | gEfiMdePkgTokenSpaceGuid.PcdGuidedExtractHandlerTableAddress|gUefiOvmfPkgTokenSpaceGuid.PcdGuidedExtractHandlerTableSize
|
---|
78 |
|
---|
79 | 0x010000|0x010000
|
---|
80 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize
|
---|
81 |
|
---|
82 | 0x020000|0x0E0000
|
---|
83 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvSize
|
---|
84 | FV = PEIFV
|
---|
85 |
|
---|
86 | 0x100000|0xC00000
|
---|
87 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvSize
|
---|
88 | FV = DXEFV
|
---|
89 |
|
---|
90 | ################################################################################
|
---|
91 |
|
---|
92 | [FV.SECFV]
|
---|
93 | FvNameGuid = 763BED0D-DE9F-48F5-81F1-3E90E1B1A015
|
---|
94 | BlockSize = 0x1000
|
---|
95 | FvAlignment = 16
|
---|
96 | ERASE_POLARITY = 1
|
---|
97 | MEMORY_MAPPED = TRUE
|
---|
98 | STICKY_WRITE = TRUE
|
---|
99 | LOCK_CAP = TRUE
|
---|
100 | LOCK_STATUS = TRUE
|
---|
101 | WRITE_DISABLED_CAP = TRUE
|
---|
102 | WRITE_ENABLED_CAP = TRUE
|
---|
103 | WRITE_STATUS = TRUE
|
---|
104 | WRITE_LOCK_CAP = TRUE
|
---|
105 | WRITE_LOCK_STATUS = TRUE
|
---|
106 | READ_DISABLED_CAP = TRUE
|
---|
107 | READ_ENABLED_CAP = TRUE
|
---|
108 | READ_STATUS = TRUE
|
---|
109 | READ_LOCK_CAP = TRUE
|
---|
110 | READ_LOCK_STATUS = TRUE
|
---|
111 |
|
---|
112 | #
|
---|
113 | # SEC Phase modules
|
---|
114 | #
|
---|
115 | # The code in this FV handles the initial firmware startup, and
|
---|
116 | # decompresses the PEI and DXE FVs which handles the rest of the boot sequence.
|
---|
117 | #
|
---|
118 | INF OvmfPkg/Sec/SecMain.inf
|
---|
119 |
|
---|
120 | INF RuleOverride=RESET_VECTOR OvmfPkg/ResetVector/ResetVector.inf
|
---|
121 |
|
---|
122 | ################################################################################
|
---|
123 | [FV.PEIFV]
|
---|
124 | FvNameGuid = 6938079B-B503-4E3D-9D24-B28337A25806
|
---|
125 | BlockSize = 0x10000
|
---|
126 | FvAlignment = 16
|
---|
127 | ERASE_POLARITY = 1
|
---|
128 | MEMORY_MAPPED = TRUE
|
---|
129 | STICKY_WRITE = TRUE
|
---|
130 | LOCK_CAP = TRUE
|
---|
131 | LOCK_STATUS = TRUE
|
---|
132 | WRITE_DISABLED_CAP = TRUE
|
---|
133 | WRITE_ENABLED_CAP = TRUE
|
---|
134 | WRITE_STATUS = TRUE
|
---|
135 | WRITE_LOCK_CAP = TRUE
|
---|
136 | WRITE_LOCK_STATUS = TRUE
|
---|
137 | READ_DISABLED_CAP = TRUE
|
---|
138 | READ_ENABLED_CAP = TRUE
|
---|
139 | READ_STATUS = TRUE
|
---|
140 | READ_LOCK_CAP = TRUE
|
---|
141 | READ_LOCK_STATUS = TRUE
|
---|
142 |
|
---|
143 | APRIORI PEI {
|
---|
144 | INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
|
---|
145 | }
|
---|
146 |
|
---|
147 | #
|
---|
148 | # PEI Phase modules
|
---|
149 | #
|
---|
150 | INF MdeModulePkg/Core/Pei/PeiMain.inf
|
---|
151 | INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
|
---|
152 | INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
|
---|
153 | INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
|
---|
154 | INF OvmfPkg/PlatformPei/PlatformPei.inf
|
---|
155 | INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
|
---|
156 | INF UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
|
---|
157 | !if $(SMM_REQUIRE) == TRUE
|
---|
158 | INF MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
|
---|
159 | INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
|
---|
160 | INF OvmfPkg/SmmAccess/SmmAccessPei.inf
|
---|
161 | !endif
|
---|
162 | INF UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
---|
163 |
|
---|
164 | !if $(TPM_ENABLE) == TRUE
|
---|
165 | INF OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf
|
---|
166 | INF OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
|
---|
167 | INF SecurityPkg/Tcg/TcgPei/TcgPei.inf
|
---|
168 | INF SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf
|
---|
169 | !endif
|
---|
170 |
|
---|
171 | ################################################################################
|
---|
172 |
|
---|
173 | [FV.DXEFV]
|
---|
174 | FvForceRebase = FALSE
|
---|
175 | FvNameGuid = 7CB8BDC9-F8EB-4F34-AAEA-3EE4AF6516A1
|
---|
176 | BlockSize = 0x10000
|
---|
177 | FvAlignment = 16
|
---|
178 | ERASE_POLARITY = 1
|
---|
179 | MEMORY_MAPPED = TRUE
|
---|
180 | STICKY_WRITE = TRUE
|
---|
181 | LOCK_CAP = TRUE
|
---|
182 | LOCK_STATUS = TRUE
|
---|
183 | WRITE_DISABLED_CAP = TRUE
|
---|
184 | WRITE_ENABLED_CAP = TRUE
|
---|
185 | WRITE_STATUS = TRUE
|
---|
186 | WRITE_LOCK_CAP = TRUE
|
---|
187 | WRITE_LOCK_STATUS = TRUE
|
---|
188 | READ_DISABLED_CAP = TRUE
|
---|
189 | READ_ENABLED_CAP = TRUE
|
---|
190 | READ_STATUS = TRUE
|
---|
191 | READ_LOCK_CAP = TRUE
|
---|
192 | READ_LOCK_STATUS = TRUE
|
---|
193 |
|
---|
194 | APRIORI DXE {
|
---|
195 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
|
---|
196 | INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
|
---|
197 | !if $(SMM_REQUIRE) == FALSE
|
---|
198 | INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
|
---|
199 | !endif
|
---|
200 | }
|
---|
201 |
|
---|
202 | #
|
---|
203 | # DXE Phase modules
|
---|
204 | #
|
---|
205 | INF MdeModulePkg/Core/Dxe/DxeMain.inf
|
---|
206 |
|
---|
207 | INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
|
---|
208 | INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
|
---|
209 | INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
|
---|
210 |
|
---|
211 | INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
|
---|
212 | INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
|
---|
213 | INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
|
---|
214 | INF OvmfPkg/8259InterruptControllerDxe/8259.inf
|
---|
215 | INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
|
---|
216 | INF UefiCpuPkg/CpuDxe/CpuDxe.inf
|
---|
217 | INF OvmfPkg/8254TimerDxe/8254Timer.inf
|
---|
218 | INF OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
|
---|
219 | INF OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
|
---|
220 | INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
|
---|
221 | INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
|
---|
222 | INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
|
---|
223 | INF MdeModulePkg/Universal/Metronome/Metronome.inf
|
---|
224 | INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
|
---|
225 |
|
---|
226 | INF OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
|
---|
227 | INF OvmfPkg/Virtio10Dxe/Virtio10.inf
|
---|
228 | !ifndef $(VBOX)
|
---|
229 | INF OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
|
---|
230 | !endif
|
---|
231 | INF OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
|
---|
232 | !ifndef $(VBOX)
|
---|
233 | INF OvmfPkg/VirtioRngDxe/VirtioRng.inf
|
---|
234 | INF OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
|
---|
235 | INF OvmfPkg/XenBusDxe/XenBusDxe.inf
|
---|
236 | INF OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
|
---|
237 | !endif
|
---|
238 | !if $(PVSCSI_ENABLE) == TRUE
|
---|
239 | INF OvmfPkg/PvScsiDxe/PvScsiDxe.inf
|
---|
240 | !endif
|
---|
241 | !if $(MPT_SCSI_ENABLE) == TRUE
|
---|
242 | INF OvmfPkg/MptScsiDxe/MptScsiDxe.inf
|
---|
243 | !endif
|
---|
244 | !if $(LSI_SCSI_ENABLE) == TRUE
|
---|
245 | INF OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
|
---|
246 | !endif
|
---|
247 |
|
---|
248 | !if $(SECURE_BOOT_ENABLE) == TRUE
|
---|
249 | INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
|
---|
250 | !endif
|
---|
251 |
|
---|
252 | INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
|
---|
253 | INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
|
---|
254 | INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
|
---|
255 | INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
|
---|
256 | INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
|
---|
257 | INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
|
---|
258 | INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
|
---|
259 | INF MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
|
---|
260 | INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
|
---|
261 | INF MdeModulePkg/Application/UiApp/UiApp.inf
|
---|
262 | INF OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf
|
---|
263 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
|
---|
264 | INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
|
---|
265 | INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
|
---|
266 | INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
|
---|
267 | INF MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
|
---|
268 | INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
|
---|
269 | INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
|
---|
270 | INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
|
---|
271 | INF OvmfPkg/SataControllerDxe/SataControllerDxe.inf
|
---|
272 | INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
|
---|
273 | INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
|
---|
274 | INF MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
|
---|
275 | INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
|
---|
276 | INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
|
---|
277 | INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
|
---|
278 | INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
|
---|
279 |
|
---|
280 | INF OvmfPkg/SioBusDxe/SioBusDxe.inf
|
---|
281 | !if $(SOURCE_DEBUG_ENABLE) == FALSE
|
---|
282 | INF MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
|
---|
283 | !endif
|
---|
284 | INF MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
|
---|
285 |
|
---|
286 | INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
|
---|
287 | INF OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
|
---|
288 |
|
---|
289 | !ifdef $(VBOX)
|
---|
290 | INF VBoxPkg/VBoxVgaMiniPortDxe/VBoxVgaMiniPortDxe.inf
|
---|
291 | INF VBoxPkg/VBoxVgaDxe/VBoxVgaDxe.inf
|
---|
292 | INF VBoxPkg/VBoxFsDxe/VBoxHfs.inf
|
---|
293 | INF VBoxPkg/VBoxSysTables/VBoxSysTables.inf
|
---|
294 | INF VBoxPkg/VBoxAppleSim/VBoxAppleSim.inf
|
---|
295 | # INF VBoxPkg/VBoxApfsJmpStartDxe/VBoxApfsJmpStartDxe.inf -- 64-bit only!
|
---|
296 | INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
|
---|
297 | !endif
|
---|
298 |
|
---|
299 | !ifndef $(VBOX)
|
---|
300 | INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
|
---|
301 | INF OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
|
---|
302 | INF RuleOverride=ACPITABLE OvmfPkg/AcpiTables/AcpiTables.inf
|
---|
303 | INF MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
|
---|
304 | INF MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
|
---|
305 | INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
|
---|
306 | !else
|
---|
307 | INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
|
---|
308 | INF MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
|
---|
309 | !endif
|
---|
310 |
|
---|
311 | INF FatPkg/EnhancedFatDxe/Fat.inf
|
---|
312 | INF MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
|
---|
313 | INF OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
|
---|
314 |
|
---|
315 | !if $(TOOL_CHAIN_TAG) != "XCODE5"
|
---|
316 | INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
|
---|
317 | INF ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf
|
---|
318 | INF OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf
|
---|
319 | !endif
|
---|
320 | INF ShellPkg/Application/Shell/Shell.inf
|
---|
321 |
|
---|
322 | !ifndef $(VBOX)
|
---|
323 | INF MdeModulePkg/Logo/LogoDxe.inf
|
---|
324 | !else
|
---|
325 | INF VBoxPkg/Logo/LogoDxe.inf
|
---|
326 | !endif
|
---|
327 |
|
---|
328 | #
|
---|
329 | # Network modules
|
---|
330 | #
|
---|
331 | !include NetworkPkg/Network.fdf.inc
|
---|
332 | INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
---|
333 | !ifdef $(VBOX)
|
---|
334 | INF VBoxPkg/E1kNetDxe/E1kNet.inf
|
---|
335 | !endif
|
---|
336 |
|
---|
337 | #
|
---|
338 | # Usb Support
|
---|
339 | #
|
---|
340 | !ifndef $(VBOX)
|
---|
341 | INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
|
---|
342 | !endif
|
---|
343 | INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
|
---|
344 | INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
|
---|
345 | INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
|
---|
346 | INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
|
---|
347 | INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
|
---|
348 |
|
---|
349 | !ifdef $(CSM_ENABLE)
|
---|
350 | INF OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf
|
---|
351 | INF OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
|
---|
352 | INF RuleOverride=CSM OvmfPkg/Csm/Csm16/Csm16.inf
|
---|
353 | !else
|
---|
354 | !ifndef $(VBOX)
|
---|
355 | INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
|
---|
356 | !endif
|
---|
357 | !endif
|
---|
358 |
|
---|
359 | !ifndef $(VBOX)
|
---|
360 | INF OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
|
---|
361 | INF OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
|
---|
362 | !endif
|
---|
363 | INF OvmfPkg/PlatformDxe/Platform.inf
|
---|
364 | INF OvmfPkg/IoMmuDxe/IoMmuDxe.inf
|
---|
365 |
|
---|
366 | !if $(SMM_REQUIRE) == TRUE
|
---|
367 | INF OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
|
---|
368 | INF OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
|
---|
369 | INF OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
|
---|
370 | INF MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
|
---|
371 | INF MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
|
---|
372 | INF OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
|
---|
373 | INF UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
|
---|
374 | INF MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf
|
---|
375 | INF UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
|
---|
376 |
|
---|
377 | #
|
---|
378 | # Variable driver stack (SMM)
|
---|
379 | #
|
---|
380 | INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
|
---|
381 | INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
|
---|
382 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf
|
---|
383 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
|
---|
384 |
|
---|
385 | !else
|
---|
386 |
|
---|
387 | #
|
---|
388 | # Variable driver stack (non-SMM)
|
---|
389 | #
|
---|
390 | INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
|
---|
391 | INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
|
---|
392 | INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
|
---|
393 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
|
---|
394 | !endif
|
---|
395 |
|
---|
396 | #
|
---|
397 | # TPM support
|
---|
398 | #
|
---|
399 | !if $(TPM_ENABLE) == TRUE
|
---|
400 | INF SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
|
---|
401 | INF SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf
|
---|
402 | !if $(TPM_CONFIG_ENABLE) == TRUE
|
---|
403 | INF SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
|
---|
404 | !endif
|
---|
405 | !endif
|
---|
406 |
|
---|
407 | !if $(LOAD_X64_ON_IA32_ENABLE) == TRUE
|
---|
408 | INF OvmfPkg/CompatImageLoaderDxe/CompatImageLoaderDxe.inf
|
---|
409 | !endif
|
---|
410 |
|
---|
411 | ################################################################################
|
---|
412 |
|
---|
413 | [FV.FVMAIN_COMPACT]
|
---|
414 | FvNameGuid = 48DB5E17-707C-472D-91CD-1613E7EF51B0
|
---|
415 | FvAlignment = 16
|
---|
416 | ERASE_POLARITY = 1
|
---|
417 | MEMORY_MAPPED = TRUE
|
---|
418 | STICKY_WRITE = TRUE
|
---|
419 | LOCK_CAP = TRUE
|
---|
420 | LOCK_STATUS = TRUE
|
---|
421 | WRITE_DISABLED_CAP = TRUE
|
---|
422 | WRITE_ENABLED_CAP = TRUE
|
---|
423 | WRITE_STATUS = TRUE
|
---|
424 | WRITE_LOCK_CAP = TRUE
|
---|
425 | WRITE_LOCK_STATUS = TRUE
|
---|
426 | READ_DISABLED_CAP = TRUE
|
---|
427 | READ_ENABLED_CAP = TRUE
|
---|
428 | READ_STATUS = TRUE
|
---|
429 | READ_LOCK_CAP = TRUE
|
---|
430 | READ_LOCK_STATUS = TRUE
|
---|
431 |
|
---|
432 | FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
|
---|
433 | SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
|
---|
434 | #
|
---|
435 | # These firmware volumes will have files placed in them uncompressed,
|
---|
436 | # and then both firmware volumes will be compressed in a single
|
---|
437 | # compression operation in order to achieve better overall compression.
|
---|
438 | #
|
---|
439 | SECTION FV_IMAGE = PEIFV
|
---|
440 | SECTION FV_IMAGE = DXEFV
|
---|
441 | }
|
---|
442 | }
|
---|
443 |
|
---|
444 | !include FvmainCompactScratchEnd.fdf.inc
|
---|
445 |
|
---|
446 | ################################################################################
|
---|
447 |
|
---|
448 | [Rule.Common.SEC]
|
---|
449 | FILE SEC = $(NAMED_GUID) {
|
---|
450 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
451 | UI STRING ="$(MODULE_NAME)" Optional
|
---|
452 | VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
453 | }
|
---|
454 |
|
---|
455 | [Rule.Common.PEI_CORE]
|
---|
456 | FILE PEI_CORE = $(NAMED_GUID) {
|
---|
457 | PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
458 | UI STRING ="$(MODULE_NAME)" Optional
|
---|
459 | VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
460 | }
|
---|
461 |
|
---|
462 | [Rule.Common.PEIM]
|
---|
463 | FILE PEIM = $(NAMED_GUID) {
|
---|
464 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
465 | PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
466 | UI STRING="$(MODULE_NAME)" Optional
|
---|
467 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
468 | }
|
---|
469 |
|
---|
470 | [Rule.Common.DXE_CORE]
|
---|
471 | FILE DXE_CORE = $(NAMED_GUID) {
|
---|
472 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
473 | UI STRING="$(MODULE_NAME)" Optional
|
---|
474 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
475 | }
|
---|
476 |
|
---|
477 | [Rule.Common.DXE_DRIVER]
|
---|
478 | FILE DRIVER = $(NAMED_GUID) {
|
---|
479 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
480 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
481 | UI STRING="$(MODULE_NAME)" Optional
|
---|
482 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
483 | RAW ACPI Optional |.acpi
|
---|
484 | RAW ASL Optional |.aml
|
---|
485 | }
|
---|
486 |
|
---|
487 | [Rule.Common.DXE_RUNTIME_DRIVER]
|
---|
488 | FILE DRIVER = $(NAMED_GUID) {
|
---|
489 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
490 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
491 | UI STRING="$(MODULE_NAME)" Optional
|
---|
492 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
493 | }
|
---|
494 |
|
---|
495 | [Rule.Common.UEFI_DRIVER]
|
---|
496 | FILE DRIVER = $(NAMED_GUID) {
|
---|
497 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
498 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
499 | UI STRING="$(MODULE_NAME)" Optional
|
---|
500 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
501 | }
|
---|
502 |
|
---|
503 | [Rule.Common.UEFI_DRIVER.BINARY]
|
---|
504 | FILE DRIVER = $(NAMED_GUID) {
|
---|
505 | DXE_DEPEX DXE_DEPEX Optional |.depex
|
---|
506 | PE32 PE32 |.efi
|
---|
507 | UI STRING="$(MODULE_NAME)" Optional
|
---|
508 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
509 | }
|
---|
510 |
|
---|
511 | [Rule.Common.UEFI_APPLICATION]
|
---|
512 | FILE APPLICATION = $(NAMED_GUID) {
|
---|
513 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
514 | UI STRING="$(MODULE_NAME)" Optional
|
---|
515 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
516 | }
|
---|
517 |
|
---|
518 | [Rule.Common.UEFI_APPLICATION.BINARY]
|
---|
519 | FILE APPLICATION = $(NAMED_GUID) {
|
---|
520 | PE32 PE32 |.efi
|
---|
521 | UI STRING="$(MODULE_NAME)" Optional
|
---|
522 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
523 | }
|
---|
524 |
|
---|
525 | [Rule.Common.USER_DEFINED.ACPITABLE]
|
---|
526 | FILE FREEFORM = $(NAMED_GUID) {
|
---|
527 | RAW ACPI |.acpi
|
---|
528 | RAW ASL |.aml
|
---|
529 | }
|
---|
530 |
|
---|
531 | [Rule.Common.USER_DEFINED.CSM]
|
---|
532 | FILE FREEFORM = $(NAMED_GUID) {
|
---|
533 | RAW BIN |.bin
|
---|
534 | }
|
---|
535 |
|
---|
536 | [Rule.Common.SEC.RESET_VECTOR]
|
---|
537 | FILE RAW = $(NAMED_GUID) {
|
---|
538 | RAW BIN Align = 16 |.bin
|
---|
539 | }
|
---|
540 |
|
---|
541 | [Rule.Common.SMM_CORE]
|
---|
542 | FILE SMM_CORE = $(NAMED_GUID) {
|
---|
543 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
544 | UI STRING="$(MODULE_NAME)" Optional
|
---|
545 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
546 | }
|
---|
547 |
|
---|
548 | [Rule.Common.DXE_SMM_DRIVER]
|
---|
549 | FILE SMM = $(NAMED_GUID) {
|
---|
550 | SMM_DEPEX SMM_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
551 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
552 | UI STRING="$(MODULE_NAME)" Optional
|
---|
553 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
554 | }
|
---|