VirtualBox

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

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

EFI/FirmwareNew: Implement support for the DataHub protocol which was removed in newer EDK versions and enable the VBoxAppleSim DXE driver again as it is required for macOS to boot

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