OvmfPkg: Drop build flag USE_LEGACY_ISA_STACK and legacy ISA stack
[mirror_edk2.git] / OvmfPkg / OvmfPkgIa32X64.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 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 \r
269 INF  MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf\r
270 INF  OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf\r
271 \r
272 INF  MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
273 INF  OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf\r
274 INF  RuleOverride=ACPITABLE OvmfPkg/AcpiTables/AcpiTables.inf\r
275 INF  MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf\r
276 INF  MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf\r
277 INF  MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf\r
278 \r
279 INF  FatPkg/EnhancedFatDxe/Fat.inf\r
280 INF  MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf\r
281 \r
282 !if $(TOOL_CHAIN_TAG) != "XCODE5"\r
283 INF  ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf\r
284 !endif\r
285 INF  ShellPkg/Application/Shell/Shell.inf\r
286 \r
287 INF MdeModulePkg/Logo/LogoDxe.inf\r
288 \r
289 #\r
290 # Network modules\r
291 #\r
292 !if $(E1000_ENABLE)\r
293   FILE DRIVER = 5D695E11-9B3F-4b83-B25F-4A8D5D69BE07 {\r
294     SECTION PE32 = Intel3.5/EFIX64/E3522X2.EFI\r
295   }\r
296 !endif\r
297 !include NetworkPkg/Network.fdf.inc\r
298   INF  OvmfPkg/VirtioNetDxe/VirtioNet.inf\r
299 \r
300 #\r
301 # Usb Support\r
302 #\r
303 INF  MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf\r
304 INF  MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf\r
305 INF  MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf\r
306 INF  MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf\r
307 INF  MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf\r
308 INF  MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf\r
309 \r
310 !ifdef $(CSM_ENABLE)\r
311 INF  IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf\r
312 INF  IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf\r
313 INF  RuleOverride=CSM OvmfPkg/Csm/Csm16/Csm16.inf\r
314 !endif\r
315 \r
316 INF  OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf\r
317 INF  OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf\r
318 INF  OvmfPkg/VirtioGpuDxe/VirtioGpu.inf\r
319 INF  OvmfPkg/PlatformDxe/Platform.inf\r
320 INF  OvmfPkg/AmdSevDxe/AmdSevDxe.inf\r
321 INF  OvmfPkg/IoMmuDxe/IoMmuDxe.inf\r
322 \r
323 !if $(SMM_REQUIRE) == TRUE\r
324 INF  OvmfPkg/SmmAccess/SmmAccess2Dxe.inf\r
325 INF  OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf\r
326 INF  UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf\r
327 INF  MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf\r
328 INF  MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf\r
329 INF  UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf\r
330 INF  MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf\r
331 INF  UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf\r
332 \r
333 #\r
334 # Variable driver stack (SMM)\r
335 #\r
336 INF  OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf\r
337 INF  MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf\r
338 INF  MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf\r
339 INF  MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf\r
340 \r
341 !else\r
342 \r
343 #\r
344 # Variable driver stack (non-SMM)\r
345 #\r
346 INF  OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf\r
347 INF  OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf\r
348 INF  MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r
349 INF  MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r
350 !endif\r
351 \r
352 !if $(TPM2_ENABLE) == TRUE\r
353 INF  SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf\r
354 !if $(TPM2_CONFIG_ENABLE) == TRUE\r
355 INF  SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf\r
356 !endif\r
357 !endif\r
358 \r
359 ################################################################################\r
360 \r
361 [FV.FVMAIN_COMPACT]\r
362 FvNameGuid         = 48DB5E17-707C-472D-91CD-1613E7EF51B0\r
363 FvAlignment        = 16\r
364 ERASE_POLARITY     = 1\r
365 MEMORY_MAPPED      = TRUE\r
366 STICKY_WRITE       = TRUE\r
367 LOCK_CAP           = TRUE\r
368 LOCK_STATUS        = TRUE\r
369 WRITE_DISABLED_CAP = TRUE\r
370 WRITE_ENABLED_CAP  = TRUE\r
371 WRITE_STATUS       = TRUE\r
372 WRITE_LOCK_CAP     = TRUE\r
373 WRITE_LOCK_STATUS  = TRUE\r
374 READ_DISABLED_CAP  = TRUE\r
375 READ_ENABLED_CAP   = TRUE\r
376 READ_STATUS        = TRUE\r
377 READ_LOCK_CAP      = TRUE\r
378 READ_LOCK_STATUS   = TRUE\r
379 \r
380 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {\r
381    SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {\r
382      #\r
383      # These firmware volumes will have files placed in them uncompressed,\r
384      # and then both firmware volumes will be compressed in a single\r
385      # compression operation in order to achieve better overall compression.\r
386      #\r
387      SECTION FV_IMAGE = PEIFV\r
388      SECTION FV_IMAGE = DXEFV\r
389    }\r
390  }\r
391 \r
392 !include DecomprScratchEnd.fdf.inc\r
393 \r
394 ################################################################################\r
395 \r
396 [Rule.Common.SEC]\r
397   FILE SEC = $(NAMED_GUID) {\r
398     PE32     PE32           $(INF_OUTPUT)/$(MODULE_NAME).efi\r
399     UI       STRING ="$(MODULE_NAME)" Optional\r
400     VERSION  STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
401   }\r
402 \r
403 [Rule.Common.PEI_CORE]\r
404   FILE PEI_CORE = $(NAMED_GUID) {\r
405     PE32     PE32   Align=Auto    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
406     UI       STRING ="$(MODULE_NAME)" Optional\r
407     VERSION  STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
408   }\r
409 \r
410 [Rule.Common.PEIM]\r
411   FILE PEIM = $(NAMED_GUID) {\r
412      PEI_DEPEX PEI_DEPEX Optional        $(INF_OUTPUT)/$(MODULE_NAME).depex\r
413      PE32      PE32   Align=Auto         $(INF_OUTPUT)/$(MODULE_NAME).efi\r
414      UI       STRING="$(MODULE_NAME)" Optional\r
415      VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
416   }\r
417 \r
418 [Rule.Common.DXE_CORE]\r
419   FILE DXE_CORE = $(NAMED_GUID) {\r
420     PE32     PE32           $(INF_OUTPUT)/$(MODULE_NAME).efi\r
421     UI       STRING="$(MODULE_NAME)" Optional\r
422     VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
423   }\r
424 \r
425 [Rule.Common.DXE_DRIVER]\r
426   FILE DRIVER = $(NAMED_GUID) {\r
427     DXE_DEPEX    DXE_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex\r
428     PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
429     UI       STRING="$(MODULE_NAME)" Optional\r
430     VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
431     RAW ACPI  Optional               |.acpi\r
432     RAW ASL   Optional               |.aml\r
433   }\r
434 \r
435 [Rule.Common.DXE_RUNTIME_DRIVER]\r
436   FILE DRIVER = $(NAMED_GUID) {\r
437     DXE_DEPEX    DXE_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex\r
438     PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
439     UI       STRING="$(MODULE_NAME)" Optional\r
440     VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
441   }\r
442 \r
443 [Rule.Common.UEFI_DRIVER]\r
444   FILE DRIVER = $(NAMED_GUID) {\r
445     DXE_DEPEX    DXE_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex\r
446     PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
447     UI       STRING="$(MODULE_NAME)" Optional\r
448     VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
449   }\r
450 \r
451 [Rule.Common.UEFI_DRIVER.BINARY]\r
452   FILE DRIVER = $(NAMED_GUID) {\r
453     DXE_DEPEX DXE_DEPEX Optional      |.depex\r
454     PE32      PE32                    |.efi\r
455     UI        STRING="$(MODULE_NAME)" Optional\r
456     VERSION   STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
457   }\r
458 \r
459 [Rule.Common.UEFI_APPLICATION]\r
460   FILE APPLICATION = $(NAMED_GUID) {\r
461     PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
462     UI       STRING="$(MODULE_NAME)" Optional\r
463     VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
464   }\r
465 \r
466 [Rule.Common.UEFI_APPLICATION.BINARY]\r
467   FILE APPLICATION = $(NAMED_GUID) {\r
468     PE32      PE32                    |.efi\r
469     UI        STRING="$(MODULE_NAME)" Optional\r
470     VERSION   STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
471   }\r
472 \r
473 [Rule.Common.USER_DEFINED.ACPITABLE]\r
474   FILE FREEFORM = $(NAMED_GUID) {\r
475     RAW ACPI               |.acpi\r
476     RAW ASL                |.aml\r
477   }\r
478 \r
479 [Rule.Common.USER_DEFINED.CSM]\r
480   FILE FREEFORM = $(NAMED_GUID) {\r
481     RAW BIN                |.bin\r
482   }\r
483 \r
484 [Rule.Common.SEC.RESET_VECTOR]\r
485   FILE RAW = $(NAMED_GUID) {\r
486     RAW BIN   Align = 16   |.bin\r
487   }\r
488 \r
489 [Rule.Common.SMM_CORE]\r
490   FILE SMM_CORE = $(NAMED_GUID) {\r
491     PE32     PE32           $(INF_OUTPUT)/$(MODULE_NAME).efi\r
492     UI       STRING="$(MODULE_NAME)" Optional\r
493     VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
494   }\r
495 \r
496 [Rule.Common.DXE_SMM_DRIVER]\r
497   FILE SMM = $(NAMED_GUID) {\r
498     SMM_DEPEX    SMM_DEPEX Optional      $(INF_OUTPUT)/$(MODULE_NAME).depex\r
499     PE32     PE32                    $(INF_OUTPUT)/$(MODULE_NAME).efi\r
500     UI       STRING="$(MODULE_NAME)" Optional\r
501     VERSION  STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r
502   }\r