VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/OvmfPkgX64.dsc@ 58839

最後變更 在這個檔案從58839是 58839,由 vboxsync 提交於 9 年 前

EFI/Firmware: Include new logo and enable BGRT support so supporting guests will display it during boot

  • 屬性 svn:eol-style 設為 native
檔案大小: 28.9 KB
 
1## @file
2# EFI/Framework Open Virtual Machine Firmware (OVMF) platform
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# Defines Section - statements that will be processed to create a Makefile.
19#
20################################################################################
21[Defines]
22 PLATFORM_NAME = Ovmf
23 PLATFORM_GUID = 5a9e7754-d81b-49ea-85ad-69eaa7b1539b
24 PLATFORM_VERSION = 0.1
25 DSC_SPECIFICATION = 0x00010005
26!ifndef $(VBOX_OUTPUT_BASE_DIR)
27 OUTPUT_DIRECTORY = Build/OvmfX64
28!else
29 OUTPUT_DIRECTORY = $(VBOX_OUTPUT_BASE_DIR)/amd64
30!endif
31 SUPPORTED_ARCHITECTURES = X64
32 BUILD_TARGETS = DEBUG|RELEASE
33 SKUID_IDENTIFIER = DEFAULT
34 FLASH_DEFINITION = OvmfPkg/OvmfPkgX64.fdf
35
36 #
37 # Defines for default states. These can be changed on the command line.
38 # -D FLAG=VALUE
39 #
40 DEFINE SECURE_BOOT_ENABLE = FALSE
41
42[BuildOptions]
43 GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
44 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
45 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
46 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
47 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
48!ifdef $(SOURCE_DEBUG_ENABLE)
49 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
50 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
51 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
52!endif
53
54!ifdef $(VBOX)
55[BuildOptions.Ia32]
56 GCC:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=32 -DHC_ARCH_BITS=32 -DVBOX_REV=$(VBOX_REV)
57 MSFT:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=32 -DHC_ARCH_BITS=32 -DVBOX_REV=$(VBOX_REV)
58 INTEL:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=32 -DHC_ARCH_BITS=32 -DVBOX_REV=$(VBOX_REV)
59[BuildOptions.X64]
60 GCC:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=64 -DHC_ARCH_BITS=64 -DVBOX_REV=$(VBOX_REV)
61 MSFT:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=64 -DHC_ARCH_BITS=64 -DVBOX_REV=$(VBOX_REV)
62 INTEL:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=64 -DHC_ARCH_BITS=64 -DVBOX_REV=$(VBOX_REV)
63!endif
64
65################################################################################
66#
67# SKU Identification section - list of all SKU IDs supported by this Platform.
68#
69################################################################################
70[SkuIds]
71 0|DEFAULT
72
73################################################################################
74#
75# Library Class section - list of all Library Classes needed by this Platform.
76#
77################################################################################
78[LibraryClasses]
79 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
80 TimerLib|OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
81 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
82 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
83 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
84 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
85 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
86 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
87!ifndef $(VBOX)
88 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
89!else
90 PeCoffLib|VBoxPkg/Library/VBoxPeCoffLib/VBoxPeCoffLib.inf
91!endif
92 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
93 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
94 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
95 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
96 GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
97 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
98 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
99 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
100 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
101 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
102 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
103 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
104 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
105 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
106 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
107 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
108 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
109 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
110 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
111 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
112 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
113 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
114 FileHandleLib|ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
115 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
116 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
117 NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
118 IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
119 UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
120 DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
121 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
122 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
123 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf
124 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
125 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
126 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
127 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
128
129!ifdef $(VBOX)
130 PeCoffExtraActionLib|VBoxPkg/Library/VBoxPeCoffExtraActionLib/VBoxPeCoffExtraActionLib.inf
131 DebugAgentLib|VBoxPkg/Library/VBoxDebugAgentLib/VBoxDebugAgentLib.inf
132!else
133!ifdef $(SOURCE_DEBUG_ENABLE)
134 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
135 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
136!else
137 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
138 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
139!endif
140!endif
141
142 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/ResetSystemLib.inf
143 LocalApicLib|UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf
144 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
145
146!if $(SECURE_BOOT_ENABLE) == TRUE
147 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
148 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
149 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
150 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
151!endif
152
153 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
154 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
155
156[LibraryClasses.common]
157!if $(SECURE_BOOT_ENABLE) == TRUE
158 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
159!endif
160
161[LibraryClasses.common.SEC]
162!ifndef $(VBOX)
163 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
164!ifdef $(DEBUG_ON_SERIAL_PORT)
165 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
166!else
167 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
168!endif
169!else
170 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
171!endif
172 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
173 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
174!ifdef $(VBOX)
175!ifdef $(SOURCE_DEBUG_ENABLE)
176 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
177!endif
178!endif
179 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
180 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
181 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
182 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
183 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
184
185[LibraryClasses.common.PEI_CORE]
186 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
187 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
188 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
189 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
190 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
191 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
192 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
193 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
194!ifndef $(VBOX)
195 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
196 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
197!else
198 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
199 PeCoffLib|VBoxPkg/Library/VBoxPeCoffLib/VBoxPeCoffLib.inf
200!endif
201
202[LibraryClasses.common.PEIM]
203 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
204 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
205 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
206 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
207 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
208 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
209 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
210 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
211!ifndef $(VBOX)
212!ifdef $(DEBUG_ON_SERIAL_PORT)
213 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
214!else
215 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
216!endif
217 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
218!else
219 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
220 PeCoffLib|VBoxPkg/Library/VBoxPeCoffLib/VBoxPeCoffLib.inf
221!endif
222 PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
223 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
224!ifdef $(VBOX)
225!ifdef $(SOURCE_DEBUG_ENABLE)
226 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
227!endif
228!endif
229
230[LibraryClasses.common.DXE_CORE]
231 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
232 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
233 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
234 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
235!ifndef $(VBOX)
236!ifdef $(DEBUG_ON_SERIAL_PORT)
237 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
238!else
239 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
240!endif
241!else
242 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
243!endif
244 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
245 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
246!ifdef $(SOURCE_DEBUG_ENABLE)
247 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
248!endif
249 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
250
251[LibraryClasses.common.DXE_RUNTIME_DRIVER]
252 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
253 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
254 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
255 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
256!ifndef $(VBOX)
257!ifdef $(DEBUG_ON_SERIAL_PORT)
258 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
259!else
260 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
261!endif
262!else
263 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
264!endif
265 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
266 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
267!if $(SECURE_BOOT_ENABLE) == TRUE
268 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
269!endif
270
271[LibraryClasses.common.UEFI_DRIVER]
272 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
273 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
274 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
275 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
276!ifndef $(VBOX)
277!ifdef $(DEBUG_ON_SERIAL_PORT)
278 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
279!else
280 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
281!endif
282!else
283 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
284!endif
285 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
286 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
287
288[LibraryClasses.common.DXE_DRIVER]
289 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
290 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
291 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
292 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
293 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
294!ifndef $(VBOX)
295!ifdef $(DEBUG_ON_SERIAL_PORT)
296 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
297!else
298 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
299!endif
300!else
301 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
302!endif
303 NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
304 IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
305 UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
306 DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
307 PlatformBdsLib|OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf
308 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
309 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
310!ifdef $(SOURCE_DEBUG_ENABLE)
311 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
312!endif
313
314[LibraryClasses.common.UEFI_APPLICATION]
315 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
316 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
317!ifndef $(VBOX)
318!ifdef $(DEBUG_ON_SERIAL_PORT)
319 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
320!else
321 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
322!endif
323!else
324 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
325!endif
326
327################################################################################
328#
329# Pcd Section - list of all EDK II PCD Entries defined by this Platform.
330#
331################################################################################
332[PcdsFeatureFlag]
333 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
334 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
335 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
336 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
337 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
338 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
339!if $(SECURE_BOOT_ENABLE) == TRUE
340 gUefiOvmfPkgTokenSpaceGuid.PcdSecureBootEnable|TRUE
341!endif
342!ifdef $(VBOX)
343 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeReplayIn|FALSE
344 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
345!endif
346
347[PcdsFixedAtBuild]
348 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
349 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
350 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
351 gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxFvSupported|6
352 gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxPeimPerFv|32
353 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
354 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
355 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
356
357 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
358
359 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
360 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
361!ifdef $(SOURCE_DEBUG_ENABLE)
362 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
363!else
364 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
365!endif
366
367!ifdef $(SOURCE_DEBUG_ENABLE)
368 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
369!endif
370
371!ifndef $(USE_OLD_SHELL)
372 gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
373!endif
374
375!if $(SECURE_BOOT_ENABLE) == TRUE
376 # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
377 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
378 gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
379 gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
380!endif
381
382 # IRQs 5, 9, 10, 11 are level-triggered
383 gPcAtChipsetPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
384
385################################################################################
386#
387# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
388#
389################################################################################
390
391[PcdsDynamicDefault]
392 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
393 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
394 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
395 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
396 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
397!ifndef $(VBOX)
398 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
399 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
400!else
401 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1024
402 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|768
403!endif
404
405################################################################################
406#
407# Components Section - list of all EDK II Modules needed by this Platform.
408#
409################################################################################
410[Components]
411 OvmfPkg/ResetVector/ResetVector.inf
412
413 #
414 # SEC Phase modules
415 #
416 OvmfPkg/Sec/SecMain.inf {
417 <LibraryClasses>
418 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
419 }
420
421 #
422 # PEI Phase modules
423 #
424 MdeModulePkg/Core/Pei/PeiMain.inf
425 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
426 <LibraryClasses>
427 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
428 }
429 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
430 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
431
432 OvmfPkg/PlatformPei/PlatformPei.inf {
433 <LibraryClasses>
434 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
435 }
436 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
437 <LibraryClasses>
438 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
439 }
440
441 #
442 # DXE Phase modules
443 #
444 MdeModulePkg/Core/Dxe/DxeMain.inf {
445 <LibraryClasses>
446 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
447 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
448 }
449
450 IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
451 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
452 <LibraryClasses>
453 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
454 }
455
456 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
457
458!if $(SECURE_BOOT_ENABLE) == TRUE
459 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
460 <LibraryClasses>
461 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
462 }
463!else
464 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
465!endif
466
467 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
468 PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
469 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
470 UefiCpuPkg/CpuDxe/CpuDxe.inf
471 PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
472 PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
473 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
474 <LibraryClasses>
475 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
476 }
477 PcAtChipsetPkg/KbcResetDxe/Reset.inf
478 MdeModulePkg/Universal/Metronome/Metronome.inf {
479 <LibraryClasses>
480 TimerLib|OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
481 }
482
483 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf {
484 <LibraryClasses>
485 TimerLib|OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
486 }
487
488 IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf {
489 <LibraryClasses>
490 TimerLib|OvmfPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
491!ifdef $(CSM_ENABLE)
492 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
493!endif
494 }
495
496 OvmfPkg/BlockMmioToBlockIoDxe/BlockIo.inf
497 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
498!ifndef $(VBOX)
499 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
500 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
501 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
502!endif
503 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
504 <LibraryClasses>
505 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
506 }
507 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
508!ifndef $(VBOX)
509 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
510!else
511 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
512!endif
513 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
514 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
515 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
516 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
517 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
518 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
519 <LibraryClasses>
520 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
521 }
522 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
523 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
524 <LibraryClasses>
525 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
526 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
527 }
528 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
529 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
530 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
531 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
532 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
533 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
534 IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
535 PcAtChipsetPkg/Bus/Pci/IdeControllerDxe/IdeControllerDxe.inf
536 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
537 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
538 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
539 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
540
541!ifndef $(VBOX)
542 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf {
543 <LibraryClasses>
544 BltLib|OptionRomPkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
545 }
546!else
547 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
548 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
549 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
550 VBoxPkg/VBoxVgaMiniPortDxe/VBoxVgaMiniPortDxe.inf
551 VBoxPkg/VBoxVgaDxe/VBoxVgaDxe.inf {
552 <LibraryClasses>
553 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
554 }
555 VBoxPkg/VBoxFsDxe/VBoxIso9660.inf
556 VBoxPkg/VBoxFsDxe/VBoxHfs.inf
557 VBoxPkg/VBoxSysTables/VBoxSysTables.inf
558 VBoxPkg/VBoxAppleSim/VBoxAppleSim.inf
559 # we need it for VBoxAppleSim
560 IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
561 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
562 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
563 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
564!endif
565
566 #
567 # ISA Support
568 #
569 PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
570 IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
571 IntelFrameworkModulePkg/Bus/Isa/IsaIoDxe/IsaIoDxe.inf
572 IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
573 IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
574 IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
575
576 #
577 # SMBIOS Support
578 #
579 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
580 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
581
582 #
583 # ACPI Support
584 #
585 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
586!ifndef $(VBOX)
587 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
588 OvmfPkg/AcpiTables/AcpiTables.inf
589 OvmfPkg/AcpiS3SaveDxe/AcpiS3SaveDxe.inf
590 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
591 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
592!else
593 MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
594!endif
595
596 #
597 # Network Support
598 #
599 MdeModulePkg/Universal/Network/SnpDxe/SnpDxe.inf
600 MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
601 MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
602 MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
603 MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
604 MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
605 MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
606 MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
607 MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
608 MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
609 MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
610 MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
611 MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
612 OvmfPkg/VirtioNetDxe/VirtioNet.inf
613
614 #
615 # Usb Support
616 #
617!ifndef $(VBOX)
618 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
619!else
620 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
621 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
622!endif
623 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
624 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
625 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
626
627!ifdef $(CSM_ENABLE)
628 IntelFrameworkModulePkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
629 <LibraryClasses>
630 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
631 }
632 IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
633 OvmfPkg/Csm/Csm16/Csm16.inf
634!endif
635
636!ifndef $(USE_OLD_SHELL)
637 ShellPkg/Application/Shell/Shell.inf {
638 <LibraryClasses>
639 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
640 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
641 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
642 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
643 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
644 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
645 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
646 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
647 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
648 FileHandleLib|ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
649 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
650 SortLib|ShellPkg/Library/UefiSortLib/UefiSortLib.inf
651 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
652 PathLib|ShellPkg/Library/BasePathLib/BasePathLib.inf
653# SafeBlockIoLib|ShellPkg/Library/SafeBlockIoLib/SafeBlockIoLib.inf
654# SafeOpenProtocolLib|ShellPkg/Library/SafeOpenProtocolLib/SafeOpenProtocolLib.inf
655 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
656
657 <PcdsFixedAtBuild>
658 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
659 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
660 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
661 }
662!endif
663
664!if $(SECURE_BOOT_ENABLE) == TRUE
665 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableRuntimeDxe.inf {
666 <LibraryClasses>
667 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
668 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
669 }
670 OvmfPkg/SecureBootConfigDxe/SecureBootConfigDxe.inf
671!endif
672
673 OvmfPkg/PlatformDxe/Platform.inf
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette