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