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