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