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 | # Copyright (c) 2019, Citrix Systems, Inc.
|
---|
7 | #
|
---|
8 | # SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
9 | #
|
---|
10 | ##
|
---|
11 |
|
---|
12 | ################################################################################
|
---|
13 |
|
---|
14 | [Defines]
|
---|
15 | !include OvmfPkg/Include/Fdf/OvmfPkgDefines.fdf.inc
|
---|
16 |
|
---|
17 | #
|
---|
18 | # This will allow the flash device image to be recognize as an ELF, with first
|
---|
19 | # an ELF headers, then the firmware code.
|
---|
20 | #
|
---|
21 | [FD.OVMF]
|
---|
22 | BaseAddress = $(FW_BASE_ADDRESS)
|
---|
23 | Size = $(FW_SIZE)
|
---|
24 | ErasePolarity = 1
|
---|
25 | BlockSize = $(BLOCK_SIZE)
|
---|
26 | NumBlocks = $(FW_BLOCKS)
|
---|
27 |
|
---|
28 | !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
|
---|
29 | 0x00000000|0x0000e000
|
---|
30 | !endif
|
---|
31 | !if $(FD_SIZE_IN_KB) == 4096
|
---|
32 | 0x00000000|0x00040000
|
---|
33 | !endif
|
---|
34 |
|
---|
35 | !include OvmfPkg/Include/Fdf/XenElfHeader.fdf.inc
|
---|
36 |
|
---|
37 | !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
|
---|
38 | 0x0000e000|0x00001000
|
---|
39 | !endif
|
---|
40 | !if $(FD_SIZE_IN_KB) == 4096
|
---|
41 | 0x00040000|0x00001000
|
---|
42 | !endif
|
---|
43 | #NV_EVENT_LOG
|
---|
44 |
|
---|
45 | !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
|
---|
46 | 0x0000f000|0x00001000
|
---|
47 | !endif
|
---|
48 | !if $(FD_SIZE_IN_KB) == 4096
|
---|
49 | 0x00041000|0x00001000
|
---|
50 | !endif
|
---|
51 | #NV_FTW_WORKING
|
---|
52 | DATA = {
|
---|
53 | # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature = gEdkiiWorkingBlockSignatureGuid =
|
---|
54 | # { 0x9e58292b, 0x7c68, 0x497d, { 0xa0, 0xce, 0x65, 0x0, 0xfd, 0x9f, 0x1b, 0x95 }}
|
---|
55 | 0x2b, 0x29, 0x58, 0x9e, 0x68, 0x7c, 0x7d, 0x49,
|
---|
56 | 0xa0, 0xce, 0x65, 0x0, 0xfd, 0x9f, 0x1b, 0x95,
|
---|
57 | # Crc:UINT32 #WorkingBlockValid:1, WorkingBlockInvalid:1, Reserved
|
---|
58 | 0x2c, 0xaf, 0x2c, 0x64, 0xFE, 0xFF, 0xFF, 0xFF,
|
---|
59 | # WriteQueueSize: UINT64
|
---|
60 | 0xE0, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
---|
61 | }
|
---|
62 |
|
---|
63 | !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
|
---|
64 | 0x00010000|0x00010000
|
---|
65 | !endif
|
---|
66 | !if $(FD_SIZE_IN_KB) == 4096
|
---|
67 | 0x00042000|0x00042000
|
---|
68 | !endif
|
---|
69 | #NV_FTW_SPARE
|
---|
70 |
|
---|
71 |
|
---|
72 | $(VARS_SIZE)|$(FVMAIN_SIZE)
|
---|
73 | FV = FVMAIN_COMPACT
|
---|
74 |
|
---|
75 | $(SECFV_OFFSET)|$(SECFV_SIZE)
|
---|
76 | FV = SECFV
|
---|
77 |
|
---|
78 | #
|
---|
79 | # Build the variable store and the firmware code as separate flash device
|
---|
80 | # images.
|
---|
81 | #
|
---|
82 | [FD.OVMF_VARS]
|
---|
83 | BaseAddress = $(FW_BASE_ADDRESS)
|
---|
84 | Size = $(VARS_SIZE)
|
---|
85 | ErasePolarity = 1
|
---|
86 | BlockSize = $(BLOCK_SIZE)
|
---|
87 | NumBlocks = $(VARS_BLOCKS)
|
---|
88 |
|
---|
89 | !include OvmfPkg/Include/Fdf/VarStore.fdf.inc
|
---|
90 |
|
---|
91 | [FD.OVMF_CODE]
|
---|
92 | BaseAddress = $(CODE_BASE_ADDRESS)
|
---|
93 | Size = $(CODE_SIZE)
|
---|
94 | ErasePolarity = 1
|
---|
95 | BlockSize = $(BLOCK_SIZE)
|
---|
96 | NumBlocks = $(CODE_BLOCKS)
|
---|
97 |
|
---|
98 | 0x00000000|$(FVMAIN_SIZE)
|
---|
99 | FV = FVMAIN_COMPACT
|
---|
100 |
|
---|
101 | $(FVMAIN_SIZE)|$(SECFV_SIZE)
|
---|
102 | FV = SECFV
|
---|
103 |
|
---|
104 | ################################################################################
|
---|
105 |
|
---|
106 | [FD.MEMFD]
|
---|
107 | BaseAddress = $(MEMFD_BASE_ADDRESS)
|
---|
108 | Size = 0xB00000
|
---|
109 | ErasePolarity = 1
|
---|
110 | BlockSize = 0x10000
|
---|
111 | NumBlocks = 0xB0
|
---|
112 |
|
---|
113 | 0x000000|0x006000
|
---|
114 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesSize
|
---|
115 |
|
---|
116 | 0x006000|0x001000
|
---|
117 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageSize
|
---|
118 |
|
---|
119 | 0x007000|0x001000
|
---|
120 | gEfiMdePkgTokenSpaceGuid.PcdGuidedExtractHandlerTableAddress|gUefiOvmfPkgTokenSpaceGuid.PcdGuidedExtractHandlerTableSize
|
---|
121 |
|
---|
122 | 0x008000|0x001000
|
---|
123 | # Used by XenResetVector to communicate with XenPlatformPei
|
---|
124 | gUefiOvmfPkgTokenSpaceGuid.PcdXenPvhStartOfDayStructPtr|gUefiOvmfPkgTokenSpaceGuid.PcdXenPvhStartOfDayStructPtrSize
|
---|
125 |
|
---|
126 | 0x010000|0x010000
|
---|
127 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize
|
---|
128 |
|
---|
129 | 0x020000|0x0E0000
|
---|
130 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvSize
|
---|
131 | FV = PEIFV
|
---|
132 |
|
---|
133 | 0x100000|0xA00000
|
---|
134 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvSize
|
---|
135 | FV = DXEFV
|
---|
136 |
|
---|
137 | ################################################################################
|
---|
138 |
|
---|
139 | [FV.SECFV]
|
---|
140 | FvNameGuid = 763BED0D-DE9F-48F5-81F1-3E90E1B1A015
|
---|
141 | BlockSize = 0x1000
|
---|
142 | FvAlignment = 16
|
---|
143 | ERASE_POLARITY = 1
|
---|
144 | MEMORY_MAPPED = TRUE
|
---|
145 | STICKY_WRITE = TRUE
|
---|
146 | LOCK_CAP = TRUE
|
---|
147 | LOCK_STATUS = TRUE
|
---|
148 | WRITE_DISABLED_CAP = TRUE
|
---|
149 | WRITE_ENABLED_CAP = TRUE
|
---|
150 | WRITE_STATUS = TRUE
|
---|
151 | WRITE_LOCK_CAP = TRUE
|
---|
152 | WRITE_LOCK_STATUS = TRUE
|
---|
153 | READ_DISABLED_CAP = TRUE
|
---|
154 | READ_ENABLED_CAP = TRUE
|
---|
155 | READ_STATUS = TRUE
|
---|
156 | READ_LOCK_CAP = TRUE
|
---|
157 | READ_LOCK_STATUS = TRUE
|
---|
158 |
|
---|
159 | #
|
---|
160 | # SEC Phase modules
|
---|
161 | #
|
---|
162 | # The code in this FV handles the initial firmware startup, and
|
---|
163 | # decompresses the PEI and DXE FVs which handles the rest of the boot sequence.
|
---|
164 | #
|
---|
165 | INF OvmfPkg/Sec/SecMain.inf
|
---|
166 |
|
---|
167 | INF RuleOverride=RESET_VECTOR OvmfPkg/XenResetVector/XenResetVector.inf
|
---|
168 |
|
---|
169 | ################################################################################
|
---|
170 | [FV.PEIFV]
|
---|
171 | FvNameGuid = 6938079B-B503-4E3D-9D24-B28337A25806
|
---|
172 | BlockSize = 0x10000
|
---|
173 | FvAlignment = 16
|
---|
174 | ERASE_POLARITY = 1
|
---|
175 | MEMORY_MAPPED = TRUE
|
---|
176 | STICKY_WRITE = TRUE
|
---|
177 | LOCK_CAP = TRUE
|
---|
178 | LOCK_STATUS = TRUE
|
---|
179 | WRITE_DISABLED_CAP = TRUE
|
---|
180 | WRITE_ENABLED_CAP = TRUE
|
---|
181 | WRITE_STATUS = TRUE
|
---|
182 | WRITE_LOCK_CAP = TRUE
|
---|
183 | WRITE_LOCK_STATUS = TRUE
|
---|
184 | READ_DISABLED_CAP = TRUE
|
---|
185 | READ_ENABLED_CAP = TRUE
|
---|
186 | READ_STATUS = TRUE
|
---|
187 | READ_LOCK_CAP = TRUE
|
---|
188 | READ_LOCK_STATUS = TRUE
|
---|
189 |
|
---|
190 | APRIORI PEI {
|
---|
191 | INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
|
---|
192 | }
|
---|
193 |
|
---|
194 | #
|
---|
195 | # PEI Phase modules
|
---|
196 | #
|
---|
197 | INF MdeModulePkg/Core/Pei/PeiMain.inf
|
---|
198 | INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
|
---|
199 | INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
|
---|
200 | INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
|
---|
201 | INF OvmfPkg/XenPlatformPei/XenPlatformPei.inf
|
---|
202 | INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
|
---|
203 | INF UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
|
---|
204 | INF UefiCpuPkg/CpuMpPei/CpuMpPei.inf
|
---|
205 |
|
---|
206 | ################################################################################
|
---|
207 |
|
---|
208 | [FV.DXEFV]
|
---|
209 | FvForceRebase = FALSE
|
---|
210 | FvNameGuid = 7CB8BDC9-F8EB-4F34-AAEA-3EE4AF6516A1
|
---|
211 | BlockSize = 0x10000
|
---|
212 | FvAlignment = 16
|
---|
213 | ERASE_POLARITY = 1
|
---|
214 | MEMORY_MAPPED = TRUE
|
---|
215 | STICKY_WRITE = TRUE
|
---|
216 | LOCK_CAP = TRUE
|
---|
217 | LOCK_STATUS = TRUE
|
---|
218 | WRITE_DISABLED_CAP = TRUE
|
---|
219 | WRITE_ENABLED_CAP = TRUE
|
---|
220 | WRITE_STATUS = TRUE
|
---|
221 | WRITE_LOCK_CAP = TRUE
|
---|
222 | WRITE_LOCK_STATUS = TRUE
|
---|
223 | READ_DISABLED_CAP = TRUE
|
---|
224 | READ_ENABLED_CAP = TRUE
|
---|
225 | READ_STATUS = TRUE
|
---|
226 | READ_LOCK_CAP = TRUE
|
---|
227 | READ_LOCK_STATUS = TRUE
|
---|
228 |
|
---|
229 | APRIORI DXE {
|
---|
230 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
|
---|
231 | INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
|
---|
232 | INF OvmfPkg/AmdSevDxe/AmdSevDxe.inf
|
---|
233 | INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
|
---|
234 | }
|
---|
235 |
|
---|
236 | #
|
---|
237 | # DXE Phase modules
|
---|
238 | #
|
---|
239 | INF MdeModulePkg/Core/Dxe/DxeMain.inf
|
---|
240 |
|
---|
241 | INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
|
---|
242 | INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
|
---|
243 | INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
|
---|
244 |
|
---|
245 | INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
|
---|
246 | INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
|
---|
247 | INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
|
---|
248 | INF OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
|
---|
249 | INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
|
---|
250 | INF UefiCpuPkg/CpuDxe/CpuDxe.inf
|
---|
251 | INF OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
|
---|
252 | INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
|
---|
253 | INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
|
---|
254 | INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
|
---|
255 | INF MdeModulePkg/Universal/Metronome/Metronome.inf
|
---|
256 | INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
|
---|
257 |
|
---|
258 | INF OvmfPkg/XenIoPvhDxe/XenIoPvhDxe.inf
|
---|
259 | INF OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
|
---|
260 | INF OvmfPkg/XenBusDxe/XenBusDxe.inf
|
---|
261 | INF OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
|
---|
262 | INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
|
---|
263 |
|
---|
264 | INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
|
---|
265 | INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
|
---|
266 | INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
|
---|
267 | INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
|
---|
268 | INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
|
---|
269 | INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
|
---|
270 | INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
|
---|
271 | INF MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
|
---|
272 | INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
|
---|
273 | INF MdeModulePkg/Application/UiApp/UiApp.inf
|
---|
274 | INF OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf
|
---|
275 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
|
---|
276 | INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
|
---|
277 | INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
|
---|
278 | INF MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
|
---|
279 | INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
|
---|
280 | INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
|
---|
281 | INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
|
---|
282 | INF MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
|
---|
283 | INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
|
---|
284 | INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
|
---|
285 | INF MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
|
---|
286 | INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
|
---|
287 | INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
|
---|
288 | INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
|
---|
289 |
|
---|
290 | INF OvmfPkg/SioBusDxe/SioBusDxe.inf
|
---|
291 | !if $(SOURCE_DEBUG_ENABLE) == FALSE
|
---|
292 | INF MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
|
---|
293 | !endif
|
---|
294 | INF MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
|
---|
295 |
|
---|
296 | INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
|
---|
297 | INF OvmfPkg/SmbiosPlatformDxe/XenSmbiosPlatformDxe.inf
|
---|
298 |
|
---|
299 | INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
|
---|
300 | INF OvmfPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf
|
---|
301 | INF MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
|
---|
302 | INF MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
|
---|
303 | INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
|
---|
304 |
|
---|
305 | INF FatPkg/EnhancedFatDxe/Fat.inf
|
---|
306 | INF MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
|
---|
307 |
|
---|
308 | !if $(TOOL_CHAIN_TAG) != "XCODE5"
|
---|
309 | INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
|
---|
310 | INF ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf
|
---|
311 | INF OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf
|
---|
312 | !endif
|
---|
313 | INF ShellPkg/Application/Shell/Shell.inf
|
---|
314 |
|
---|
315 | INF MdeModulePkg/Logo/LogoDxe.inf
|
---|
316 |
|
---|
317 | #
|
---|
318 | # Hash2 Protocol producer
|
---|
319 | #
|
---|
320 | INF SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf
|
---|
321 |
|
---|
322 | #
|
---|
323 | # Network modules
|
---|
324 | #
|
---|
325 | !if $(E1000_ENABLE)
|
---|
326 | FILE DRIVER = 5D695E11-9B3F-4b83-B25F-4A8D5D69BE07 {
|
---|
327 | SECTION PE32 = Intel3.5/EFIX64/E3522X2.EFI
|
---|
328 | }
|
---|
329 | !endif
|
---|
330 | !include NetworkPkg/Network.fdf.inc
|
---|
331 |
|
---|
332 | #
|
---|
333 | # Usb Support
|
---|
334 | #
|
---|
335 | INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
|
---|
336 | INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
|
---|
337 | INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
|
---|
338 | INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
|
---|
339 | INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
|
---|
340 | INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
|
---|
341 |
|
---|
342 | INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
|
---|
343 | INF OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
|
---|
344 | INF OvmfPkg/PlatformDxe/Platform.inf
|
---|
345 | INF OvmfPkg/AmdSevDxe/AmdSevDxe.inf
|
---|
346 | INF OvmfPkg/IoMmuDxe/IoMmuDxe.inf
|
---|
347 |
|
---|
348 | #
|
---|
349 | # Variable driver stack (non-SMM)
|
---|
350 | #
|
---|
351 | INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
|
---|
352 | INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
|
---|
353 | INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
|
---|
354 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
|
---|
355 |
|
---|
356 | ################################################################################
|
---|
357 |
|
---|
358 | [FV.FVMAIN_COMPACT]
|
---|
359 | FvNameGuid = 48DB5E17-707C-472D-91CD-1613E7EF51B0
|
---|
360 | FvAlignment = 16
|
---|
361 | ERASE_POLARITY = 1
|
---|
362 | MEMORY_MAPPED = TRUE
|
---|
363 | STICKY_WRITE = TRUE
|
---|
364 | LOCK_CAP = TRUE
|
---|
365 | LOCK_STATUS = TRUE
|
---|
366 | WRITE_DISABLED_CAP = TRUE
|
---|
367 | WRITE_ENABLED_CAP = TRUE
|
---|
368 | WRITE_STATUS = TRUE
|
---|
369 | WRITE_LOCK_CAP = TRUE
|
---|
370 | WRITE_LOCK_STATUS = TRUE
|
---|
371 | READ_DISABLED_CAP = TRUE
|
---|
372 | READ_ENABLED_CAP = TRUE
|
---|
373 | READ_STATUS = TRUE
|
---|
374 | READ_LOCK_CAP = TRUE
|
---|
375 | READ_LOCK_STATUS = TRUE
|
---|
376 |
|
---|
377 | FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
|
---|
378 | SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
|
---|
379 | #
|
---|
380 | # These firmware volumes will have files placed in them uncompressed,
|
---|
381 | # and then both firmware volumes will be compressed in a single
|
---|
382 | # compression operation in order to achieve better overall compression.
|
---|
383 | #
|
---|
384 | SECTION FV_IMAGE = PEIFV
|
---|
385 | SECTION FV_IMAGE = DXEFV
|
---|
386 | }
|
---|
387 | }
|
---|
388 |
|
---|
389 | !include OvmfPkg/Include/Fdf/FvmainCompactScratchEnd.fdf.inc
|
---|
390 |
|
---|
391 | ################################################################################
|
---|
392 |
|
---|
393 | [Rule.Common.SEC]
|
---|
394 | FILE SEC = $(NAMED_GUID) {
|
---|
395 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
396 | UI STRING ="$(MODULE_NAME)" Optional
|
---|
397 | VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
398 | }
|
---|
399 |
|
---|
400 | [Rule.Common.PEI_CORE]
|
---|
401 | FILE PEI_CORE = $(NAMED_GUID) {
|
---|
402 | PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
403 | UI STRING ="$(MODULE_NAME)" Optional
|
---|
404 | VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
405 | }
|
---|
406 |
|
---|
407 | [Rule.Common.PEIM]
|
---|
408 | FILE PEIM = $(NAMED_GUID) {
|
---|
409 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
410 | PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
411 | UI STRING="$(MODULE_NAME)" Optional
|
---|
412 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
413 | }
|
---|
414 |
|
---|
415 | [Rule.Common.DXE_CORE]
|
---|
416 | FILE DXE_CORE = $(NAMED_GUID) {
|
---|
417 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
418 | UI STRING="$(MODULE_NAME)" Optional
|
---|
419 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
420 | }
|
---|
421 |
|
---|
422 | [Rule.Common.DXE_DRIVER]
|
---|
423 | FILE DRIVER = $(NAMED_GUID) {
|
---|
424 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
425 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
426 | UI STRING="$(MODULE_NAME)" Optional
|
---|
427 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
428 | RAW ACPI Optional |.acpi
|
---|
429 | RAW ASL Optional |.aml
|
---|
430 | }
|
---|
431 |
|
---|
432 | [Rule.Common.DXE_RUNTIME_DRIVER]
|
---|
433 | FILE DRIVER = $(NAMED_GUID) {
|
---|
434 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
435 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
436 | UI STRING="$(MODULE_NAME)" Optional
|
---|
437 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
438 | }
|
---|
439 |
|
---|
440 | [Rule.Common.UEFI_DRIVER]
|
---|
441 | FILE DRIVER = $(NAMED_GUID) {
|
---|
442 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
443 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
444 | UI STRING="$(MODULE_NAME)" Optional
|
---|
445 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
446 | }
|
---|
447 |
|
---|
448 | [Rule.Common.UEFI_DRIVER.BINARY]
|
---|
449 | FILE DRIVER = $(NAMED_GUID) {
|
---|
450 | DXE_DEPEX DXE_DEPEX Optional |.depex
|
---|
451 | PE32 PE32 |.efi
|
---|
452 | UI STRING="$(MODULE_NAME)" Optional
|
---|
453 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
454 | }
|
---|
455 |
|
---|
456 | [Rule.Common.UEFI_APPLICATION]
|
---|
457 | FILE APPLICATION = $(NAMED_GUID) {
|
---|
458 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
459 | UI STRING="$(MODULE_NAME)" Optional
|
---|
460 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
461 | }
|
---|
462 |
|
---|
463 | [Rule.Common.UEFI_APPLICATION.BINARY]
|
---|
464 | FILE APPLICATION = $(NAMED_GUID) {
|
---|
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.SEC.RESET_VECTOR]
|
---|
471 | FILE RAW = $(NAMED_GUID) {
|
---|
472 | RAW BIN Align = 16 |.bin
|
---|
473 | }
|
---|