62dd58f6e47a06e89eb0b81f4d8ed7b7c611f01d
[mirror_edk2.git] / OvmfPkg / OvmfPkgX64.fdf
1 ## @file
2 # Open Virtual Machine Firmware: FDF
3 #
4 # Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
5 # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
6 #
7 # This program and the accompanying materials
8 # are licensed and made available under the terms and conditions of the BSD License
9 # which accompanies this distribution. The full text of the license may be found at
10 # http://opensource.org/licenses/bsd-license.php
11 #
12 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 #
15 ##
16
17 ################################################################################
18
19 [Defines]
20 !include OvmfPkg.fdf.inc
21
22 #
23 # Build the variable store and the firmware code as one unified flash device
24 # image.
25 #
26 [FD.OVMF]
27 BaseAddress = $(FW_BASE_ADDRESS)
28 Size = $(FW_SIZE)
29 ErasePolarity = 1
30 BlockSize = $(BLOCK_SIZE)
31 NumBlocks = $(FW_BLOCKS)
32
33 !include VarStore.fdf.inc
34
35 $(VARS_SIZE)|$(FVMAIN_SIZE)
36 FV = FVMAIN_COMPACT
37
38 $(SECFV_OFFSET)|$(SECFV_SIZE)
39 FV = SECFV
40
41 #
42 # Build the variable store and the firmware code as separate flash device
43 # images.
44 #
45 [FD.OVMF_VARS]
46 BaseAddress = $(FW_BASE_ADDRESS)
47 Size = $(VARS_SIZE)
48 ErasePolarity = 1
49 BlockSize = $(BLOCK_SIZE)
50 NumBlocks = $(VARS_BLOCKS)
51
52 !include VarStore.fdf.inc
53
54 [FD.OVMF_CODE]
55 BaseAddress = $(CODE_BASE_ADDRESS)
56 Size = $(CODE_SIZE)
57 ErasePolarity = 1
58 BlockSize = $(BLOCK_SIZE)
59 NumBlocks = $(CODE_BLOCKS)
60
61 0x00000000|$(FVMAIN_SIZE)
62 FV = FVMAIN_COMPACT
63
64 $(FVMAIN_SIZE)|$(SECFV_SIZE)
65 FV = SECFV
66
67 ################################################################################
68
69 [FD.MEMFD]
70 BaseAddress = $(MEMFD_BASE_ADDRESS)
71 Size = 0xB00000
72 ErasePolarity = 1
73 BlockSize = 0x10000
74 NumBlocks = 0xB0
75
76 0x000000|0x006000
77 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesSize
78
79 0x006000|0x001000
80 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageSize
81
82 0x007000|0x001000
83 gEfiMdePkgTokenSpaceGuid.PcdGuidedExtractHandlerTableAddress|gUefiOvmfPkgTokenSpaceGuid.PcdGuidedExtractHandlerTableSize
84
85 0x010000|0x010000
86 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize
87
88 0x020000|0x0E0000
89 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvSize
90 FV = PEIFV
91
92 0x100000|0xA00000
93 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvSize
94 FV = DXEFV
95
96 ################################################################################
97
98 [FV.SECFV]
99 FvNameGuid = 763BED0D-DE9F-48F5-81F1-3E90E1B1A015
100 BlockSize = 0x1000
101 FvAlignment = 16
102 ERASE_POLARITY = 1
103 MEMORY_MAPPED = TRUE
104 STICKY_WRITE = TRUE
105 LOCK_CAP = TRUE
106 LOCK_STATUS = TRUE
107 WRITE_DISABLED_CAP = TRUE
108 WRITE_ENABLED_CAP = TRUE
109 WRITE_STATUS = TRUE
110 WRITE_LOCK_CAP = TRUE
111 WRITE_LOCK_STATUS = TRUE
112 READ_DISABLED_CAP = TRUE
113 READ_ENABLED_CAP = TRUE
114 READ_STATUS = TRUE
115 READ_LOCK_CAP = TRUE
116 READ_LOCK_STATUS = TRUE
117
118 #
119 # SEC Phase modules
120 #
121 # The code in this FV handles the initial firmware startup, and
122 # decompresses the PEI and DXE FVs which handles the rest of the boot sequence.
123 #
124 INF OvmfPkg/Sec/SecMain.inf
125
126 INF RuleOverride=RESET_VECTOR OvmfPkg/ResetVector/ResetVector.inf
127
128 ################################################################################
129 [FV.PEIFV]
130 FvNameGuid = 6938079B-B503-4E3D-9D24-B28337A25806
131 BlockSize = 0x10000
132 FvAlignment = 16
133 ERASE_POLARITY = 1
134 MEMORY_MAPPED = TRUE
135 STICKY_WRITE = TRUE
136 LOCK_CAP = TRUE
137 LOCK_STATUS = TRUE
138 WRITE_DISABLED_CAP = TRUE
139 WRITE_ENABLED_CAP = TRUE
140 WRITE_STATUS = TRUE
141 WRITE_LOCK_CAP = TRUE
142 WRITE_LOCK_STATUS = TRUE
143 READ_DISABLED_CAP = TRUE
144 READ_ENABLED_CAP = TRUE
145 READ_STATUS = TRUE
146 READ_LOCK_CAP = TRUE
147 READ_LOCK_STATUS = TRUE
148
149 APRIORI PEI {
150 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
151 }
152
153 #
154 # PEI Phase modules
155 #
156 INF MdeModulePkg/Core/Pei/PeiMain.inf
157 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
158 INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
159 INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
160 INF OvmfPkg/PlatformPei/PlatformPei.inf
161 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
162 INF UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
163 !if $(SMM_REQUIRE) == TRUE
164 INF OvmfPkg/SmmAccess/SmmAccessPei.inf
165 !endif
166 INF UefiCpuPkg/CpuMpPei/CpuMpPei.inf
167
168 ################################################################################
169
170 [FV.DXEFV]
171 FvForceRebase = FALSE
172 FvNameGuid = 7CB8BDC9-F8EB-4F34-AAEA-3EE4AF6516A1
173 BlockSize = 0x10000
174 FvAlignment = 16
175 ERASE_POLARITY = 1
176 MEMORY_MAPPED = TRUE
177 STICKY_WRITE = TRUE
178 LOCK_CAP = TRUE
179 LOCK_STATUS = TRUE
180 WRITE_DISABLED_CAP = TRUE
181 WRITE_ENABLED_CAP = TRUE
182 WRITE_STATUS = TRUE
183 WRITE_LOCK_CAP = TRUE
184 WRITE_LOCK_STATUS = TRUE
185 READ_DISABLED_CAP = TRUE
186 READ_ENABLED_CAP = TRUE
187 READ_STATUS = TRUE
188 READ_LOCK_CAP = TRUE
189 READ_LOCK_STATUS = TRUE
190
191 APRIORI DXE {
192 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
193 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
194 INF OvmfPkg/AmdSevDxe/AmdSevDxe.inf
195 !if $(SMM_REQUIRE) == FALSE
196 INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
197 !endif
198 }
199
200 #
201 # DXE Phase modules
202 #
203 INF MdeModulePkg/Core/Dxe/DxeMain.inf
204
205 INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
206 INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
207 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
208
209 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
210 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
211 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
212 INF PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
213 INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
214 INF UefiCpuPkg/CpuDxe/CpuDxe.inf
215 INF PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
216 INF OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
217 INF OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
218 INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
219 INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
220 INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
221 INF MdeModulePkg/Universal/Metronome/Metronome.inf
222 INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
223
224 INF OvmfPkg/BlockMmioToBlockIoDxe/BlockIo.inf
225 INF OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
226 INF OvmfPkg/Virtio10Dxe/Virtio10.inf
227 INF OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
228 INF OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
229 INF OvmfPkg/VirtioRngDxe/VirtioRng.inf
230 INF OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
231 INF OvmfPkg/XenBusDxe/XenBusDxe.inf
232 INF OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
233
234 !if $(SECURE_BOOT_ENABLE) == TRUE
235 INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
236 !endif
237
238 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
239 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
240 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
241 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
242 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
243 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
244 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
245 INF MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
246 INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
247 INF MdeModulePkg/Application/UiApp/UiApp.inf
248 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
249 INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
250 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
251 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
252 INF MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
253 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
254 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
255 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
256 INF OvmfPkg/SataControllerDxe/SataControllerDxe.inf
257 INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
258 INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
259 INF MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
260 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
261 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
262 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
263 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
264
265 INF PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
266 INF IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
267
268 !ifndef $(SOURCE_DEBUG_ENABLE)
269 INF IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
270 !endif
271
272 INF IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
273 INF IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
274
275 INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
276 INF OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
277
278 INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
279 INF OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
280 INF RuleOverride=ACPITABLE OvmfPkg/AcpiTables/AcpiTables.inf
281 INF MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
282 INF MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
283 INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
284
285 INF FatPkg/EnhancedFatDxe/Fat.inf
286 INF MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
287
288 !ifndef $(USE_OLD_SHELL)
289 INF ShellPkg/Application/Shell/Shell.inf
290 !else
291 INF RuleOverride = BINARY EdkShellBinPkg/FullShell/FullShell.inf
292 !endif
293
294 INF MdeModulePkg/Logo/LogoDxe.inf
295
296 #
297 # Network modules
298 #
299 !if $(E1000_ENABLE)
300 FILE DRIVER = 5D695E11-9B3F-4b83-B25F-4A8D5D69BE07 {
301 SECTION PE32 = Intel3.5/EFIX64/E3522X2.EFI
302 }
303 !endif
304 INF MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
305 INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
306 INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
307 INF MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
308 INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
309 INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
310 INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
311 INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
312 INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
313 !if $(NETWORK_IP6_ENABLE) == TRUE
314 INF NetworkPkg/Ip6Dxe/Ip6Dxe.inf
315 INF NetworkPkg/TcpDxe/TcpDxe.inf
316 INF NetworkPkg/Udp6Dxe/Udp6Dxe.inf
317 INF NetworkPkg/Dhcp6Dxe/Dhcp6Dxe.inf
318 INF NetworkPkg/Mtftp6Dxe/Mtftp6Dxe.inf
319 INF NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
320 INF NetworkPkg/IScsiDxe/IScsiDxe.inf
321 !else
322 INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
323 INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
324 INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
325 !endif
326 !if $(HTTP_BOOT_ENABLE) == TRUE
327 INF NetworkPkg/DnsDxe/DnsDxe.inf
328 INF NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.inf
329 INF NetworkPkg/HttpDxe/HttpDxe.inf
330 INF NetworkPkg/HttpBootDxe/HttpBootDxe.inf
331 !endif
332 !if $(TLS_ENABLE) == TRUE
333 INF NetworkPkg/TlsDxe/TlsDxe.inf
334 INF NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf
335 !endif
336 INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
337
338 #
339 # Usb Support
340 #
341 INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
342 INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
343 INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
344 INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
345 INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
346 INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
347
348 !ifdef $(CSM_ENABLE)
349 INF IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf
350 INF IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
351 INF RuleOverride=CSM OvmfPkg/Csm/Csm16/Csm16.inf
352 !endif
353
354 INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
355 INF OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
356 INF OvmfPkg/PlatformDxe/Platform.inf
357 INF OvmfPkg/AmdSevDxe/AmdSevDxe.inf
358 INF OvmfPkg/IoMmuDxe/IoMmuDxe.inf
359
360 !if $(SMM_REQUIRE) == TRUE
361 INF OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
362 INF OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
363 INF UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf
364 INF MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
365 INF MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
366 INF UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
367 INF MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf
368 INF UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
369
370 #
371 # Variable driver stack (SMM)
372 #
373 INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
374 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
375 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf
376 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
377
378 !else
379
380 #
381 # Variable driver stack (non-SMM)
382 #
383 INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
384 INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
385 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
386 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
387 !endif
388
389 ################################################################################
390
391 [FV.FVMAIN_COMPACT]
392 FvNameGuid = 48DB5E17-707C-472D-91CD-1613E7EF51B0
393 FvAlignment = 16
394 ERASE_POLARITY = 1
395 MEMORY_MAPPED = TRUE
396 STICKY_WRITE = TRUE
397 LOCK_CAP = TRUE
398 LOCK_STATUS = TRUE
399 WRITE_DISABLED_CAP = TRUE
400 WRITE_ENABLED_CAP = TRUE
401 WRITE_STATUS = TRUE
402 WRITE_LOCK_CAP = TRUE
403 WRITE_LOCK_STATUS = TRUE
404 READ_DISABLED_CAP = TRUE
405 READ_ENABLED_CAP = TRUE
406 READ_STATUS = TRUE
407 READ_LOCK_CAP = TRUE
408 READ_LOCK_STATUS = TRUE
409
410 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
411 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
412 #
413 # These firmware volumes will have files placed in them uncompressed,
414 # and then both firmware volumes will be compressed in a single
415 # compression operation in order to achieve better overall compression.
416 #
417 SECTION FV_IMAGE = PEIFV
418 SECTION FV_IMAGE = DXEFV
419 }
420 }
421
422 !include DecomprScratchEnd.fdf.inc
423
424 ################################################################################
425
426 [Rule.Common.SEC]
427 FILE SEC = $(NAMED_GUID) {
428 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
429 UI STRING ="$(MODULE_NAME)" Optional
430 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
431 }
432
433 [Rule.Common.PEI_CORE]
434 FILE PEI_CORE = $(NAMED_GUID) {
435 PE32 PE32 Align=Auto $(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.PEIM]
441 FILE PEIM = $(NAMED_GUID) {
442 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
443 PE32 PE32 Align=Auto $(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.DXE_CORE]
449 FILE DXE_CORE = $(NAMED_GUID) {
450 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
451 UI STRING="$(MODULE_NAME)" Optional
452 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
453 }
454
455 [Rule.Common.DXE_DRIVER]
456 FILE DRIVER = $(NAMED_GUID) {
457 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
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 RAW ACPI Optional |.acpi
462 RAW ASL Optional |.aml
463 }
464
465 [Rule.Common.DXE_RUNTIME_DRIVER]
466 FILE DRIVER = $(NAMED_GUID) {
467 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
468 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
469 UI STRING="$(MODULE_NAME)" Optional
470 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
471 }
472
473 [Rule.Common.UEFI_DRIVER]
474 FILE DRIVER = $(NAMED_GUID) {
475 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
476 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
477 UI STRING="$(MODULE_NAME)" Optional
478 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
479 }
480
481 [Rule.Common.UEFI_DRIVER.BINARY]
482 FILE DRIVER = $(NAMED_GUID) {
483 DXE_DEPEX DXE_DEPEX Optional |.depex
484 PE32 PE32 |.efi
485 UI STRING="$(MODULE_NAME)" Optional
486 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
487 }
488
489 [Rule.Common.UEFI_APPLICATION]
490 FILE APPLICATION = $(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.UEFI_APPLICATION.BINARY]
497 FILE APPLICATION = $(NAMED_GUID) {
498 PE32 PE32 |.efi
499 UI STRING="$(MODULE_NAME)" Optional
500 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
501 }
502
503 [Rule.Common.USER_DEFINED.ACPITABLE]
504 FILE FREEFORM = $(NAMED_GUID) {
505 RAW ACPI |.acpi
506 RAW ASL |.aml
507 }
508
509 [Rule.Common.USER_DEFINED.CSM]
510 FILE FREEFORM = $(NAMED_GUID) {
511 RAW BIN |.bin
512 }
513
514 [Rule.Common.SEC.RESET_VECTOR]
515 FILE RAW = $(NAMED_GUID) {
516 RAW BIN Align = 16 |.bin
517 }
518
519 [Rule.Common.SMM_CORE]
520 FILE SMM_CORE = $(NAMED_GUID) {
521 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
522 UI STRING="$(MODULE_NAME)" Optional
523 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
524 }
525
526 [Rule.Common.DXE_SMM_DRIVER]
527 FILE SMM = $(NAMED_GUID) {
528 SMM_DEPEX SMM_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
529 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
530 UI STRING="$(MODULE_NAME)" Optional
531 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
532 }