]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgX64.fdf
0e2a5caaf906786382ecbecc800abf1427177190
[mirror_edk2.git] / OvmfPkg / OvmfPkgX64.fdf
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 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 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 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 = 0xD00000
66 ErasePolarity = 1
67 BlockSize = 0x10000
68 NumBlocks = 0xD0
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 0x010000|0x010000
80 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize
81
82 0x020000|0x0E0000
83 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvSize
84 FV = PEIFV
85
86 0x100000|0xC00000
87 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvSize
88 FV = DXEFV
89
90 ################################################################################
91
92 [FV.SECFV]
93 FvNameGuid = 763BED0D-DE9F-48F5-81F1-3E90E1B1A015
94 BlockSize = 0x1000
95 FvAlignment = 16
96 ERASE_POLARITY = 1
97 MEMORY_MAPPED = TRUE
98 STICKY_WRITE = TRUE
99 LOCK_CAP = TRUE
100 LOCK_STATUS = TRUE
101 WRITE_DISABLED_CAP = TRUE
102 WRITE_ENABLED_CAP = TRUE
103 WRITE_STATUS = TRUE
104 WRITE_LOCK_CAP = TRUE
105 WRITE_LOCK_STATUS = TRUE
106 READ_DISABLED_CAP = TRUE
107 READ_ENABLED_CAP = TRUE
108 READ_STATUS = TRUE
109 READ_LOCK_CAP = TRUE
110 READ_LOCK_STATUS = TRUE
111
112 #
113 # SEC Phase modules
114 #
115 # The code in this FV handles the initial firmware startup, and
116 # decompresses the PEI and DXE FVs which handles the rest of the boot sequence.
117 #
118 INF OvmfPkg/Sec/SecMain.inf
119
120 INF RuleOverride=RESET_VECTOR OvmfPkg/ResetVector/ResetVector.inf
121
122 ################################################################################
123 [FV.PEIFV]
124 FvNameGuid = 6938079B-B503-4E3D-9D24-B28337A25806
125 BlockSize = 0x10000
126 FvAlignment = 16
127 ERASE_POLARITY = 1
128 MEMORY_MAPPED = TRUE
129 STICKY_WRITE = TRUE
130 LOCK_CAP = TRUE
131 LOCK_STATUS = TRUE
132 WRITE_DISABLED_CAP = TRUE
133 WRITE_ENABLED_CAP = TRUE
134 WRITE_STATUS = TRUE
135 WRITE_LOCK_CAP = TRUE
136 WRITE_LOCK_STATUS = TRUE
137 READ_DISABLED_CAP = TRUE
138 READ_ENABLED_CAP = TRUE
139 READ_STATUS = TRUE
140 READ_LOCK_CAP = TRUE
141 READ_LOCK_STATUS = TRUE
142
143 APRIORI PEI {
144 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
145 }
146
147 #
148 # PEI Phase modules
149 #
150 INF MdeModulePkg/Core/Pei/PeiMain.inf
151 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
152 INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
153 INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
154 INF OvmfPkg/PlatformPei/PlatformPei.inf
155 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
156 INF UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
157 !if $(SMM_REQUIRE) == TRUE
158 INF MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
159 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
160 INF OvmfPkg/SmmAccess/SmmAccessPei.inf
161 !endif
162 INF UefiCpuPkg/CpuMpPei/CpuMpPei.inf
163
164 !if $(TPM_ENABLE) == TRUE
165 INF OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
166 INF SecurityPkg/Tcg/TcgPei/TcgPei.inf
167 INF SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf
168 !endif
169
170 ################################################################################
171
172 [FV.DXEFV]
173 FvForceRebase = FALSE
174 FvNameGuid = 7CB8BDC9-F8EB-4F34-AAEA-3EE4AF6516A1
175 BlockSize = 0x10000
176 FvAlignment = 16
177 ERASE_POLARITY = 1
178 MEMORY_MAPPED = TRUE
179 STICKY_WRITE = TRUE
180 LOCK_CAP = TRUE
181 LOCK_STATUS = TRUE
182 WRITE_DISABLED_CAP = TRUE
183 WRITE_ENABLED_CAP = TRUE
184 WRITE_STATUS = TRUE
185 WRITE_LOCK_CAP = TRUE
186 WRITE_LOCK_STATUS = TRUE
187 READ_DISABLED_CAP = TRUE
188 READ_ENABLED_CAP = TRUE
189 READ_STATUS = TRUE
190 READ_LOCK_CAP = TRUE
191 READ_LOCK_STATUS = TRUE
192
193 APRIORI DXE {
194 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
195 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
196 INF OvmfPkg/AmdSevDxe/AmdSevDxe.inf
197 !if $(SMM_REQUIRE) == FALSE
198 INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
199 !endif
200 }
201
202 #
203 # DXE Phase modules
204 #
205 INF MdeModulePkg/Core/Dxe/DxeMain.inf
206
207 INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
208 INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
209 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
210
211 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
212 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
213 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
214 INF OvmfPkg/8259InterruptControllerDxe/8259.inf
215 INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
216 INF UefiCpuPkg/CpuDxe/CpuDxe.inf
217 INF OvmfPkg/8254TimerDxe/8254Timer.inf
218 INF OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
219 INF OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
220 INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
221 INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
222 INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
223 INF MdeModulePkg/Universal/Metronome/Metronome.inf
224 INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
225
226 INF OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
227 INF OvmfPkg/Virtio10Dxe/Virtio10.inf
228 INF OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
229 INF OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
230 INF OvmfPkg/VirtioRngDxe/VirtioRng.inf
231 INF OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
232 INF OvmfPkg/XenBusDxe/XenBusDxe.inf
233 INF OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
234
235 !if $(SECURE_BOOT_ENABLE) == TRUE
236 INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
237 !endif
238
239 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
240 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
241 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
242 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
243 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
244 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
245 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
246 INF MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
247 INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
248 INF MdeModulePkg/Application/UiApp/UiApp.inf
249 INF OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf
250 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
251 INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
252 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
253 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
254 INF MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
255 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
256 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
257 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
258 INF OvmfPkg/SataControllerDxe/SataControllerDxe.inf
259 INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
260 INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
261 INF MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
262 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
263 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
264 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
265 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
266
267 INF OvmfPkg/SioBusDxe/SioBusDxe.inf
268 !if $(SOURCE_DEBUG_ENABLE) == FALSE
269 INF MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
270 !endif
271 INF MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
272
273 INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
274 INF OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
275
276 INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
277 INF OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
278 INF RuleOverride=ACPITABLE OvmfPkg/AcpiTables/AcpiTables.inf
279 INF MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
280 INF MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
281 INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
282
283 INF FatPkg/EnhancedFatDxe/Fat.inf
284 INF MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
285
286 !if $(TOOL_CHAIN_TAG) != "XCODE5"
287 INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
288 !endif
289 INF OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf
290 INF ShellPkg/Application/Shell/Shell.inf
291
292 INF MdeModulePkg/Logo/LogoDxe.inf
293
294 #
295 # Network modules
296 #
297 !if $(E1000_ENABLE)
298 FILE DRIVER = 5D695E11-9B3F-4b83-B25F-4A8D5D69BE07 {
299 SECTION PE32 = Intel3.5/EFIX64/E3522X2.EFI
300 }
301 !endif
302 !include NetworkPkg/Network.fdf.inc
303 INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
304
305 #
306 # Usb Support
307 #
308 INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
309 INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
310 INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
311 INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
312 INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
313 INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
314
315 !ifdef $(CSM_ENABLE)
316 INF OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf
317 INF OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
318 INF RuleOverride=CSM OvmfPkg/Csm/Csm16/Csm16.inf
319 !else
320 INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
321 !endif
322
323 INF OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
324 INF OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
325 INF OvmfPkg/PlatformDxe/Platform.inf
326 INF OvmfPkg/AmdSevDxe/AmdSevDxe.inf
327 INF OvmfPkg/IoMmuDxe/IoMmuDxe.inf
328
329 !if $(SMM_REQUIRE) == TRUE
330 INF OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
331 INF OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
332 INF OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
333 INF MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
334 INF MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
335 INF OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
336 INF UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
337 INF MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf
338 INF UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
339
340 #
341 # Variable driver stack (SMM)
342 #
343 INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
344 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
345 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf
346 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
347
348 !else
349
350 #
351 # Variable driver stack (non-SMM)
352 #
353 INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
354 INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
355 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
356 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
357 !endif
358
359 #
360 # TPM support
361 #
362 !if $(TPM_ENABLE) == TRUE
363 INF SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
364 INF SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf
365 !if $(TPM_CONFIG_ENABLE) == TRUE
366 INF SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
367 !endif
368 !endif
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 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.USER_DEFINED.ACPITABLE]
485 FILE FREEFORM = $(NAMED_GUID) {
486 RAW ACPI |.acpi
487 RAW ASL |.aml
488 }
489
490 [Rule.Common.USER_DEFINED.CSM]
491 FILE FREEFORM = $(NAMED_GUID) {
492 RAW BIN |.bin
493 }
494
495 [Rule.Common.SEC.RESET_VECTOR]
496 FILE RAW = $(NAMED_GUID) {
497 RAW BIN Align = 16 |.bin
498 }
499
500 [Rule.Common.SMM_CORE]
501 FILE SMM_CORE = $(NAMED_GUID) {
502 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
503 UI STRING="$(MODULE_NAME)" Optional
504 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
505 }
506
507 [Rule.Common.DXE_SMM_DRIVER]
508 FILE SMM = $(NAMED_GUID) {
509 SMM_DEPEX SMM_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
510 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
511 UI STRING="$(MODULE_NAME)" Optional
512 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
513 }