]>
Commit | Line | Data |
---|---|---|
7b202cb0 | 1 | ## @file\r |
49ba9447 | 2 | # Open Virtual Machine Firmware: FDF\r |
3 | #\r | |
e259ad9b | 4 | # Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r |
a6d594c5 | 5 | # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r |
49ba9447 | 6 | #\r |
b26f0cf9 | 7 | # SPDX-License-Identifier: BSD-2-Clause-Patent\r |
49ba9447 | 8 | #\r |
7b202cb0 | 9 | ##\r |
49ba9447 | 10 | \r |
11 | ################################################################################\r | |
8184a764 | 12 | \r |
8184a764 | 13 | [Defines]\r |
1c50db8a LE |
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 | |
9a089978 | 20 | [FD.OVMF]\r |
1c50db8a LE |
21 | BaseAddress = $(FW_BASE_ADDRESS)\r |
22 | Size = $(FW_SIZE)\r | |
9a089978 | 23 | ErasePolarity = 1\r |
1c50db8a LE |
24 | BlockSize = $(BLOCK_SIZE)\r |
25 | NumBlocks = $(FW_BLOCKS)\r | |
9a089978 | 26 | \r |
1c093f0c | 27 | !include VarStore.fdf.inc\r |
9a089978 | 28 | \r |
1c50db8a | 29 | $(VARS_SIZE)|$(FVMAIN_SIZE)\r |
76d428b1 | 30 | FV = FVMAIN_COMPACT\r |
31 | \r | |
1c50db8a | 32 | $(SECFV_OFFSET)|$(SECFV_SIZE)\r |
c1c2669c | 33 | FV = SECFV\r |
eaeb4507 | 34 | \r |
1c50db8a LE |
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 | |
eaeb4507 | 56 | FV = FVMAIN_COMPACT\r |
57 | \r | |
1c50db8a | 58 | $(FVMAIN_SIZE)|$(SECFV_SIZE)\r |
eaeb4507 | 59 | FV = SECFV\r |
689562cd | 60 | \r |
49ba9447 | 61 | ################################################################################\r |
c1c2669c | 62 | \r |
63 | [FD.MEMFD]\r | |
9beac0d8 | 64 | BaseAddress = $(MEMFD_BASE_ADDRESS)\r |
d272449d | 65 | Size = 0xC00000\r |
49ba9447 | 66 | ErasePolarity = 1\r |
67 | BlockSize = 0x10000\r | |
d272449d | 68 | NumBlocks = 0xC0\r |
49ba9447 | 69 | \r |
b382ede3 JJ |
70 | 0x000000|0x006000\r |
71 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesSize\r | |
72 | \r | |
6a7cba79 LE |
73 | 0x006000|0x001000\r |
74 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageSize\r | |
75 | \r | |
ad43bc6b LE |
76 | 0x007000|0x001000\r |
77 | gEfiMdePkgTokenSpaceGuid.PcdGuidedExtractHandlerTableAddress|gUefiOvmfPkgTokenSpaceGuid.PcdGuidedExtractHandlerTableSize\r | |
78 | \r | |
d41fd8e8 | 79 | 0x010000|0x010000\r |
7cb6b0e0 JJ |
80 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize\r |
81 | \r | |
b36f701d JJ |
82 | 0x020000|0x0E0000\r |
83 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvSize\r | |
84 | FV = PEIFV\r | |
85 | \r | |
d272449d | 86 | 0x100000|0xB00000\r |
b36f701d JJ |
87 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvSize\r |
88 | FV = DXEFV\r | |
49ba9447 | 89 | \r |
90 | ################################################################################\r | |
c1c2669c | 91 | \r |
92 | [FV.SECFV]\r | |
16f26de6 | 93 | FvNameGuid = 763BED0D-DE9F-48F5-81F1-3E90E1B1A015\r |
c1c2669c | 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 | |
49ba9447 | 112 | #\r |
c1c2669c | 113 | # SEC Phase modules\r |
49ba9447 | 114 | #\r |
c1c2669c | 115 | # The code in this FV handles the initial firmware startup, and\r |
b36f701d | 116 | # decompresses the PEI and DXE FVs which handles the rest of the boot sequence.\r |
49ba9447 | 117 | #\r |
c1c2669c | 118 | INF OvmfPkg/Sec/SecMain.inf\r |
119 | \r | |
497cbb53 | 120 | INF RuleOverride=RESET_VECTOR OvmfPkg/ResetVector/ResetVector.inf\r |
c1c2669c | 121 | \r |
49ba9447 | 122 | ################################################################################\r |
b36f701d | 123 | [FV.PEIFV]\r |
16f26de6 | 124 | FvNameGuid = 6938079B-B503-4E3D-9D24-B28337A25806\r |
c1c2669c | 125 | BlockSize = 0x10000\r |
126 | FvAlignment = 16\r | |
49ba9447 | 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 | |
c1c2669c | 143 | APRIORI PEI {\r |
144 | INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf\r | |
145 | }\r | |
146 | \r | |
c1c2669c | 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 | |
a6d594c5 CS |
152 | INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf\r |
153 | INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf\r | |
c1c2669c | 154 | INF OvmfPkg/PlatformPei/PlatformPei.inf\r |
155 | INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r | |
5fb6fc0f | 156 | INF UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf\r |
9d560947 LE |
157 | !if $(SMM_REQUIRE) == TRUE\r |
158 | INF OvmfPkg/SmmAccess/SmmAccessPei.inf\r | |
159 | !endif\r | |
f0e6a56a | 160 | INF UefiCpuPkg/CpuMpPei/CpuMpPei.inf\r |
c1c2669c | 161 | \r |
6cf1880f MAL |
162 | !if $(TPM2_ENABLE) == TRUE\r |
163 | INF OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf\r | |
4672a489 | 164 | INF SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf\r |
6cf1880f MAL |
165 | !endif\r |
166 | \r | |
c29f6c05 | 167 | ################################################################################\r |
168 | \r | |
169 | [FV.DXEFV]\r | |
504f1491 | 170 | FvForceRebase = FALSE\r |
16f26de6 | 171 | FvNameGuid = 7CB8BDC9-F8EB-4F34-AAEA-3EE4AF6516A1\r |
c29f6c05 | 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 | |
863986b3 | 191 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r |
c29f6c05 | 192 | INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r |
24e4ad75 | 193 | INF OvmfPkg/AmdSevDxe/AmdSevDxe.inf\r |
46df0216 | 194 | !if $(SMM_REQUIRE) == FALSE\r |
182eb456 | 195 | INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf\r |
46df0216 | 196 | !endif\r |
c29f6c05 | 197 | }\r |
198 | \r | |
49ba9447 | 199 | #\r |
200 | # DXE Phase modules\r | |
201 | #\r | |
202 | INF MdeModulePkg/Core/Dxe/DxeMain.inf\r | |
203 | \r | |
a6d594c5 CS |
204 | INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf\r |
205 | INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf\r | |
49ba9447 | 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 | |
c1c2669c | 210 | INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf\r |
6d70ade9 | 211 | INF OvmfPkg/8259InterruptControllerDxe/8259.inf\r |
afbb91aa | 212 | INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf\r |
49ba9447 | 213 | INF UefiCpuPkg/CpuDxe/CpuDxe.inf\r |
6d70ade9 | 214 | INF OvmfPkg/8254TimerDxe/8254Timer.inf\r |
855743f7 | 215 | INF OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf\r |
8aba40b7 | 216 | INF OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf\r |
4014885f | 217 | INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf\r |
4ad90a84 | 218 | INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf\r |
f90472e1 | 219 | INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf\r |
49ba9447 | 220 | INF MdeModulePkg/Universal/Metronome/Metronome.inf\r |
712bd83b | 221 | INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf\r |
87a1d7a8 | 222 | \r |
56f65ed8 | 223 | INF OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf\r |
8456a7da | 224 | INF OvmfPkg/Virtio10Dxe/Virtio10.inf\r |
fd51d759 | 225 | INF OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r |
37078a63 | 226 | INF OvmfPkg/VirtioScsiDxe/VirtioScsi.inf\r |
b38ec3cd | 227 | INF OvmfPkg/VirtioRngDxe/VirtioRng.inf\r |
d9fdfd85 | 228 | INF OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf\r |
e65e8802 | 229 | INF OvmfPkg/XenBusDxe/XenBusDxe.inf\r |
de671da8 | 230 | INF OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf\r |
8cee3de7 | 231 | \r |
232 | !if $(SECURE_BOOT_ENABLE) == TRUE\r | |
8714a631 | 233 | INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf\r |
8cee3de7 | 234 | !endif\r |
235 | \r | |
49ba9447 | 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 | |
ba502ef4 | 243 | INF MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf\r |
79c098b6 RN |
244 | INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf\r |
245 | INF MdeModulePkg/Application/UiApp/UiApp.inf\r | |
49ba9447 | 246 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r |
86fef5b4 | 247 | INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf\r |
49ba9447 | 248 | INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r |
249 | INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r | |
00f18da1 | 250 | INF MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf\r |
49ba9447 | 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 | |
b82802b8 RJ |
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 | |
8ae3832d | 257 | INF MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf\r |
49ba9447 | 258 | INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r |
259 | INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r | |
56af21cb | 260 | INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r |
999a815e | 261 | INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf\r |
49ba9447 | 262 | \r |
56268870 | 263 | INF OvmfPkg/SioBusDxe/SioBusDxe.inf\r |
8f5e3a12 | 264 | !ifndef $(SOURCE_DEBUG_ENABLE)\r |
56268870 | 265 | INF MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf\r |
8f5e3a12 | 266 | !endif\r |
56268870 | 267 | INF MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf\r |
49ba9447 | 268 | \r |
fb511817 | 269 | INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf\r |
270 | INF OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf\r | |
271 | \r | |
49ba9447 | 272 | INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r |
7d2bd150 | 273 | INF OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf\r |
d40d3ba4 | 274 | INF RuleOverride=ACPITABLE OvmfPkg/AcpiTables/AcpiTables.inf\r |
b017b1b2 | 275 | INF MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf\r |
93900400 | 276 | INF MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf\r |
6e5e544f | 277 | INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf\r |
49ba9447 | 278 | \r |
aa47e529 | 279 | INF FatPkg/EnhancedFatDxe/Fat.inf\r |
f5566d15 | 280 | INF MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf\r |
345a0c8f | 281 | \r |
277a3958 | 282 | !if $(TOOL_CHAIN_TAG) != "XCODE5"\r |
984ba6a4 | 283 | INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf\r |
277a3958 | 284 | !endif\r |
345a0c8f | 285 | INF ShellPkg/Application/Shell/Shell.inf\r |
49ba9447 | 286 | \r |
ab970515 | 287 | INF MdeModulePkg/Logo/LogoDxe.inf\r |
7416f4eb | 288 | \r |
289 | #\r | |
290 | # Network modules\r | |
291 | #\r | |
7628b0f5 | 292 | !if $(E1000_ENABLE)\r |
7416f4eb | 293 | FILE DRIVER = 5D695E11-9B3F-4b83-B25F-4A8D5D69BE07 {\r |
253d81c7 | 294 | SECTION PE32 = Intel3.5/EFIX64/E3522X2.EFI\r |
7416f4eb | 295 | }\r |
7628b0f5 | 296 | !endif\r |
63119504 | 297 | !include NetworkPkg/Network.fdf.inc\r |
7a1f5947 | 298 | INF OvmfPkg/VirtioNetDxe/VirtioNet.inf\r |
689562cd | 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 | |
47e57f4f | 305 | INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf\r |
689562cd | 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 | |
4b3d663f | 310 | !ifdef $(CSM_ENABLE)\r |
3207a872 HW |
311 | INF OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf\r |
312 | INF OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf\r | |
4b3d663f | 313 | INF RuleOverride=CSM OvmfPkg/Csm/Csm16/Csm16.inf\r |
4b04d9d7 DW |
314 | !else\r |
315 | INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf\r | |
4b3d663f | 316 | !endif\r |
317 | \r | |
1d25ff51 | 318 | INF OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf\r |
b3eab015 | 319 | INF OvmfPkg/VirtioGpuDxe/VirtioGpu.inf\r |
d945a8ba | 320 | INF OvmfPkg/PlatformDxe/Platform.inf\r |
24e4ad75 | 321 | INF OvmfPkg/AmdSevDxe/AmdSevDxe.inf\r |
f9d129e6 | 322 | INF OvmfPkg/IoMmuDxe/IoMmuDxe.inf\r |
aadb1d09 | 323 | \r |
c5b7c805 LE |
324 | !if $(SMM_REQUIRE) == TRUE\r |
325 | INF OvmfPkg/SmmAccess/SmmAccess2Dxe.inf\r | |
c40e1a0c | 326 | INF OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf\r |
92b87f1c | 327 | INF UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf\r |
f25cb158 LE |
328 | INF MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf\r |
329 | INF MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf\r | |
8dbe742d | 330 | INF UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf\r |
67d86594 | 331 | INF MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf\r |
0d5d4205 | 332 | INF UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf\r |
c5b7c805 | 333 | \r |
1b0a8e62 | 334 | #\r |
46df0216 LE |
335 | # Variable driver stack (SMM)\r |
336 | #\r | |
337 | INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf\r | |
338 | INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf\r | |
339 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf\r | |
340 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf\r | |
341 | \r | |
342 | !else\r | |
343 | \r | |
344 | #\r | |
345 | # Variable driver stack (non-SMM)\r | |
1b0a8e62 LE |
346 | #\r |
347 | INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf\r | |
348 | INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf\r | |
349 | INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r | |
350 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r | |
46df0216 | 351 | !endif\r |
1b0a8e62 | 352 | \r |
0c0a50d6 MAL |
353 | !if $(TPM2_ENABLE) == TRUE\r |
354 | INF SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf\r | |
31033890 SB |
355 | !if $(TPM2_CONFIG_ENABLE) == TRUE\r |
356 | INF SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf\r | |
357 | !endif\r | |
0c0a50d6 MAL |
358 | !endif\r |
359 | \r | |
49ba9447 | 360 | ################################################################################\r |
361 | \r | |
76d428b1 | 362 | [FV.FVMAIN_COMPACT]\r |
16f26de6 | 363 | FvNameGuid = 48DB5E17-707C-472D-91CD-1613E7EF51B0\r |
49ba9447 | 364 | FvAlignment = 16\r |
365 | ERASE_POLARITY = 1\r | |
366 | MEMORY_MAPPED = TRUE\r | |
367 | STICKY_WRITE = TRUE\r | |
368 | LOCK_CAP = TRUE\r | |
369 | LOCK_STATUS = TRUE\r | |
370 | WRITE_DISABLED_CAP = TRUE\r | |
371 | WRITE_ENABLED_CAP = TRUE\r | |
372 | WRITE_STATUS = TRUE\r | |
373 | WRITE_LOCK_CAP = TRUE\r | |
374 | WRITE_LOCK_STATUS = TRUE\r | |
375 | READ_DISABLED_CAP = TRUE\r | |
376 | READ_ENABLED_CAP = TRUE\r | |
377 | READ_STATUS = TRUE\r | |
378 | READ_LOCK_CAP = TRUE\r | |
379 | READ_LOCK_STATUS = TRUE\r | |
380 | \r | |
76d428b1 | 381 | FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {\r |
eaf4f336 | 382 | SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {\r |
b36f701d JJ |
383 | #\r |
384 | # These firmware volumes will have files placed in them uncompressed,\r | |
385 | # and then both firmware volumes will be compressed in a single\r | |
386 | # compression operation in order to achieve better overall compression.\r | |
387 | #\r | |
388 | SECTION FV_IMAGE = PEIFV\r | |
389 | SECTION FV_IMAGE = DXEFV\r | |
eaf4f336 | 390 | }\r |
391 | }\r | |
392 | \r | |
9beac0d8 LE |
393 | !include DecomprScratchEnd.fdf.inc\r |
394 | \r | |
49ba9447 | 395 | ################################################################################\r |
396 | \r | |
49ba9447 | 397 | [Rule.Common.SEC]\r |
398 | FILE SEC = $(NAMED_GUID) {\r | |
2014a81a | 399 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r |
49ba9447 | 400 | UI STRING ="$(MODULE_NAME)" Optional\r |
401 | VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r | |
402 | }\r | |
403 | \r | |
76d428b1 | 404 | [Rule.Common.PEI_CORE]\r |
405 | FILE PEI_CORE = $(NAMED_GUID) {\r | |
55e96f9c | 406 | PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi\r |
76d428b1 | 407 | UI STRING ="$(MODULE_NAME)" Optional\r |
408 | VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r | |
d40d3ba4 | 409 | }\r |
410 | \r | |
49ba9447 | 411 | [Rule.Common.PEIM]\r |
412 | FILE PEIM = $(NAMED_GUID) {\r | |
2014a81a | 413 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r |
55e96f9c | 414 | PE32 PE32 Align=Auto $(INF_OUTPUT)/$(MODULE_NAME).efi\r |
49ba9447 | 415 | UI STRING="$(MODULE_NAME)" Optional\r |
416 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r | |
417 | }\r | |
418 | \r | |
49ba9447 | 419 | [Rule.Common.DXE_CORE]\r |
420 | FILE DXE_CORE = $(NAMED_GUID) {\r | |
2014a81a | 421 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r |
49ba9447 | 422 | UI STRING="$(MODULE_NAME)" Optional\r |
423 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r | |
424 | }\r | |
425 | \r | |
76d428b1 | 426 | [Rule.Common.DXE_DRIVER]\r |
49ba9447 | 427 | FILE DRIVER = $(NAMED_GUID) {\r |
2014a81a LG |
428 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r |
429 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r | |
49ba9447 | 430 | UI STRING="$(MODULE_NAME)" Optional\r |
431 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r | |
259d8714 HW |
432 | RAW ACPI Optional |.acpi\r |
433 | RAW ASL Optional |.aml\r | |
49ba9447 | 434 | }\r |
435 | \r | |
76d428b1 | 436 | [Rule.Common.DXE_RUNTIME_DRIVER]\r |
49ba9447 | 437 | FILE DRIVER = $(NAMED_GUID) {\r |
2014a81a LG |
438 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r |
439 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r | |
49ba9447 | 440 | UI STRING="$(MODULE_NAME)" Optional\r |
441 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r | |
442 | }\r | |
443 | \r | |
76d428b1 | 444 | [Rule.Common.UEFI_DRIVER]\r |
49ba9447 | 445 | FILE DRIVER = $(NAMED_GUID) {\r |
2014a81a LG |
446 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r |
447 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r | |
49ba9447 | 448 | UI STRING="$(MODULE_NAME)" Optional\r |
449 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r | |
450 | }\r | |
451 | \r | |
7a743a2c | 452 | [Rule.Common.UEFI_DRIVER.BINARY]\r |
3b33c6d6 | 453 | FILE DRIVER = $(NAMED_GUID) {\r |
7a743a2c | 454 | DXE_DEPEX DXE_DEPEX Optional |.depex\r |
455 | PE32 PE32 |.efi\r | |
456 | UI STRING="$(MODULE_NAME)" Optional\r | |
457 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r | |
458 | }\r | |
8c71ec8f | 459 | \r |
49ba9447 | 460 | [Rule.Common.UEFI_APPLICATION]\r |
461 | FILE APPLICATION = $(NAMED_GUID) {\r | |
2014a81a | 462 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r |
49ba9447 | 463 | UI STRING="$(MODULE_NAME)" Optional\r |
464 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r | |
465 | }\r | |
466 | \r | |
7a743a2c | 467 | [Rule.Common.UEFI_APPLICATION.BINARY]\r |
468 | FILE APPLICATION = $(NAMED_GUID) {\r | |
469 | PE32 PE32 |.efi\r | |
470 | UI STRING="$(MODULE_NAME)" Optional\r | |
471 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r | |
472 | }\r | |
8c71ec8f | 473 | \r |
48889990 | 474 | [Rule.Common.USER_DEFINED.ACPITABLE]\r |
49ba9447 | 475 | FILE FREEFORM = $(NAMED_GUID) {\r |
d40d3ba4 | 476 | RAW ACPI |.acpi\r |
477 | RAW ASL |.aml\r | |
49ba9447 | 478 | }\r |
479 | \r | |
4b3d663f | 480 | [Rule.Common.USER_DEFINED.CSM]\r |
481 | FILE FREEFORM = $(NAMED_GUID) {\r | |
482 | RAW BIN |.bin\r | |
483 | }\r | |
484 | \r | |
7416f4eb | 485 | [Rule.Common.SEC.RESET_VECTOR]\r |
486 | FILE RAW = $(NAMED_GUID) {\r | |
497cbb53 | 487 | RAW BIN Align = 16 |.bin\r |
7416f4eb | 488 | }\r |
f25cb158 LE |
489 | \r |
490 | [Rule.Common.SMM_CORE]\r | |
491 | FILE SMM_CORE = $(NAMED_GUID) {\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 | |
8dbe742d LE |
496 | \r |
497 | [Rule.Common.DXE_SMM_DRIVER]\r | |
498 | FILE SMM = $(NAMED_GUID) {\r | |
499 | SMM_DEPEX SMM_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\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 |