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