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 = 0xF80000
|
---|
66 | ErasePolarity = 1
|
---|
67 | BlockSize = 0x10000
|
---|
68 | NumBlocks = 0xF8
|
---|
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|0xE80000
|
---|
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/Include/Fdf/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 | INF OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
|
---|
223 | INF OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
|
---|
224 | INF OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
|
---|
225 | INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
|
---|
226 | INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
|
---|
227 | INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
|
---|
228 | INF MdeModulePkg/Universal/Metronome/Metronome.inf
|
---|
229 | INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
|
---|
230 |
|
---|
231 | INF OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
|
---|
232 | INF OvmfPkg/Virtio10Dxe/Virtio10.inf
|
---|
233 | !ifndef $(VBOX)
|
---|
234 | INF OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
|
---|
235 | !endif
|
---|
236 | INF OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
|
---|
237 | !ifndef $(VBOX)
|
---|
238 | INF OvmfPkg/VirtioRngDxe/VirtioRng.inf
|
---|
239 | INF OvmfPkg/VirtioSerialDxe/VirtioSerial.inf
|
---|
240 | !endif
|
---|
241 | !if $(PVSCSI_ENABLE) == TRUE
|
---|
242 | INF OvmfPkg/PvScsiDxe/PvScsiDxe.inf
|
---|
243 | !endif
|
---|
244 | !if $(MPT_SCSI_ENABLE) == TRUE
|
---|
245 | INF OvmfPkg/MptScsiDxe/MptScsiDxe.inf
|
---|
246 | !endif
|
---|
247 | !if $(LSI_SCSI_ENABLE) == TRUE
|
---|
248 | INF OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
|
---|
249 | !endif
|
---|
250 |
|
---|
251 | !if $(SECURE_BOOT_ENABLE) == TRUE
|
---|
252 | INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
|
---|
253 | !endif
|
---|
254 |
|
---|
255 | INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
|
---|
256 | INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
|
---|
257 | INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
|
---|
258 | INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
|
---|
259 | INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
|
---|
260 | INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
|
---|
261 | INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
|
---|
262 | INF MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
|
---|
263 | INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
|
---|
264 | INF MdeModulePkg/Application/UiApp/UiApp.inf
|
---|
265 | INF OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf
|
---|
266 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
|
---|
267 | INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
|
---|
268 | INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
|
---|
269 | INF MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
|
---|
270 | INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
|
---|
271 | INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
|
---|
272 | INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
|
---|
273 | INF MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
|
---|
274 | INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
|
---|
275 | INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
|
---|
276 | INF MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
|
---|
277 | INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
|
---|
278 | INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
|
---|
279 | INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
|
---|
280 |
|
---|
281 | INF OvmfPkg/SioBusDxe/SioBusDxe.inf
|
---|
282 | !if $(SOURCE_DEBUG_ENABLE) == FALSE
|
---|
283 | INF MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
|
---|
284 | !endif
|
---|
285 | INF MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
|
---|
286 |
|
---|
287 | INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
|
---|
288 | INF OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
|
---|
289 |
|
---|
290 | !ifdef $(VBOX)
|
---|
291 | INF VBoxPkg/VBoxVgaMiniPortDxe/VBoxVgaMiniPortDxe.inf
|
---|
292 | INF VBoxPkg/VBoxVgaDxe/VBoxVgaDxe.inf
|
---|
293 | INF VBoxPkg/VBoxFsDxe/VBoxHfs.inf
|
---|
294 | INF VBoxPkg/VBoxSysTables/VBoxSysTables.inf
|
---|
295 | INF VBoxPkg/VBoxAppleSim/VBoxAppleSim.inf
|
---|
296 | # INF VBoxPkg/VBoxApfsJmpStartDxe/VBoxApfsJmpStartDxe.inf -- 64-bit only!
|
---|
297 | INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
|
---|
298 | !endif
|
---|
299 |
|
---|
300 | !ifndef $(VBOX)
|
---|
301 | INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
|
---|
302 | INF OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.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 | !ifndef $(VBOX)
|
---|
316 | INF MdeModulePkg/Logo/LogoDxe.inf
|
---|
317 | !else
|
---|
318 | INF VBoxPkg/Logo/LogoDxe.inf
|
---|
319 | !endif
|
---|
320 |
|
---|
321 | #
|
---|
322 | # Hash2 Protocol producer
|
---|
323 | #
|
---|
324 | INF SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf
|
---|
325 |
|
---|
326 | #
|
---|
327 | # Network modules
|
---|
328 | #
|
---|
329 | !include NetworkPkg/Network.fdf.inc
|
---|
330 | INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
---|
331 | !ifdef $(VBOX)
|
---|
332 | INF VBoxPkg/E1kNetDxe/E1kNet.inf
|
---|
333 | !endif
|
---|
334 |
|
---|
335 | #
|
---|
336 | # Usb Support
|
---|
337 | #
|
---|
338 | !ifndef $(VBOX)
|
---|
339 | INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
|
---|
340 | !endif
|
---|
341 | INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
|
---|
342 | INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
|
---|
343 | INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
|
---|
344 | INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
|
---|
345 | INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
|
---|
346 |
|
---|
347 | !ifndef $(VBOX)
|
---|
348 | INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
|
---|
349 | INF OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
|
---|
350 | INF OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
|
---|
351 | !endif
|
---|
352 | INF OvmfPkg/PlatformDxe/Platform.inf
|
---|
353 | INF OvmfPkg/IoMmuDxe/IoMmuDxe.inf
|
---|
354 | !ifndef $(VBOX)
|
---|
355 | INF OvmfPkg/VirtHstiDxe/VirtHstiDxe.inf
|
---|
356 | !endif
|
---|
357 |
|
---|
358 | !if $(SMM_REQUIRE) == TRUE
|
---|
359 | INF OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
|
---|
360 | INF OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
|
---|
361 | INF OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
|
---|
362 | INF MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
|
---|
363 | INF MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
|
---|
364 | INF OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
|
---|
365 | INF UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
|
---|
366 | INF MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf
|
---|
367 | INF UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
|
---|
368 |
|
---|
369 | #
|
---|
370 | # Variable driver stack (SMM)
|
---|
371 | #
|
---|
372 | INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
|
---|
373 | INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
|
---|
374 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf
|
---|
375 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
|
---|
376 |
|
---|
377 | !else
|
---|
378 |
|
---|
379 | #
|
---|
380 | # Variable driver stack (non-SMM)
|
---|
381 | #
|
---|
382 | INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
|
---|
383 | INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
|
---|
384 | INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
|
---|
385 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
|
---|
386 | !endif
|
---|
387 |
|
---|
388 | #
|
---|
389 | # TPM support
|
---|
390 | #
|
---|
391 | !include OvmfPkg/Include/Fdf/OvmfTpmDxe.fdf.inc
|
---|
392 |
|
---|
393 | !include OvmfPkg/Include/Fdf/ShellDxe.fdf.inc
|
---|
394 |
|
---|
395 | !if $(LOAD_X64_ON_IA32_ENABLE) == TRUE
|
---|
396 | INF OvmfPkg/CompatImageLoaderDxe/CompatImageLoaderDxe.inf
|
---|
397 | !endif
|
---|
398 |
|
---|
399 | ################################################################################
|
---|
400 |
|
---|
401 | [FV.FVMAIN_COMPACT]
|
---|
402 | FvNameGuid = 48DB5E17-707C-472D-91CD-1613E7EF51B0
|
---|
403 | FvAlignment = 16
|
---|
404 | ERASE_POLARITY = 1
|
---|
405 | MEMORY_MAPPED = TRUE
|
---|
406 | STICKY_WRITE = TRUE
|
---|
407 | LOCK_CAP = TRUE
|
---|
408 | LOCK_STATUS = TRUE
|
---|
409 | WRITE_DISABLED_CAP = TRUE
|
---|
410 | WRITE_ENABLED_CAP = TRUE
|
---|
411 | WRITE_STATUS = TRUE
|
---|
412 | WRITE_LOCK_CAP = TRUE
|
---|
413 | WRITE_LOCK_STATUS = TRUE
|
---|
414 | READ_DISABLED_CAP = TRUE
|
---|
415 | READ_ENABLED_CAP = TRUE
|
---|
416 | READ_STATUS = TRUE
|
---|
417 | READ_LOCK_CAP = TRUE
|
---|
418 | READ_LOCK_STATUS = TRUE
|
---|
419 |
|
---|
420 | FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
|
---|
421 | SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
|
---|
422 | #
|
---|
423 | # These firmware volumes will have files placed in them uncompressed,
|
---|
424 | # and then both firmware volumes will be compressed in a single
|
---|
425 | # compression operation in order to achieve better overall compression.
|
---|
426 | #
|
---|
427 | SECTION FV_IMAGE = PEIFV
|
---|
428 | SECTION FV_IMAGE = DXEFV
|
---|
429 | }
|
---|
430 | }
|
---|
431 |
|
---|
432 | !include OvmfPkg/Include/Fdf/FvmainCompactScratchEnd.fdf.inc
|
---|
433 |
|
---|
434 | ################################################################################
|
---|
435 |
|
---|
436 | [Rule.Common.SEC]
|
---|
437 | FILE SEC = $(NAMED_GUID) {
|
---|
438 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
439 | UI STRING ="$(MODULE_NAME)" Optional
|
---|
440 | VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
441 | }
|
---|
442 |
|
---|
443 | [Rule.Common.PEI_CORE]
|
---|
444 | FILE PEI_CORE = $(NAMED_GUID) {
|
---|
445 | PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
446 | UI STRING ="$(MODULE_NAME)" Optional
|
---|
447 | VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
448 | }
|
---|
449 |
|
---|
450 | [Rule.Common.PEIM]
|
---|
451 | FILE PEIM = $(NAMED_GUID) {
|
---|
452 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
453 | PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
454 | UI STRING="$(MODULE_NAME)" Optional
|
---|
455 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
456 | }
|
---|
457 |
|
---|
458 | [Rule.Common.DXE_CORE]
|
---|
459 | FILE DXE_CORE = $(NAMED_GUID) {
|
---|
460 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
461 | UI STRING="$(MODULE_NAME)" Optional
|
---|
462 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
463 | }
|
---|
464 |
|
---|
465 | [Rule.Common.DXE_DRIVER]
|
---|
466 | FILE DRIVER = $(NAMED_GUID) {
|
---|
467 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
468 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
469 | UI STRING="$(MODULE_NAME)" Optional
|
---|
470 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
471 | RAW ACPI Optional |.acpi
|
---|
472 | RAW ASL Optional |.aml
|
---|
473 | }
|
---|
474 |
|
---|
475 | [Rule.Common.DXE_RUNTIME_DRIVER]
|
---|
476 | FILE DRIVER = $(NAMED_GUID) {
|
---|
477 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
478 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
479 | UI STRING="$(MODULE_NAME)" Optional
|
---|
480 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
481 | }
|
---|
482 |
|
---|
483 | [Rule.Common.UEFI_DRIVER]
|
---|
484 | FILE DRIVER = $(NAMED_GUID) {
|
---|
485 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
486 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
487 | UI STRING="$(MODULE_NAME)" Optional
|
---|
488 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
489 | }
|
---|
490 |
|
---|
491 | [Rule.Common.UEFI_DRIVER.BINARY]
|
---|
492 | FILE DRIVER = $(NAMED_GUID) {
|
---|
493 | DXE_DEPEX DXE_DEPEX Optional |.depex
|
---|
494 | PE32 PE32 |.efi
|
---|
495 | UI STRING="$(MODULE_NAME)" Optional
|
---|
496 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
497 | }
|
---|
498 |
|
---|
499 | [Rule.Common.UEFI_APPLICATION]
|
---|
500 | FILE APPLICATION = $(NAMED_GUID) {
|
---|
501 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
502 | UI STRING="$(MODULE_NAME)" Optional
|
---|
503 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
504 | }
|
---|
505 |
|
---|
506 | [Rule.Common.UEFI_APPLICATION.BINARY]
|
---|
507 | FILE APPLICATION = $(NAMED_GUID) {
|
---|
508 | PE32 PE32 |.efi
|
---|
509 | UI STRING="$(MODULE_NAME)" Optional
|
---|
510 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
511 | }
|
---|
512 |
|
---|
513 | [Rule.Common.SEC.RESET_VECTOR]
|
---|
514 | FILE RAW = $(NAMED_GUID) {
|
---|
515 | RAW BIN Align = 16 |.bin
|
---|
516 | }
|
---|
517 |
|
---|
518 | [Rule.Common.SMM_CORE]
|
---|
519 | FILE SMM_CORE = $(NAMED_GUID) {
|
---|
520 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
521 | UI STRING="$(MODULE_NAME)" Optional
|
---|
522 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
523 | }
|
---|
524 |
|
---|
525 | [Rule.Common.DXE_SMM_DRIVER]
|
---|
526 | FILE SMM = $(NAMED_GUID) {
|
---|
527 | SMM_DEPEX SMM_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
528 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
529 | UI STRING="$(MODULE_NAME)" Optional
|
---|
530 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
531 | }
|
---|