1 | ## @file
|
---|
2 | # Open Virtual Machine Firmware: FDF
|
---|
3 | #
|
---|
4 | # Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
---|
5 | #
|
---|
6 | # This program and the accompanying materials
|
---|
7 | # are licensed and made available under the terms and conditions of the BSD License
|
---|
8 | # which accompanies this distribution. The full text of the license may be found at
|
---|
9 | # http://opensource.org/licenses/bsd-license.php
|
---|
10 | #
|
---|
11 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
---|
12 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
---|
13 | #
|
---|
14 | ##
|
---|
15 |
|
---|
16 | ################################################################################
|
---|
17 |
|
---|
18 | #
|
---|
19 | # Default flash size for DEBUG build is 2MB. For RELEASE it is 1MB.
|
---|
20 | #
|
---|
21 | # Defining FD_SIZE_1MB or FD_SIZE_2MB on the build command line can
|
---|
22 | # override this.
|
---|
23 | #
|
---|
24 | [Defines]
|
---|
25 | !if $(TARGET) == RELEASE
|
---|
26 | !ifndef $(FD_SIZE_2MB)
|
---|
27 | DEFINE FD_SIZE_1MB=
|
---|
28 | !endif
|
---|
29 | !endif
|
---|
30 |
|
---|
31 | !include OvmfPkg.fdf.inc
|
---|
32 |
|
---|
33 | #
|
---|
34 | # Build the variable store and the firmware code as one unified flash device
|
---|
35 | # image.
|
---|
36 | #
|
---|
37 | [FD.OVMF]
|
---|
38 | BaseAddress = $(FW_BASE_ADDRESS)
|
---|
39 | Size = $(FW_SIZE)
|
---|
40 | ErasePolarity = 1
|
---|
41 | BlockSize = $(BLOCK_SIZE)
|
---|
42 | NumBlocks = $(FW_BLOCKS)
|
---|
43 |
|
---|
44 | !include VarStore.fdf.inc
|
---|
45 |
|
---|
46 | $(VARS_SIZE)|$(FVMAIN_SIZE)
|
---|
47 | FV = FVMAIN_COMPACT
|
---|
48 |
|
---|
49 | $(SECFV_OFFSET)|$(SECFV_SIZE)
|
---|
50 | FV = SECFV
|
---|
51 |
|
---|
52 | #
|
---|
53 | # Build the variable store and the firmware code as separate flash device
|
---|
54 | # images.
|
---|
55 | #
|
---|
56 | [FD.OVMF_VARS]
|
---|
57 | BaseAddress = $(FW_BASE_ADDRESS)
|
---|
58 | Size = $(VARS_SIZE)
|
---|
59 | ErasePolarity = 1
|
---|
60 | BlockSize = $(BLOCK_SIZE)
|
---|
61 | NumBlocks = $(VARS_BLOCKS)
|
---|
62 |
|
---|
63 | !include VarStore.fdf.inc
|
---|
64 |
|
---|
65 | [FD.OVMF_CODE]
|
---|
66 | BaseAddress = $(CODE_BASE_ADDRESS)
|
---|
67 | Size = $(CODE_SIZE)
|
---|
68 | ErasePolarity = 1
|
---|
69 | BlockSize = $(BLOCK_SIZE)
|
---|
70 | NumBlocks = $(CODE_BLOCKS)
|
---|
71 |
|
---|
72 | 0x00000000|$(FVMAIN_SIZE)
|
---|
73 | FV = FVMAIN_COMPACT
|
---|
74 |
|
---|
75 | $(FVMAIN_SIZE)|$(SECFV_SIZE)
|
---|
76 | FV = SECFV
|
---|
77 |
|
---|
78 | ################################################################################
|
---|
79 |
|
---|
80 | [FD.MEMFD]
|
---|
81 | !ifndef $(VBOX)
|
---|
82 | BaseAddress = 0x800000
|
---|
83 | !else
|
---|
84 | # Need to relocate this or it interferes with certain OS X bootloaders breaking OS X guests
|
---|
85 | BaseAddress = 0x2000000
|
---|
86 | !endif
|
---|
87 | Size = 0x900000
|
---|
88 | ErasePolarity = 1
|
---|
89 | BlockSize = 0x10000
|
---|
90 | NumBlocks = 0x90
|
---|
91 |
|
---|
92 | 0x000000|0x006000
|
---|
93 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesSize
|
---|
94 |
|
---|
95 | 0x006000|0x001000
|
---|
96 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageSize
|
---|
97 |
|
---|
98 | 0x007000|0x001000
|
---|
99 | gEfiMdePkgTokenSpaceGuid.PcdGuidedExtractHandlerTableAddress|gUefiOvmfPkgTokenSpaceGuid.PcdGuidedExtractHandlerTableSize
|
---|
100 |
|
---|
101 | 0x010000|0x008000
|
---|
102 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize
|
---|
103 |
|
---|
104 | 0x018000|0x008000
|
---|
105 | gUefiOvmfPkgTokenSpaceGuid.PcdS3AcpiReservedMemoryBase|gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdS3AcpiReservedMemorySize
|
---|
106 |
|
---|
107 | 0x020000|0x0E0000
|
---|
108 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvSize
|
---|
109 | FV = PEIFV
|
---|
110 |
|
---|
111 | 0x100000|0x800000
|
---|
112 | gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase|gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvSize
|
---|
113 | FV = DXEFV
|
---|
114 |
|
---|
115 | ################################################################################
|
---|
116 |
|
---|
117 | [FV.SECFV]
|
---|
118 | BlockSize = 0x1000
|
---|
119 | FvAlignment = 16
|
---|
120 | ERASE_POLARITY = 1
|
---|
121 | MEMORY_MAPPED = TRUE
|
---|
122 | STICKY_WRITE = TRUE
|
---|
123 | LOCK_CAP = TRUE
|
---|
124 | LOCK_STATUS = TRUE
|
---|
125 | WRITE_DISABLED_CAP = TRUE
|
---|
126 | WRITE_ENABLED_CAP = TRUE
|
---|
127 | WRITE_STATUS = TRUE
|
---|
128 | WRITE_LOCK_CAP = TRUE
|
---|
129 | WRITE_LOCK_STATUS = TRUE
|
---|
130 | READ_DISABLED_CAP = TRUE
|
---|
131 | READ_ENABLED_CAP = TRUE
|
---|
132 | READ_STATUS = TRUE
|
---|
133 | READ_LOCK_CAP = TRUE
|
---|
134 | READ_LOCK_STATUS = TRUE
|
---|
135 |
|
---|
136 | #
|
---|
137 | # SEC Phase modules
|
---|
138 | #
|
---|
139 | # The code in this FV handles the initial firmware startup, and
|
---|
140 | # decompresses the PEI and DXE FVs which handles the rest of the boot sequence.
|
---|
141 | #
|
---|
142 | INF OvmfPkg/Sec/SecMain.inf
|
---|
143 |
|
---|
144 | INF RuleOverride=RESET_VECTOR OvmfPkg/ResetVector/ResetVector.inf
|
---|
145 |
|
---|
146 | ################################################################################
|
---|
147 | [FV.PEIFV]
|
---|
148 | BlockSize = 0x10000
|
---|
149 | FvAlignment = 16
|
---|
150 | ERASE_POLARITY = 1
|
---|
151 | MEMORY_MAPPED = TRUE
|
---|
152 | STICKY_WRITE = TRUE
|
---|
153 | LOCK_CAP = TRUE
|
---|
154 | LOCK_STATUS = TRUE
|
---|
155 | WRITE_DISABLED_CAP = TRUE
|
---|
156 | WRITE_ENABLED_CAP = TRUE
|
---|
157 | WRITE_STATUS = TRUE
|
---|
158 | WRITE_LOCK_CAP = TRUE
|
---|
159 | WRITE_LOCK_STATUS = TRUE
|
---|
160 | READ_DISABLED_CAP = TRUE
|
---|
161 | READ_ENABLED_CAP = TRUE
|
---|
162 | READ_STATUS = TRUE
|
---|
163 | READ_LOCK_CAP = TRUE
|
---|
164 | READ_LOCK_STATUS = TRUE
|
---|
165 |
|
---|
166 | APRIORI PEI {
|
---|
167 | INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
|
---|
168 | }
|
---|
169 |
|
---|
170 | #
|
---|
171 | # PEI Phase modules
|
---|
172 | #
|
---|
173 | INF MdeModulePkg/Core/Pei/PeiMain.inf
|
---|
174 | INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
|
---|
175 | INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
|
---|
176 | INF OvmfPkg/PlatformPei/PlatformPei.inf
|
---|
177 | INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
|
---|
178 | INF UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
|
---|
179 |
|
---|
180 | ################################################################################
|
---|
181 |
|
---|
182 | [FV.DXEFV]
|
---|
183 | BlockSize = 0x10000
|
---|
184 | FvAlignment = 16
|
---|
185 | ERASE_POLARITY = 1
|
---|
186 | MEMORY_MAPPED = TRUE
|
---|
187 | STICKY_WRITE = TRUE
|
---|
188 | LOCK_CAP = TRUE
|
---|
189 | LOCK_STATUS = TRUE
|
---|
190 | WRITE_DISABLED_CAP = TRUE
|
---|
191 | WRITE_ENABLED_CAP = TRUE
|
---|
192 | WRITE_STATUS = TRUE
|
---|
193 | WRITE_LOCK_CAP = TRUE
|
---|
194 | WRITE_LOCK_STATUS = TRUE
|
---|
195 | READ_DISABLED_CAP = TRUE
|
---|
196 | READ_ENABLED_CAP = TRUE
|
---|
197 | READ_STATUS = TRUE
|
---|
198 | READ_LOCK_CAP = TRUE
|
---|
199 | READ_LOCK_STATUS = TRUE
|
---|
200 |
|
---|
201 | APRIORI DXE {
|
---|
202 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
|
---|
203 | INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
|
---|
204 | INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
|
---|
205 | }
|
---|
206 |
|
---|
207 | #
|
---|
208 | # DXE Phase modules
|
---|
209 | #
|
---|
210 | INF MdeModulePkg/Core/Dxe/DxeMain.inf
|
---|
211 |
|
---|
212 | INF IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
|
---|
213 | INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
|
---|
214 |
|
---|
215 | INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
|
---|
216 | INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
|
---|
217 | INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
|
---|
218 | INF PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
|
---|
219 | INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
|
---|
220 | INF UefiCpuPkg/CpuDxe/CpuDxe.inf
|
---|
221 | INF PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
|
---|
222 | INF PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
|
---|
223 | INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
|
---|
224 | INF PcAtChipsetPkg/KbcResetDxe/Reset.inf
|
---|
225 | INF MdeModulePkg/Universal/Metronome/Metronome.inf
|
---|
226 | INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
|
---|
227 |
|
---|
228 | INF OvmfPkg/BlockMmioToBlockIoDxe/BlockIo.inf
|
---|
229 | INF OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
|
---|
230 | !ifndef $(VBOX)
|
---|
231 | INF OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
|
---|
232 | INF OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
|
---|
233 | INF OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
|
---|
234 | !endif
|
---|
235 | INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
|
---|
236 | !ifndef $(VBOX)
|
---|
237 | INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
|
---|
238 | !if $(SECURE_BOOT_ENABLE) == TRUE
|
---|
239 | INF SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableRuntimeDxe.inf
|
---|
240 | INF OvmfPkg/SecureBootConfigDxe/SecureBootConfigDxe.inf
|
---|
241 | !else
|
---|
242 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
|
---|
243 | !endif
|
---|
244 | !else
|
---|
245 | INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
|
---|
246 | !endif
|
---|
247 | INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
|
---|
248 | INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
|
---|
249 | INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
|
---|
250 | INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
|
---|
251 | INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
|
---|
252 | INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
|
---|
253 | INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
|
---|
254 | INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
|
---|
255 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
|
---|
256 | INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
|
---|
257 | INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
|
---|
258 | INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
|
---|
259 | INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
|
---|
260 | INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
|
---|
261 | INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
|
---|
262 | !ifndef $(VBOX)
|
---|
263 | INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
|
---|
264 | !endif
|
---|
265 | INF PcAtChipsetPkg/Bus/Pci/IdeControllerDxe/IdeControllerDxe.inf
|
---|
266 | INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
|
---|
267 | INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
|
---|
268 | INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
|
---|
269 | INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
|
---|
270 |
|
---|
271 | !ifdef $(VBOX)
|
---|
272 | INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
|
---|
273 | INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
|
---|
274 | INF MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
|
---|
275 | INF VBoxPkg/VBoxVgaMiniPortDxe/VBoxVgaMiniPortDxe.inf
|
---|
276 | INF VBoxPkg/VBoxVgaDxe/VBoxVgaDxe.inf
|
---|
277 | INF VBoxPkg/VBoxFsDxe/VBoxIso9660.inf
|
---|
278 | INF VBoxPkg/VBoxFsDxe/VBoxHfs.inf
|
---|
279 | INF VBoxPkg/VBoxSysTables/VBoxSysTables.inf
|
---|
280 | INF VBoxPkg/VBoxAppleSim/VBoxAppleSim.inf
|
---|
281 | # we need it for VBoxAppleSim
|
---|
282 | INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
|
---|
283 | INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
|
---|
284 | INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
|
---|
285 | !endif
|
---|
286 |
|
---|
287 | INF PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
|
---|
288 | INF IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
|
---|
289 | INF IntelFrameworkModulePkg/Bus/Isa/IsaIoDxe/IsaIoDxe.inf
|
---|
290 |
|
---|
291 | !ifndef $(SOURCE_DEBUG_ENABLE)
|
---|
292 | INF IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
|
---|
293 | !endif
|
---|
294 |
|
---|
295 | INF IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
|
---|
296 | INF IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
|
---|
297 |
|
---|
298 | INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
|
---|
299 | INF OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
|
---|
300 |
|
---|
301 | !ifndef $(VBOX)
|
---|
302 | INF OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
|
---|
303 | INF RuleOverride=ACPITABLE OvmfPkg/AcpiTables/AcpiTables.inf
|
---|
304 | INF OvmfPkg/AcpiS3SaveDxe/AcpiS3SaveDxe.inf
|
---|
305 | INF MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
|
---|
306 | INF MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
|
---|
307 | !else
|
---|
308 | INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
|
---|
309 | INF MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
|
---|
310 | !endif
|
---|
311 |
|
---|
312 | INF RuleOverride = BINARY FatBinPkg/EnhancedFatDxe/Fat.inf
|
---|
313 |
|
---|
314 | !ifndef $(USE_OLD_SHELL)
|
---|
315 | INF ShellPkg/Application/Shell/Shell.inf
|
---|
316 | !else
|
---|
317 | INF RuleOverride = BINARY EdkShellBinPkg/FullShell/FullShell.inf
|
---|
318 | !endif
|
---|
319 |
|
---|
320 | FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
|
---|
321 | !ifndef $(VBOX)
|
---|
322 | SECTION RAW = MdeModulePkg/Logo/Logo.bmp
|
---|
323 | !else
|
---|
324 | !ifndef $(VBOX_OSE)
|
---|
325 | SECTION RAW = $(VBOX_PATH_ROOT)/src/VBox/Devices/Graphics/BIOS/puel_logo.bmp
|
---|
326 | !else
|
---|
327 | SECTION RAW = $(VBOX_PATH_ROOT)/src/VBox/Devices/Graphics/BIOS/ose_logo2.bmp
|
---|
328 | !endif
|
---|
329 | !endif
|
---|
330 | }
|
---|
331 |
|
---|
332 | #
|
---|
333 | # Network modules
|
---|
334 | #
|
---|
335 | !if $(E1000_ENABLE)
|
---|
336 | FILE DRIVER = 5D695E11-9B3F-4b83-B25F-4A8D5D69BE07 {
|
---|
337 | SECTION PE32 = Intel3.5/EFIX64/E3507X2.EFI
|
---|
338 | }
|
---|
339 | !endif
|
---|
340 | INF MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
|
---|
341 | INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
|
---|
342 | INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
|
---|
343 | INF MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
|
---|
344 | INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
|
---|
345 | INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
|
---|
346 | INF MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
|
---|
347 | INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
|
---|
348 | INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
|
---|
349 | INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
|
---|
350 | INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
|
---|
351 | INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
|
---|
352 | INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
|
---|
353 | INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
|
---|
354 |
|
---|
355 | #
|
---|
356 | # Usb Support
|
---|
357 | #
|
---|
358 | !ifndef $(VBOX)
|
---|
359 | INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
|
---|
360 | !else
|
---|
361 | INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
|
---|
362 | INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
|
---|
363 | !endif
|
---|
364 | INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
|
---|
365 | INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
|
---|
366 | INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
|
---|
367 |
|
---|
368 | !ifdef $(CSM_ENABLE)
|
---|
369 | INF IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf
|
---|
370 | INF IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
|
---|
371 | INF RuleOverride=CSM OvmfPkg/Csm/Csm16/Csm16.inf
|
---|
372 | !endif
|
---|
373 |
|
---|
374 | !ifndef $(VBOX)
|
---|
375 | INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
|
---|
376 | !endif
|
---|
377 | INF OvmfPkg/PlatformDxe/Platform.inf
|
---|
378 |
|
---|
379 | ################################################################################
|
---|
380 |
|
---|
381 | [FV.FVMAIN_COMPACT]
|
---|
382 | FvAlignment = 16
|
---|
383 | ERASE_POLARITY = 1
|
---|
384 | MEMORY_MAPPED = TRUE
|
---|
385 | STICKY_WRITE = TRUE
|
---|
386 | LOCK_CAP = TRUE
|
---|
387 | LOCK_STATUS = TRUE
|
---|
388 | WRITE_DISABLED_CAP = TRUE
|
---|
389 | WRITE_ENABLED_CAP = TRUE
|
---|
390 | WRITE_STATUS = TRUE
|
---|
391 | WRITE_LOCK_CAP = TRUE
|
---|
392 | WRITE_LOCK_STATUS = TRUE
|
---|
393 | READ_DISABLED_CAP = TRUE
|
---|
394 | READ_ENABLED_CAP = TRUE
|
---|
395 | READ_STATUS = TRUE
|
---|
396 | READ_LOCK_CAP = TRUE
|
---|
397 | READ_LOCK_STATUS = TRUE
|
---|
398 |
|
---|
399 | FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
|
---|
400 | SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
|
---|
401 | #
|
---|
402 | # These firmware volumes will have files placed in them uncompressed,
|
---|
403 | # and then both firmware volumes will be compressed in a single
|
---|
404 | # compression operation in order to achieve better overall compression.
|
---|
405 | #
|
---|
406 | SECTION FV_IMAGE = PEIFV
|
---|
407 | SECTION FV_IMAGE = DXEFV
|
---|
408 | }
|
---|
409 | }
|
---|
410 |
|
---|
411 | ################################################################################
|
---|
412 |
|
---|
413 | [Rule.Common.SEC]
|
---|
414 | FILE SEC = $(NAMED_GUID) {
|
---|
415 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
416 | UI STRING ="$(MODULE_NAME)" Optional
|
---|
417 | VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
418 | }
|
---|
419 |
|
---|
420 | [Rule.Common.PEI_CORE]
|
---|
421 | FILE PEI_CORE = $(NAMED_GUID) {
|
---|
422 | PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
423 | UI STRING ="$(MODULE_NAME)" Optional
|
---|
424 | VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
425 | }
|
---|
426 |
|
---|
427 | [Rule.Common.PEIM]
|
---|
428 | FILE PEIM = $(NAMED_GUID) {
|
---|
429 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
430 | PE32 PE32 Align=32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
431 | UI STRING="$(MODULE_NAME)" Optional
|
---|
432 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
433 | }
|
---|
434 |
|
---|
435 | [Rule.Common.DXE_CORE]
|
---|
436 | FILE DXE_CORE = $(NAMED_GUID) {
|
---|
437 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
438 | UI STRING="$(MODULE_NAME)" Optional
|
---|
439 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
440 | }
|
---|
441 |
|
---|
442 | [Rule.Common.DXE_DRIVER]
|
---|
443 | FILE DRIVER = $(NAMED_GUID) {
|
---|
444 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
445 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
446 | UI STRING="$(MODULE_NAME)" Optional
|
---|
447 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
448 | }
|
---|
449 |
|
---|
450 | [Rule.Common.DXE_RUNTIME_DRIVER]
|
---|
451 | FILE DRIVER = $(NAMED_GUID) {
|
---|
452 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
453 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
454 | UI STRING="$(MODULE_NAME)" Optional
|
---|
455 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
456 | }
|
---|
457 |
|
---|
458 | [Rule.Common.UEFI_DRIVER]
|
---|
459 | FILE DRIVER = $(NAMED_GUID) {
|
---|
460 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
|
---|
461 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
462 | UI STRING="$(MODULE_NAME)" Optional
|
---|
463 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
464 | }
|
---|
465 |
|
---|
466 | [Rule.Common.UEFI_DRIVER.BINARY]
|
---|
467 | FILE DRIVER = $(NAMED_GUID) {
|
---|
468 | DXE_DEPEX DXE_DEPEX Optional |.depex
|
---|
469 | PE32 PE32 |.efi
|
---|
470 | UI STRING="$(MODULE_NAME)" Optional
|
---|
471 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
472 | }
|
---|
473 |
|
---|
474 | [Rule.Common.UEFI_APPLICATION]
|
---|
475 | FILE APPLICATION = $(NAMED_GUID) {
|
---|
476 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
|
---|
477 | UI STRING="$(MODULE_NAME)" Optional
|
---|
478 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
479 | }
|
---|
480 |
|
---|
481 | [Rule.Common.UEFI_APPLICATION.BINARY]
|
---|
482 | FILE APPLICATION = $(NAMED_GUID) {
|
---|
483 | PE32 PE32 |.efi
|
---|
484 | UI STRING="$(MODULE_NAME)" Optional
|
---|
485 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
|
---|
486 | }
|
---|
487 |
|
---|
488 | [Rule.Common.USER_DEFINED.ACPITABLE]
|
---|
489 | FILE FREEFORM = $(NAMED_GUID) {
|
---|
490 | RAW ACPI |.acpi
|
---|
491 | RAW ASL |.aml
|
---|
492 | }
|
---|
493 |
|
---|
494 | [Rule.Common.USER_DEFINED.CSM]
|
---|
495 | FILE FREEFORM = $(NAMED_GUID) {
|
---|
496 | RAW BIN |.bin
|
---|
497 | }
|
---|
498 |
|
---|
499 | [Rule.Common.SEC.RESET_VECTOR]
|
---|
500 | FILE RAW = $(NAMED_GUID) {
|
---|
501 | RAW BIN Align = 16 |.bin
|
---|
502 | }
|
---|