VirtualBox

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

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

EFI/Firmware: Build fix

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