VirtualBox

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

Last change on this file since 81913 was 81596, checked in by vboxsync, 5 years ago

EFI/Firmware/VBoxPkg/VBoxApfsJmpStartDxe: Add APFS jump start driver to load the real EFI driver embedded in an APFS filesystem

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

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