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