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