VirtualBox

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

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

EFI/Firmware: Import the openssl sources from the vendor branch so the iSCSI DXE driver can be enabled again, bugref:4643

  • 屬性 svn:eol-style 設為 native
檔案大小: 43.6 KB
 
1## @file
2# EFI/Framework Open Virtual Machine Firmware (OVMF) platform
3#
4# Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
5# (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
6#
7# SPDX-License-Identifier: BSD-2-Clause-Patent
8#
9##
10
11################################################################################
12#
13# Defines Section - statements that will be processed to create a Makefile.
14#
15################################################################################
16[Defines]
17 PLATFORM_NAME = Ovmf
18 PLATFORM_GUID = 5a9e7754-d81b-49ea-85ad-69eaa7b1539b
19 PLATFORM_VERSION = 0.1
20 DSC_SPECIFICATION = 0x00010005
21!ifndef $(VBOX_OUTPUT_BASE_DIR)
22 OUTPUT_DIRECTORY = Build/OvmfX64
23!else
24 OUTPUT_DIRECTORY = $(VBOX_OUTPUT_BASE_DIR)/amd64
25!endif
26 SUPPORTED_ARCHITECTURES = X64
27 BUILD_TARGETS = NOOPT|DEBUG|RELEASE
28 SKUID_IDENTIFIER = DEFAULT
29 FLASH_DEFINITION = OvmfPkg/OvmfPkgX64.fdf
30
31 #
32 # Defines for default states. These can be changed on the command line.
33 # -D FLAG=VALUE
34 #
35 DEFINE SECURE_BOOT_ENABLE = FALSE
36 DEFINE SMM_REQUIRE = FALSE
37 DEFINE TPM2_ENABLE = FALSE
38 DEFINE TPM2_CONFIG_ENABLE = FALSE
39
40# DEFINE SOURCE_DEBUG_ENABLE = TRUE
41
42 #
43 # Network definition
44 #
45 DEFINE NETWORK_TLS_ENABLE = FALSE
46 DEFINE NETWORK_IP6_ENABLE = FALSE
47 DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
48 DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
49
50!include NetworkPkg/NetworkDefines.dsc.inc
51
52 #
53 # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
54 # one of the supported values, in place of any of the convenience macros, is
55 # permitted.
56 #
57!ifdef $(FD_SIZE_1MB)
58 DEFINE FD_SIZE_IN_KB = 1024
59!else
60!ifdef $(FD_SIZE_2MB)
61 DEFINE FD_SIZE_IN_KB = 2048
62!else
63!ifdef $(FD_SIZE_4MB)
64 DEFINE FD_SIZE_IN_KB = 4096
65!else
66 DEFINE FD_SIZE_IN_KB = 4096
67!endif
68!endif
69!endif
70
71[BuildOptions]
72 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
73 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
74 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
75!if $(TOOL_CHAIN_TAG) != "XCODE5"
76 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
77!endif
78!ifdef $(SOURCE_DEBUG_ENABLE)
79 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
80 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
81 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
82!endif
83
84 #
85 # Disable deprecated APIs.
86 #
87 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
88 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
89 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
90
91[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
92 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
93 XCODE:*_*_*_DLINK_FLAGS =
94
95# Force PE/COFF sections to be aligned at 4KB boundaries to support page level
96# protection of DXE_SMM_DRIVER/SMM_CORE modules
97[BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
98 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
99 XCODE:*_*_*_DLINK_FLAGS =
100
101!ifdef $(VBOX)
102[BuildOptions.Ia32]
103 GCC:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=32 -DHC_ARCH_BITS=32 -DVBOX_REV=$(VBOX_REV)
104 MSFT:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=32 -DHC_ARCH_BITS=32 -DVBOX_REV=$(VBOX_REV)
105 INTEL:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=32 -DHC_ARCH_BITS=32 -DVBOX_REV=$(VBOX_REV)
106[BuildOptions.X64]
107 GCC:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=64 -DHC_ARCH_BITS=64 -DVBOX_REV=$(VBOX_REV)
108 MSFT:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=64 -DHC_ARCH_BITS=64 -DVBOX_REV=$(VBOX_REV)
109 INTEL:*_*_*_CC_FLAGS = -DVBOX -DIPRT_NO_CRT -DRT_OS_UEFI -DARCH_BITS=64 -DHC_ARCH_BITS=64 -DVBOX_REV=$(VBOX_REV)
110
111!ifdef $(SOURCE_DEBUG_ENABLE)
112 # Get much better source-level debugging
113 MSFT:DEBUG_*_*_CC_FLAGS = /Od
114!endif
115
116!endif
117
118
119################################################################################
120#
121# SKU Identification section - list of all SKU IDs supported by this Platform.
122#
123################################################################################
124[SkuIds]
125 0|DEFAULT
126
127################################################################################
128#
129# Library Class section - list of all Library Classes needed by this Platform.
130#
131################################################################################
132[LibraryClasses]
133 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
134 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
135 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
136 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
137 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
138 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
139 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
140 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
141 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
142 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
143!ifndef $(VBOX)
144 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
145!else
146 PeCoffLib|VBoxPkg/Library/VBoxPeCoffLib/VBoxPeCoffLib.inf
147!endif
148 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
149 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
150 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
151 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
152 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
153 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
154 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
155 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
156 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
157 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
158 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
159 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
160 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
161 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
162 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
163 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
164 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
165 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
166 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
167 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
168 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
169 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
170 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
171 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
172 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
173 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
174 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
175 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
176 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
177 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
178 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
179 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
180 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
181 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
182 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
183 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
184 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
185 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
186 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/BaseMemEncryptSevLib.inf
187!if $(SMM_REQUIRE) == FALSE
188 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
189!endif
190 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
191 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
192
193!ifdef $(SOURCE_DEBUG_ENABLE)
194!ifdef $(VBOX)
195 PeCoffExtraActionLib|VBoxPkg/Library/VBoxPeCoffExtraActionLib/VBoxPeCoffExtraActionLib.inf
196!else
197 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
198!endif
199 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
200!else
201!ifdef $(VBOX)
202 PeCoffExtraActionLib|VBoxPkg/Library/VBoxPeCoffExtraActionLib/VBoxPeCoffExtraActionLib.inf
203 DebugAgentLib|VBoxPkg/Library/VBoxDebugAgentLib/VBoxDebugAgentLib.inf
204!else
205 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
206 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
207!endif
208!endif
209
210 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/ResetSystemLib.inf
211 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
212 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
213
214 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
215!if $(NETWORK_TLS_ENABLE) == TRUE
216 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
217!else
218 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
219!endif
220
221!if $(SECURE_BOOT_ENABLE) == TRUE
222 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
223 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
224!else
225 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
226!endif
227 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
228
229
230 #
231 # Network libraries
232 #
233!include NetworkPkg/NetworkLibs.dsc.inc
234
235!if $(NETWORK_TLS_ENABLE) == TRUE
236 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
237!endif
238
239 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
240 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
241 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
242 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
243 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
244 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
245 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
246
247!if $(TPM2_ENABLE) == TRUE
248 Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
249 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
250 Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
251 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
252!else
253 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
254 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
255!endif
256
257[LibraryClasses.common]
258 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
259
260[LibraryClasses.common.SEC]
261 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
262!ifndef $(VBOX)
263 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
264!ifdef $(DEBUG_ON_SERIAL_PORT)
265 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
266!else
267 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
268!endif
269!else
270!ifdef $(SOURCE_DEBUG_ENABLE)
271 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
272!else
273 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
274!endif
275!endif
276 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
277 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
278!ifdef $(SOURCE_DEBUG_ENABLE)
279 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
280!endif
281 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
282 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
283 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
284 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
285 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
286
287[LibraryClasses.common.PEI_CORE]
288 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
289 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
290 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
291 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
292 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
293 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
294 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
295 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
296!ifndef $(VBOX)
297!ifdef $(DEBUG_ON_SERIAL_PORT)
298 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
299!else
300 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
301!endif
302 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
303!else
304 PeCoffLib|VBoxPkg/Library/VBoxPeCoffLib/VBoxPeCoffLib.inf
305!ifdef $(SOURCE_DEBUG_ENABLE)
306 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
307!else
308 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
309!endif
310!endif
311
312[LibraryClasses.common.PEIM]
313 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
314 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
315 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
316 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
317 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
318 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
319 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
320 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
321!ifndef $(VBOX)
322!ifdef $(DEBUG_ON_SERIAL_PORT)
323 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
324!else
325 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
326!endif
327 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
328!else
329 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
330 PeCoffLib|VBoxPkg/Library/VBoxPeCoffLib/VBoxPeCoffLib.inf
331!endif
332 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
333 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
334!ifdef $(SOURCE_DEBUG_ENABLE)
335 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
336!endif
337 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
338 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
339 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
340 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
341 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
342
343!if $(TPM2_ENABLE) == TRUE
344 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
345 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
346!endif
347
348[LibraryClasses.common.DXE_CORE]
349 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
350 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
351 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
352 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
353!ifndef $(VBOX)
354!ifdef $(DEBUG_ON_SERIAL_PORT)
355 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
356!else
357 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
358!endif
359!else
360!ifdef $(SOURCE_DEBUG_ENABLE)
361 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
362!else
363 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
364!endif
365!endif
366 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
367!ifdef $(SOURCE_DEBUG_ENABLE)
368 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
369!endif
370 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
371 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
372
373[LibraryClasses.common.DXE_RUNTIME_DRIVER]
374 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
375 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
376 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
377 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
378 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
379 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
380!ifndef $(VBOX)
381!ifdef $(DEBUG_ON_SERIAL_PORT)
382 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
383!else
384 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
385!endif
386!else
387!ifdef $(SOURCE_DEBUG_ENABLE)
388 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
389!else
390 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
391!endif
392!endif
393 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
394 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
395 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
396 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
397
398[LibraryClasses.common.UEFI_DRIVER]
399 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
400 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
401 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
402 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
403 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
404 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
405!ifndef $(VBOX)
406!ifdef $(DEBUG_ON_SERIAL_PORT)
407 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
408!else
409 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
410!endif
411!else
412!ifdef $(SOURCE_DEBUG_ENABLE)
413 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
414!else
415 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
416!endif
417!endif
418 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
419 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
420
421[LibraryClasses.common.DXE_DRIVER]
422 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
423 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
424 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
425 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
426 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
427 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
428!ifndef $(VBOX)
429!ifdef $(DEBUG_ON_SERIAL_PORT)
430 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
431!else
432 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
433!endif
434!else
435 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
436!endif
437 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
438 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
439 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
440 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
441!if $(SMM_REQUIRE) == TRUE
442 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
443!else
444 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
445!endif
446!ifdef $(SOURCE_DEBUG_ENABLE)
447 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
448!endif
449 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
450 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
451 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
452!if $(TPM2_ENABLE) == TRUE
453 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
454!endif
455
456[LibraryClasses.common.UEFI_APPLICATION]
457 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
458 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
459 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
460 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
461 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
462!ifndef $(VBOX)
463!ifdef $(DEBUG_ON_SERIAL_PORT)
464 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
465!else
466 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
467!endif
468!else
469!ifdef $(SOURCE_DEBUG_ENABLE)
470 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
471!else
472 DebugLib|VBoxPkg/Library/VBoxDebugLib/VBoxDebugLib.inf
473!endif
474!endif
475 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
476
477[LibraryClasses.common.DXE_SMM_DRIVER]
478 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
479 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
480 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
481 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
482 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
483 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
484 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
485 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
486!ifdef $(DEBUG_ON_SERIAL_PORT)
487 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
488!else
489 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
490!endif
491 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
492!ifdef $(SOURCE_DEBUG_ENABLE)
493 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
494!endif
495 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
496 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
497
498[LibraryClasses.common.SMM_CORE]
499 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
500 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
501 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
502 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
503 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
504 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
505 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
506 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
507!ifdef $(DEBUG_ON_SERIAL_PORT)
508 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
509!else
510 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
511!endif
512 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
513
514################################################################################
515#
516# Pcd Section - list of all EDK II PCD Entries defined by this Platform.
517#
518################################################################################
519[PcdsFeatureFlag]
520 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
521 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
522 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
523 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
524 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
525 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
526 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
527 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
528!if $(SMM_REQUIRE) == TRUE
529 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
530 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmEnableBspElection|FALSE
531!endif
532
533[PcdsFixedAtBuild]
534 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
535 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
536 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
537!if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
538 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
539 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
540!if $(NETWORK_TLS_ENABLE) == FALSE
541 # match PcdFlashNvStorageVariableSize purely for convenience
542 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
543!endif
544!endif
545!if $(FD_SIZE_IN_KB) == 4096
546 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
547 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
548!if $(NETWORK_TLS_ENABLE) == FALSE
549 # match PcdFlashNvStorageVariableSize purely for convenience
550 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
551!endif
552!endif
553!if $(NETWORK_TLS_ENABLE) == TRUE
554 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
555 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
556!endif
557
558 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
559
560 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
561
562 # DEBUG_INIT 0x00000001 // Initialization
563 # DEBUG_WARN 0x00000002 // Warnings
564 # DEBUG_LOAD 0x00000004 // Load events
565 # DEBUG_FS 0x00000008 // EFI File system
566 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
567 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
568 # DEBUG_INFO 0x00000040 // Informational debug messages
569 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
570 # DEBUG_VARIABLE 0x00000100 // Variable
571 # DEBUG_BM 0x00000400 // Boot Manager
572 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
573 # DEBUG_NET 0x00004000 // SNP Driver
574 # DEBUG_UNDI 0x00010000 // UNDI Driver
575 # DEBUG_LOADFILE 0x00020000 // LoadFile
576 # DEBUG_EVENT 0x00080000 // Event messages
577 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
578 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
579 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
580 # // significantly impact boot performance
581 # DEBUG_ERROR 0x80000000 // Error
582 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
583
584!ifdef $(SOURCE_DEBUG_ENABLE)
585 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
586!else
587 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
588!endif
589
590!ifndef $(VBOX)
591 # This PCD is used to set the base address of the PCI express hierarchy. It
592 # is only consulted when OVMF runs on Q35. In that case it is programmed into
593 # the PCIEXBAR register.
594 #
595 # On Q35 machine types that QEMU intends to support in the long term, QEMU
596 # never lets the RAM below 4 GB exceed 2816 MB.
597 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
598!endif
599
600!ifdef $(SOURCE_DEBUG_ENABLE)
601 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
602!endif
603
604 #
605 # Network Pcds
606 #
607!include NetworkPkg/NetworkPcds.dsc.inc
608
609!if $(SMM_REQUIRE) == TRUE
610 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
611!endif
612
613 # IRQs 5, 9, 10, 11 are level-triggered
614 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
615
616 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
617 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
618
619################################################################################
620#
621# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
622#
623################################################################################
624
625[PcdsDynamicDefault]
626 # only set when
627 # ($(SMM_REQUIRE) == FALSE)
628 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
629
630 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
631 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
632 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
633 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
634!ifndef $(VBOX)
635 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
636 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
637!else
638 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
639 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1024
640 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|768
641!endif
642 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
643 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
644 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
645 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
646 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
647 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
648 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
649!ifdef $(CSM_ENABLE)
650 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
651!else
652 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
653!endif
654
655 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
656
657 # Set video resolution for text setup.
658 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
659 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
660
661 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
662 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
663 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
664
665 # Noexec settings for DXE.
666 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
667 gEfiMdeModulePkgTokenSpaceGuid.PcdPropertiesTableEnable|FALSE
668
669 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
670 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
671 gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds|50000
672
673 # Set memory encryption mask
674 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
675
676!if $(SMM_REQUIRE) == TRUE
677 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
678 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
679 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
680!endif
681
682 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
683
684!if $(TPM2_ENABLE) == TRUE
685 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
686!endif
687
688!ifdef $(VBOX)
689 # This PCD is used to set the base address of the PCI express hierarchy. It
690 # is only consulted when OVMF runs on Q35. In that case it is programmed into
691 # the PCIEXBAR register.
692 #
693 # On VirtualBox it is dynamic.
694 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x80000000
695!endif
696
697################################################################################
698#
699# Components Section - list of all EDK II Modules needed by this Platform.
700#
701################################################################################
702[Components]
703 OvmfPkg/ResetVector/ResetVector.inf
704
705 #
706 # SEC Phase modules
707 #
708 OvmfPkg/Sec/SecMain.inf {
709 <LibraryClasses>
710 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
711 }
712
713 #
714 # PEI Phase modules
715 #
716 MdeModulePkg/Core/Pei/PeiMain.inf
717 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
718 <LibraryClasses>
719 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
720 }
721 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
722 <LibraryClasses>
723 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
724 }
725 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
726 <LibraryClasses>
727 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
728 }
729 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
730
731 OvmfPkg/PlatformPei/PlatformPei.inf
732 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
733 <LibraryClasses>
734!if $(SMM_REQUIRE) == TRUE
735 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
736!endif
737 }
738!if $(SMM_REQUIRE) == TRUE
739 OvmfPkg/SmmAccess/SmmAccessPei.inf
740!endif
741 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
742
743!if $(TPM2_ENABLE) == TRUE
744 OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
745 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
746 <LibraryClasses>
747 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
748 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
749 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
750 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
751 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
752 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
753 }
754!if $(TPM2_CONFIG_ENABLE) == TRUE
755 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
756!endif
757!endif
758
759 #
760 # DXE Phase modules
761 #
762 MdeModulePkg/Core/Dxe/DxeMain.inf {
763 <LibraryClasses>
764 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
765 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
766 }
767
768 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
769 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
770 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
771 <LibraryClasses>
772 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
773 }
774
775 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
776
777 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
778 <LibraryClasses>
779!if $(SECURE_BOOT_ENABLE) == TRUE
780 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
781!endif
782!if $(TPM2_ENABLE) == TRUE
783 NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
784!endif
785 }
786
787 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
788 OvmfPkg/8259InterruptControllerDxe/8259.inf
789 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
790 UefiCpuPkg/CpuDxe/CpuDxe.inf
791 OvmfPkg/8254TimerDxe/8254Timer.inf
792 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
793 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
794 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
795 <LibraryClasses>
796 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
797 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
798 }
799 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
800 <LibraryClasses>
801 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
802 }
803 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
804 MdeModulePkg/Universal/Metronome/Metronome.inf
805 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
806 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
807 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
808 <LibraryClasses>
809!ifdef $(CSM_ENABLE)
810 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
811 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
812!endif
813 }
814!ifndef $(VBOX)
815 MdeModulePkg/Logo/LogoDxe.inf
816!else
817 VBoxPkg/Logo/LogoDxe.inf
818!endif
819 MdeModulePkg/Application/UiApp/UiApp.inf {
820 <LibraryClasses>
821 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
822 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
823 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
824!ifdef $(CSM_ENABLE)
825 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
826 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
827!endif
828 }
829 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
830 OvmfPkg/Virtio10Dxe/Virtio10.inf
831!ifndef $(VBOX)
832 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
833!endif
834 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
835!ifndef $(VBOX)
836 OvmfPkg/VirtioRngDxe/VirtioRng.inf
837 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
838 OvmfPkg/XenBusDxe/XenBusDxe.inf
839 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
840!endif
841 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
842 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
843 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
844 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
845 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
846 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
847 <LibraryClasses>
848 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
849 }
850 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
851 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
852 <LibraryClasses>
853 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
854 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
855 }
856 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
857 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
858 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
859 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
860 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
861 FatPkg/EnhancedFatDxe/Fat.inf
862 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
863 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
864 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
865 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
866 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
867 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
868 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
869 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
870 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
871 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
872 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
873
874!ifndef $(VBOX)
875!ifndef $(CSM_ENABLE)
876 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
877!endif
878 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
879 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
880!else
881 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
882 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
883 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
884 VBoxPkg/VBoxVgaMiniPortDxe/VBoxVgaMiniPortDxe.inf
885 VBoxPkg/VBoxVgaDxe/VBoxVgaDxe.inf {
886 <LibraryClasses>
887 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
888 }
889 VBoxPkg/VBoxFsDxe/VBoxHfs.inf
890 VBoxPkg/VBoxSysTables/VBoxSysTables.inf
891 VBoxPkg/VBoxAppleSim/VBoxAppleSim.inf
892!endif
893
894 #
895 # ISA Support
896 #
897 OvmfPkg/SioBusDxe/SioBusDxe.inf
898 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
899 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
900
901 #
902 # SMBIOS Support
903 #
904 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
905 <LibraryClasses>
906 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
907 }
908 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
909
910 #
911 # ACPI Support
912 #
913 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
914!ifndef $(VBOX)
915 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
916 OvmfPkg/AcpiTables/AcpiTables.inf
917 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
918 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
919!else
920 MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
921!endif
922 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
923
924 #
925 # Network Support
926 #
927!include NetworkPkg/NetworkComponents.dsc.inc
928
929!if $(NETWORK_TLS_ENABLE) == TRUE
930 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
931 <LibraryClasses>
932 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
933 }
934!endif
935 OvmfPkg/VirtioNetDxe/VirtioNet.inf
936
937 #
938 # Usb Support
939 #
940 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
941 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
942 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
943 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
944 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
945 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
946
947!ifdef $(CSM_ENABLE)
948 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
949 <LibraryClasses>
950 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
951 }
952 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
953 OvmfPkg/Csm/Csm16/Csm16.inf
954!endif
955
956!if $(TOOL_CHAIN_TAG) != "XCODE5"
957 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
958 <PcdsFixedAtBuild>
959 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
960 }
961!endif
962 ShellPkg/Application/Shell/Shell.inf {
963 <LibraryClasses>
964 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
965 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
966 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
967 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
968 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
969 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
970 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
971 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
972!if $(NETWORK_IP6_ENABLE) == TRUE
973 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
974!endif
975 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
976 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
977 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
978
979 <PcdsFixedAtBuild>
980 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
981 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
982 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
983 }
984
985!if $(SECURE_BOOT_ENABLE) == TRUE
986 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
987 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
988!endif
989
990 OvmfPkg/PlatformDxe/Platform.inf
991 OvmfPkg/AmdSevDxe/AmdSevDxe.inf
992 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
993
994!if $(SMM_REQUIRE) == TRUE
995 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
996 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
997 UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf
998
999 #
1000 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
1001 #
1002 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
1003
1004 #
1005 # SMM_CORE
1006 #
1007 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
1008
1009 #
1010 # Privileged drivers (DXE_SMM_DRIVER modules)
1011 #
1012 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
1013 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
1014 <LibraryClasses>
1015 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
1016 }
1017 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
1018 <LibraryClasses>
1019 SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
1020 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
1021 }
1022
1023 #
1024 # Variable driver stack (SMM)
1025 #
1026 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
1027 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
1028 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
1029 <LibraryClasses>
1030 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1031 }
1032 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
1033
1034!else
1035
1036 #
1037 # Variable driver stack (non-SMM)
1038 #
1039 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1040 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1041 <LibraryClasses>
1042 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1043 }
1044 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1045 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1046 <LibraryClasses>
1047 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1048 }
1049!endif
1050
1051!if $(TPM2_ENABLE) == TRUE
1052 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
1053 <LibraryClasses>
1054 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
1055 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
1056 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
1057 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
1058 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
1059 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
1060 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
1061 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
1062 }
1063!endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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