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 | !else
|
---|
275 | INF SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
|
---|
276 | !endif
|
---|
277 | !if $(PVSCSI_ENABLE) == TRUE
|
---|
278 | INF OvmfPkg/PvScsiDxe/PvScsiDxe.inf
|
---|
279 | !endif
|
---|
280 | !if $(MPT_SCSI_ENABLE) == TRUE
|
---|
281 | INF OvmfPkg/MptScsiDxe/MptScsiDxe.inf
|
---|
282 | !endif
|
---|
283 | !if $(LSI_SCSI_ENABLE) == TRUE
|
---|
284 | INF OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
|
---|
285 | !endif
|
---|
286 |
|
---|
287 | !if $(SECURE_BOOT_ENABLE) == TRUE
|
---|
288 | INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
|
---|
289 | !endif
|
---|
290 |
|
---|
291 | INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
|
---|
292 | INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
|
---|
293 | INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
|
---|
294 | INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
|
---|
295 | INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
|
---|
296 | INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
|
---|
297 | INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
|
---|
298 | INF MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
|
---|
299 | INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
|
---|
300 | INF MdeModulePkg/Application/UiApp/UiApp.inf
|
---|
301 | INF OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf
|
---|
302 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
|
---|
303 | INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
|
---|
304 | INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
|
---|
305 | INF MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
|
---|
306 | INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
|
---|
307 | INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
|
---|
308 | INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
|
---|
309 | INF MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
|
---|
310 | INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
|
---|
311 | INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
|
---|
312 | INF MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
|
---|
313 | INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
|
---|
314 | INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
|
---|
315 | INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
|
---|
316 |
|
---|
317 | INF OvmfPkg/SioBusDxe/SioBusDxe.inf
|
---|
318 | !if $(SOURCE_DEBUG_ENABLE) == FALSE
|
---|
319 | INF MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
|
---|
320 | !endif
|
---|
321 | INF MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
|
---|
322 |
|
---|
323 | INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
|
---|
324 | INF OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
|
---|
325 |
|
---|
326 | !ifdef $(VBOX)
|
---|
327 | INF VBoxPkg/VBoxVgaDxe/VBoxVgaDxe.inf
|
---|
328 | INF VBoxPkg/VBoxFsDxe/VBoxHfs.inf
|
---|
329 | INF VBoxPkg/VBoxSysTables/VBoxSysTables.inf
|
---|
330 | INF VBoxPkg/VBoxAppleSim/VBoxAppleSim.inf
|
---|
331 | INF VBoxPkg/VBoxApfsJmpStartDxe/VBoxApfsJmpStartDxe.inf
|
---|
332 | INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
|
---|
333 | !endif
|
---|
334 |
|
---|
335 | !ifndef $(VBOX)
|
---|
336 | INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
|
---|
337 | INF OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
|
---|
338 | INF MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
|
---|
339 | INF MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
|
---|
340 | INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
|
---|
341 | !else
|
---|
342 | INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
|
---|
343 | INF MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
|
---|
344 | !endif
|
---|
345 |
|
---|
346 | INF FatPkg/EnhancedFatDxe/Fat.inf
|
---|
347 | INF MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
|
---|
348 | INF OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
|
---|
349 |
|
---|
350 | !ifndef $(VBOX)
|
---|
351 | INF MdeModulePkg/Logo/LogoDxe.inf
|
---|
352 | !else
|
---|
353 | INF VBoxPkg/Logo/LogoDxe.inf
|
---|
354 | !endif
|
---|
355 |
|
---|
356 | INF OvmfPkg/TdxDxe/TdxDxe.inf
|
---|
357 |
|
---|
358 | #
|
---|
359 | # Hash2 Protocol producer
|
---|
360 | #
|
---|
361 | INF SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf
|
---|
362 |
|
---|
363 | #
|
---|
364 | # Network modules
|
---|
365 | #
|
---|
366 | !if $(E1000_ENABLE)
|
---|
367 | FILE DRIVER = 5D695E11-9B3F-4b83-B25F-4A8D5D69BE07 {
|
---|
368 | SECTION PE32 = Intel3.5/EFIX64/E3522X2.EFI
|
---|
369 | }
|
---|
370 | !endif
|
---|
371 | !include NetworkPkg/Network.fdf.inc
|
---|
372 | INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
---|
373 | !ifdef $(VBOX)
|
---|
374 | INF VBoxPkg/E1kNetDxe/E1kNet.inf
|
---|
375 | !endif
|
---|
376 |
|
---|
377 | #
|
---|
378 | # Usb Support
|
---|
379 | #
|
---|
380 | INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
|
---|
381 | INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
|
---|
382 | INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
|
---|
383 | INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
|
---|
384 | INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
|
---|
385 | INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
|
---|
386 |
|
---|
387 | !ifndef $(VBOX)
|
---|
388 | INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
|
---|
389 | INF OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
|
---|
390 | INF OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
|
---|
391 | !endif
|
---|
392 | INF OvmfPkg/PlatformDxe/Platform.inf
|
---|
393 | INF OvmfPkg/IoMmuDxe/IoMmuDxe.inf
|
---|
394 | !ifndef $(VBOX)
|
---|
395 | INF OvmfPkg/VirtHstiDxe/VirtHstiDxe.inf
|
---|
396 | !endif
|
---|
397 |
|
---|
398 | !if $(SMM_REQUIRE) == TRUE
|
---|
399 | INF OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
|
---|
400 | INF OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
|
---|
401 | INF OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
|
---|
402 | INF MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
|
---|
403 | INF MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
|
---|
404 | INF OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
|
---|
405 | INF UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
|
---|
406 | INF MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf
|
---|
407 | INF UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
|
---|
408 |
|
---|
409 | #
|
---|
410 | # Variable driver stack (SMM)
|
---|
411 | #
|
---|
412 | INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
|
---|
413 | INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
|
---|
414 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf
|
---|
415 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
|
---|
416 |
|
---|
417 | !else
|
---|
418 |
|
---|
419 | #
|
---|
420 | # Variable driver stack (non-SMM)
|
---|
421 | #
|
---|
422 | INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
|
---|
423 | INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
|
---|
424 | INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
|
---|
425 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
|
---|
426 | !endif
|
---|
427 |
|
---|
428 | #
|
---|
429 | # EFI_CC_MEASUREMENT_PROTOCOL
|
---|
430 | #
|
---|
431 | !if $(CC_MEASUREMENT_ENABLE) == TRUE
|
---|
432 | INF OvmfPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.inf
|
---|
433 | !endif
|
---|
434 |
|
---|
435 | #
|
---|
436 | # TPM support
|
---|
437 | #
|
---|
438 | !include OvmfPkg/Include/Fdf/OvmfTpmDxe.fdf.inc
|
---|
439 |
|
---|
440 | !include OvmfPkg/Include/Fdf/ShellDxe.fdf.inc
|
---|
441 |
|
---|
442 | ################################################################################
|
---|
443 |
|
---|
444 | [FV.FVMAIN_COMPACT]
|
---|
445 | FvNameGuid = 48DB5E17-707C-472D-91CD-1613E7EF51B0
|
---|
446 | FvAlignment = 16
|
---|
447 | ERASE_POLARITY = 1
|
---|
448 | MEMORY_MAPPED = TRUE
|
---|
449 | STICKY_WRITE = TRUE
|
---|
450 | LOCK_CAP = TRUE
|
---|
451 | LOCK_STATUS = TRUE
|
---|
452 | WRITE_DISABLED_CAP = TRUE
|
---|
453 | WRITE_ENABLED_CAP = TRUE
|
---|
454 | WRITE_STATUS = TRUE
|
---|
455 | WRITE_LOCK_CAP = TRUE
|
---|
456 | WRITE_LOCK_STATUS = TRUE
|
---|
457 | READ_DISABLED_CAP = TRUE
|
---|
458 | READ_ENABLED_CAP = TRUE
|
---|
459 | READ_STATUS = TRUE
|
---|
460 | READ_LOCK_CAP = TRUE
|
---|
461 | READ_LOCK_STATUS = TRUE
|
---|
462 |
|
---|
463 | FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
|
---|
464 | SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
|
---|
465 | #
|
---|
466 | # These firmware volumes will have files placed in them uncompressed,
|
---|
467 | # and then both firmware volumes will be compressed in a single
|
---|
468 | # compression operation in order to achieve better overall compression.
|
---|
469 | #
|
---|
470 | SECTION FV_IMAGE = PEIFV
|
---|
471 | SECTION FV_IMAGE = DXEFV
|
---|
472 | }
|
---|
473 | }
|
---|
474 |
|
---|
475 | !include OvmfPkg/Include/Fdf/FvmainCompactScratchEnd.fdf.inc
|
---|
476 |
|
---|
477 | ################################################################################
|
---|
478 |
|
---|
479 | [Rule.Common.SEC]
|
---|
480 | FILE SEC = $(NAMED_GUID) {
|
---|
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 | }
|
---|
485 |
|
---|
486 | [Rule.Common.PEI_CORE]
|
---|
487 | FILE PEI_CORE = $(NAMED_GUID) {
|
---|
488 | PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
489 | UI STRING ="$(MODULE_NAME)" Optional
|
---|
490 | VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
491 | }
|
---|
492 |
|
---|
493 | [Rule.Common.PEIM]
|
---|
494 | FILE PEIM = $(NAMED_GUID) {
|
---|
495 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
496 | PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
497 | UI STRING="$(MODULE_NAME)" Optional
|
---|
498 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
499 | }
|
---|
500 |
|
---|
501 | [Rule.Common.DXE_CORE]
|
---|
502 | FILE DXE_CORE = $(NAMED_GUID) {
|
---|
503 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
504 | UI STRING="$(MODULE_NAME)" Optional
|
---|
505 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
506 | }
|
---|
507 |
|
---|
508 | [Rule.Common.DXE_DRIVER]
|
---|
509 | FILE DRIVER = $(NAMED_GUID) {
|
---|
510 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
511 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
512 | UI STRING="$(MODULE_NAME)" Optional
|
---|
513 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
514 | RAW ACPI Optional |.acpi
|
---|
515 | RAW ASL Optional |.aml
|
---|
516 | }
|
---|
517 |
|
---|
518 | [Rule.Common.DXE_RUNTIME_DRIVER]
|
---|
519 | FILE DRIVER = $(NAMED_GUID) {
|
---|
520 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
521 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
522 | UI STRING="$(MODULE_NAME)" Optional
|
---|
523 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
524 | }
|
---|
525 |
|
---|
526 | [Rule.Common.UEFI_DRIVER]
|
---|
527 | FILE DRIVER = $(NAMED_GUID) {
|
---|
528 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
529 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
530 | UI STRING="$(MODULE_NAME)" Optional
|
---|
531 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
532 | }
|
---|
533 |
|
---|
534 | [Rule.Common.UEFI_DRIVER.BINARY]
|
---|
535 | FILE DRIVER = $(NAMED_GUID) {
|
---|
536 | DXE_DEPEX DXE_DEPEX Optional |.depex
|
---|
537 | PE32 PE32 |.efi
|
---|
538 | UI STRING="$(MODULE_NAME)" Optional
|
---|
539 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
540 | }
|
---|
541 |
|
---|
542 | [Rule.Common.UEFI_APPLICATION]
|
---|
543 | FILE APPLICATION = $(NAMED_GUID) {
|
---|
544 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
545 | UI STRING="$(MODULE_NAME)" Optional
|
---|
546 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
547 | }
|
---|
548 |
|
---|
549 | [Rule.Common.UEFI_APPLICATION.BINARY]
|
---|
550 | FILE APPLICATION = $(NAMED_GUID) {
|
---|
551 | PE32 PE32 |.efi
|
---|
552 | UI STRING="$(MODULE_NAME)" Optional
|
---|
553 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
554 | }
|
---|
555 |
|
---|
556 | [Rule.Common.SEC.RESET_VECTOR]
|
---|
557 | FILE RAW = $(NAMED_GUID) {
|
---|
558 | RAW BIN Align = 16 |.bin
|
---|
559 | }
|
---|
560 |
|
---|
561 | [Rule.Common.SMM_CORE]
|
---|
562 | FILE SMM_CORE = $(NAMED_GUID) {
|
---|
563 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
564 | UI STRING="$(MODULE_NAME)" Optional
|
---|
565 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
566 | }
|
---|
567 |
|
---|
568 | [Rule.Common.DXE_SMM_DRIVER]
|
---|
569 | FILE SMM = $(NAMED_GUID) {
|
---|
570 | SMM_DEPEX SMM_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
571 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
572 | UI STRING="$(MODULE_NAME)" Optional
|
---|
573 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
574 | }
|
---|