VirtualBox

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

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

EFI/Firmware/OvmfPkgIa32.dsc: Get source debugging working

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