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