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