]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgX64.fdf
d519f85328227e67ceebf038f13687b378b44689
[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 0x008000|0x001000
80 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbPageTableBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbPageTableSize
81
82 0x009000|0x002000
83 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbSize
84
85 0x00B000|0x001000
86 gUefiCpuPkgTokenSpaceGuid.PcdSevEsWorkAreaBase|gUefiCpuPkgTokenSpaceGuid.PcdSevEsWorkAreaSize
87
88 0x00C000|0x001000
89 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbBackupBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbBackupSize
90
91 0x010000|0x010000
92 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize
93
94 0x020000|0x0E0000
95 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvSize
96 FV = PEIFV
97
98 0x100000|0xC00000
99 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvSize
100 FV = DXEFV
101
102 ################################################################################
103
104 [FV.SECFV]
105 FvNameGuid = 763BED0D-DE9F-48F5-81F1-3E90E1B1A015
106 BlockSize = 0x1000
107 FvAlignment = 16
108 ERASE_POLARITY = 1
109 MEMORY_MAPPED = TRUE
110 STICKY_WRITE = TRUE
111 LOCK_CAP = TRUE
112 LOCK_STATUS = TRUE
113 WRITE_DISABLED_CAP = TRUE
114 WRITE_ENABLED_CAP = TRUE
115 WRITE_STATUS = TRUE
116 WRITE_LOCK_CAP = TRUE
117 WRITE_LOCK_STATUS = TRUE
118 READ_DISABLED_CAP = TRUE
119 READ_ENABLED_CAP = TRUE
120 READ_STATUS = TRUE
121 READ_LOCK_CAP = TRUE
122 READ_LOCK_STATUS = TRUE
123
124 #
125 # SEC Phase modules
126 #
127 # The code in this FV handles the initial firmware startup, and
128 # decompresses the PEI and DXE FVs which handles the rest of the boot sequence.
129 #
130 INF OvmfPkg/Sec/SecMain.inf
131
132 INF RuleOverride=RESET_VECTOR OvmfPkg/ResetVector/ResetVector.inf
133
134 ################################################################################
135 [FV.PEIFV]
136 FvNameGuid = 6938079B-B503-4E3D-9D24-B28337A25806
137 BlockSize = 0x10000
138 FvAlignment = 16
139 ERASE_POLARITY = 1
140 MEMORY_MAPPED = TRUE
141 STICKY_WRITE = TRUE
142 LOCK_CAP = TRUE
143 LOCK_STATUS = TRUE
144 WRITE_DISABLED_CAP = TRUE
145 WRITE_ENABLED_CAP = TRUE
146 WRITE_STATUS = TRUE
147 WRITE_LOCK_CAP = TRUE
148 WRITE_LOCK_STATUS = TRUE
149 READ_DISABLED_CAP = TRUE
150 READ_ENABLED_CAP = TRUE
151 READ_STATUS = TRUE
152 READ_LOCK_CAP = TRUE
153 READ_LOCK_STATUS = TRUE
154
155 APRIORI PEI {
156 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
157 }
158
159 #
160 # PEI Phase modules
161 #
162 INF MdeModulePkg/Core/Pei/PeiMain.inf
163 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
164 INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
165 INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
166 INF OvmfPkg/PlatformPei/PlatformPei.inf
167 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
168 INF UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
169 !if $(SMM_REQUIRE) == TRUE
170 INF MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
171 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
172 INF OvmfPkg/SmmAccess/SmmAccessPei.inf
173 !endif
174 INF UefiCpuPkg/CpuMpPei/CpuMpPei.inf
175
176 !if $(TPM_ENABLE) == TRUE
177 INF OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
178 INF SecurityPkg/Tcg/TcgPei/TcgPei.inf
179 INF SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf
180 !endif
181
182 ################################################################################
183
184 [FV.DXEFV]
185 FvForceRebase = FALSE
186 FvNameGuid = 7CB8BDC9-F8EB-4F34-AAEA-3EE4AF6516A1
187 BlockSize = 0x10000
188 FvAlignment = 16
189 ERASE_POLARITY = 1
190 MEMORY_MAPPED = TRUE
191 STICKY_WRITE = TRUE
192 LOCK_CAP = TRUE
193 LOCK_STATUS = TRUE
194 WRITE_DISABLED_CAP = TRUE
195 WRITE_ENABLED_CAP = TRUE
196 WRITE_STATUS = TRUE
197 WRITE_LOCK_CAP = TRUE
198 WRITE_LOCK_STATUS = TRUE
199 READ_DISABLED_CAP = TRUE
200 READ_ENABLED_CAP = TRUE
201 READ_STATUS = TRUE
202 READ_LOCK_CAP = TRUE
203 READ_LOCK_STATUS = TRUE
204
205 APRIORI DXE {
206 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
207 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
208 INF OvmfPkg/AmdSevDxe/AmdSevDxe.inf
209 !if $(SMM_REQUIRE) == FALSE
210 INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
211 !endif
212 }
213
214 #
215 # DXE Phase modules
216 #
217 INF MdeModulePkg/Core/Dxe/DxeMain.inf
218
219 INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
220 INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
221 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
222
223 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
224 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
225 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
226 INF OvmfPkg/8259InterruptControllerDxe/8259.inf
227 INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
228 INF UefiCpuPkg/CpuDxe/CpuDxe.inf
229 INF OvmfPkg/8254TimerDxe/8254Timer.inf
230 INF OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
231 INF OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
232 INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
233 INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
234 INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
235 INF MdeModulePkg/Universal/Metronome/Metronome.inf
236 INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
237
238 INF OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
239 INF OvmfPkg/Virtio10Dxe/Virtio10.inf
240 INF OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
241 INF OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
242 INF OvmfPkg/VirtioRngDxe/VirtioRng.inf
243 INF OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
244 INF OvmfPkg/XenBusDxe/XenBusDxe.inf
245 INF OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
246 !if $(PVSCSI_ENABLE) == TRUE
247 INF OvmfPkg/PvScsiDxe/PvScsiDxe.inf
248 !endif
249 !if $(MPT_SCSI_ENABLE) == TRUE
250 INF OvmfPkg/MptScsiDxe/MptScsiDxe.inf
251 !endif
252 !if $(LSI_SCSI_ENABLE) == TRUE
253 INF OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
254 !endif
255
256 !if $(SECURE_BOOT_ENABLE) == TRUE
257 INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
258 !endif
259
260 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
261 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
262 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
263 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
264 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
265 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
266 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
267 INF MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
268 INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
269 INF MdeModulePkg/Application/UiApp/UiApp.inf
270 INF OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf
271 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
272 INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
273 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
274 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
275 INF MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
276 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
277 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
278 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
279 INF OvmfPkg/SataControllerDxe/SataControllerDxe.inf
280 INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
281 INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
282 INF MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
283 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
284 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
285 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
286 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
287
288 INF OvmfPkg/SioBusDxe/SioBusDxe.inf
289 !if $(SOURCE_DEBUG_ENABLE) == FALSE
290 INF MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
291 !endif
292 INF MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
293
294 INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
295 INF OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
296
297 INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
298 INF OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
299 INF RuleOverride=ACPITABLE OvmfPkg/AcpiTables/AcpiTables.inf
300 INF MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
301 INF MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
302 INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
303
304 INF FatPkg/EnhancedFatDxe/Fat.inf
305 INF MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
306 INF OvmfPkg/VirtioFsDxe/VirtioFsDxe.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 # Network modules
319 #
320 !if $(E1000_ENABLE)
321 FILE DRIVER = 5D695E11-9B3F-4b83-B25F-4A8D5D69BE07 {
322 SECTION PE32 = Intel3.5/EFIX64/E3522X2.EFI
323 }
324 !endif
325 !include NetworkPkg/Network.fdf.inc
326 INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
327
328 #
329 # Usb Support
330 #
331 INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
332 INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
333 INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
334 INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
335 INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
336 INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
337
338 !ifdef $(CSM_ENABLE)
339 INF OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf
340 INF OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
341 INF RuleOverride=CSM OvmfPkg/Csm/Csm16/Csm16.inf
342 !else
343 INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
344 !endif
345
346 INF OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
347 INF OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
348 INF OvmfPkg/PlatformDxe/Platform.inf
349 INF OvmfPkg/AmdSevDxe/AmdSevDxe.inf
350 INF OvmfPkg/IoMmuDxe/IoMmuDxe.inf
351
352 !if $(SMM_REQUIRE) == TRUE
353 INF OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
354 INF OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
355 INF OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
356 INF MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
357 INF MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
358 INF OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
359 INF UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
360 INF MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf
361 INF UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
362
363 #
364 # Variable driver stack (SMM)
365 #
366 INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
367 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
368 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf
369 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
370
371 !else
372
373 #
374 # Variable driver stack (non-SMM)
375 #
376 INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
377 INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
378 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
379 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
380 !endif
381
382 #
383 # TPM support
384 #
385 !if $(TPM_ENABLE) == TRUE
386 INF SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
387 INF SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf
388 !if $(TPM_CONFIG_ENABLE) == TRUE
389 INF SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
390 !endif
391 !endif
392
393 ################################################################################
394
395 [FV.FVMAIN_COMPACT]
396 FvNameGuid = 48DB5E17-707C-472D-91CD-1613E7EF51B0
397 FvAlignment = 16
398 ERASE_POLARITY = 1
399 MEMORY_MAPPED = TRUE
400 STICKY_WRITE = TRUE
401 LOCK_CAP = TRUE
402 LOCK_STATUS = TRUE
403 WRITE_DISABLED_CAP = TRUE
404 WRITE_ENABLED_CAP = TRUE
405 WRITE_STATUS = TRUE
406 WRITE_LOCK_CAP = TRUE
407 WRITE_LOCK_STATUS = TRUE
408 READ_DISABLED_CAP = TRUE
409 READ_ENABLED_CAP = TRUE
410 READ_STATUS = TRUE
411 READ_LOCK_CAP = TRUE
412 READ_LOCK_STATUS = TRUE
413
414 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
415 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
416 #
417 # These firmware volumes will have files placed in them uncompressed,
418 # and then both firmware volumes will be compressed in a single
419 # compression operation in order to achieve better overall compression.
420 #
421 SECTION FV_IMAGE = PEIFV
422 SECTION FV_IMAGE = DXEFV
423 }
424 }
425
426 !include FvmainCompactScratchEnd.fdf.inc
427
428 ################################################################################
429
430 [Rule.Common.SEC]
431 FILE SEC = $(NAMED_GUID) {
432 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
433 UI STRING ="$(MODULE_NAME)" Optional
434 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
435 }
436
437 [Rule.Common.PEI_CORE]
438 FILE PEI_CORE = $(NAMED_GUID) {
439 PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
440 UI STRING ="$(MODULE_NAME)" Optional
441 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
442 }
443
444 [Rule.Common.PEIM]
445 FILE PEIM = $(NAMED_GUID) {
446 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
447 PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
448 UI STRING="$(MODULE_NAME)" Optional
449 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
450 }
451
452 [Rule.Common.DXE_CORE]
453 FILE DXE_CORE = $(NAMED_GUID) {
454 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
455 UI STRING="$(MODULE_NAME)" Optional
456 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
457 }
458
459 [Rule.Common.DXE_DRIVER]
460 FILE DRIVER = $(NAMED_GUID) {
461 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
462 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
463 UI STRING="$(MODULE_NAME)" Optional
464 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
465 RAW ACPI Optional |.acpi
466 RAW ASL Optional |.aml
467 }
468
469 [Rule.Common.DXE_RUNTIME_DRIVER]
470 FILE DRIVER = $(NAMED_GUID) {
471 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
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_DRIVER]
478 FILE DRIVER = $(NAMED_GUID) {
479 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
480 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
481 UI STRING="$(MODULE_NAME)" Optional
482 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
483 }
484
485 [Rule.Common.UEFI_DRIVER.BINARY]
486 FILE DRIVER = $(NAMED_GUID) {
487 DXE_DEPEX DXE_DEPEX Optional |.depex
488 PE32 PE32 |.efi
489 UI STRING="$(MODULE_NAME)" Optional
490 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
491 }
492
493 [Rule.Common.UEFI_APPLICATION]
494 FILE APPLICATION = $(NAMED_GUID) {
495 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
496 UI STRING="$(MODULE_NAME)" Optional
497 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
498 }
499
500 [Rule.Common.UEFI_APPLICATION.BINARY]
501 FILE APPLICATION = $(NAMED_GUID) {
502 PE32 PE32 |.efi
503 UI STRING="$(MODULE_NAME)" Optional
504 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
505 }
506
507 [Rule.Common.USER_DEFINED.ACPITABLE]
508 FILE FREEFORM = $(NAMED_GUID) {
509 RAW ACPI |.acpi
510 RAW ASL |.aml
511 }
512
513 [Rule.Common.USER_DEFINED.CSM]
514 FILE FREEFORM = $(NAMED_GUID) {
515 RAW BIN |.bin
516 }
517
518 [Rule.Common.SEC.RESET_VECTOR]
519 FILE RAW = $(NAMED_GUID) {
520 RAW BIN Align = 16 |.bin
521 }
522
523 [Rule.Common.SMM_CORE]
524 FILE SMM_CORE = $(NAMED_GUID) {
525 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
526 UI STRING="$(MODULE_NAME)" Optional
527 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
528 }
529
530 [Rule.Common.DXE_SMM_DRIVER]
531 FILE SMM = $(NAMED_GUID) {
532 SMM_DEPEX SMM_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
533 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
534 UI STRING="$(MODULE_NAME)" Optional
535 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
536 }