VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/OvmfPkgIa32.dsc@ 80727

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

FirmwareNew: Remove use of VBoxIso9660 again as it is not required anymore and breaks booting from a CD/DVD now, bugref:4643

  • Property svn:eol-style set to native
File size: 42.6 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 $(VBOX)
181 PeCoffExtraActionLib|VBoxPkg/Library/VBoxPeCoffExtraActionLib/VBoxPeCoffExtraActionLib.inf
182 DebugAgentLib|VBoxPkg/Library/VBoxDebugAgentLib/VBoxDebugAgentLib.inf
183!else
184!ifdef $(SOURCE_DEBUG_ENABLE)
185 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
186 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.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!ifdef $(DEBUG_ON_SERIAL_PORT)
448 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
449!else
450 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
451!endif
452 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
453!ifdef $(SOURCE_DEBUG_ENABLE)
454 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
455!endif
456 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
457 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
458
459[LibraryClasses.common.SMM_CORE]
460 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
461 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
462 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
463 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
464 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
465 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
466 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
467 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
468!ifdef $(DEBUG_ON_SERIAL_PORT)
469 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
470!else
471 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
472!endif
473 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
474
475################################################################################
476#
477# Pcd Section - list of all EDK II PCD Entries defined by this Platform.
478#
479################################################################################
480[PcdsFeatureFlag]
481 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
482 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
483 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
484 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
485 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
486 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
487 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
488 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
489!if $(SMM_REQUIRE) == TRUE
490 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
491 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmEnableBspElection|FALSE
492!endif
493
494[PcdsFixedAtBuild]
495 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
496 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
497 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
498!if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
499 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
500 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
501!if $(NETWORK_TLS_ENABLE) == FALSE
502 # match PcdFlashNvStorageVariableSize purely for convenience
503 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
504!endif
505!endif
506!if $(FD_SIZE_IN_KB) == 4096
507 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
508 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
509!if $(NETWORK_TLS_ENABLE) == FALSE
510 # match PcdFlashNvStorageVariableSize purely for convenience
511 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
512!endif
513!endif
514!if $(NETWORK_TLS_ENABLE) == TRUE
515 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
516 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
517!endif
518
519 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
520
521 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
522
523 # DEBUG_INIT 0x00000001 // Initialization
524 # DEBUG_WARN 0x00000002 // Warnings
525 # DEBUG_LOAD 0x00000004 // Load events
526 # DEBUG_FS 0x00000008 // EFI File system
527 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
528 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
529 # DEBUG_INFO 0x00000040 // Informational debug messages
530 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
531 # DEBUG_VARIABLE 0x00000100 // Variable
532 # DEBUG_BM 0x00000400 // Boot Manager
533 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
534 # DEBUG_NET 0x00004000 // SNP Driver
535 # DEBUG_UNDI 0x00010000 // UNDI Driver
536 # DEBUG_LOADFILE 0x00020000 // LoadFile
537 # DEBUG_EVENT 0x00080000 // Event messages
538 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
539 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
540 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
541 # // significantly impact boot performance
542 # DEBUG_ERROR 0x80000000 // Error
543 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
544
545!ifdef $(SOURCE_DEBUG_ENABLE)
546 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
547!else
548 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
549!endif
550
551!ifndef $(VBOX)
552 # This PCD is used to set the base address of the PCI express hierarchy. It
553 # is only consulted when OVMF runs on Q35. In that case it is programmed into
554 # the PCIEXBAR register.
555 #
556 # On Q35 machine types that QEMU intends to support in the long term, QEMU
557 # never lets the RAM below 4 GB exceed 2816 MB.
558 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
559!endif
560
561!ifdef $(SOURCE_DEBUG_ENABLE)
562 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
563!endif
564
565 #
566 # Network Pcds
567 #
568!include NetworkPkg/NetworkPcds.dsc.inc
569
570!if $(SMM_REQUIRE) == TRUE
571 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
572!endif
573
574 # IRQs 5, 9, 10, 11 are level-triggered
575 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
576
577 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
578 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
579
580################################################################################
581#
582# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
583#
584################################################################################
585
586[PcdsDynamicDefault]
587 # only set when
588 # ($(SMM_REQUIRE) == FALSE)
589 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
590
591 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
592 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
593 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
594 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
595!ifndef $(VBOX)
596 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
597 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
598!else
599 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1024
600 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|768
601!endif
602 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
603 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
604 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
605 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
606 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
607 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
608
609 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
610
611 # Set video resolution for text setup.
612 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
613 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
614
615 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
616 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
617 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
618
619 # Noexec settings for DXE.
620 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
621 gEfiMdeModulePkgTokenSpaceGuid.PcdPropertiesTableEnable|FALSE
622
623 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
624 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
625 gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds|50000
626
627 # Set memory encryption mask
628 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
629
630!if $(SMM_REQUIRE) == TRUE
631 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
632 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
633 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
634!endif
635
636 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
637
638!if $(TPM2_ENABLE) == TRUE
639 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
640!endif
641
642!ifdef $(VBOX)
643 # This PCD is used to set the base address of the PCI express hierarchy. It
644 # is only consulted when OVMF runs on Q35. In that case it is programmed into
645 # the PCIEXBAR register.
646 #
647 # On Q35 machine types that QEMU intends to support in the long term, QEMU
648 # never lets the RAM below 4 GB exceed 2 GB.
649 #
650 # On VirtualBox it is dynamic.
651 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x80000000
652!endif
653
654################################################################################
655#
656# Components Section - list of all EDK II Modules needed by this Platform.
657#
658################################################################################
659[Components]
660 OvmfPkg/ResetVector/ResetVector.inf
661
662 #
663 # SEC Phase modules
664 #
665 OvmfPkg/Sec/SecMain.inf {
666 <LibraryClasses>
667 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
668 }
669
670 #
671 # PEI Phase modules
672 #
673 MdeModulePkg/Core/Pei/PeiMain.inf
674 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
675 <LibraryClasses>
676 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
677 }
678 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
679 <LibraryClasses>
680 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
681 }
682 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
683 <LibraryClasses>
684 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
685 }
686 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
687
688 OvmfPkg/PlatformPei/PlatformPei.inf
689 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
690 <LibraryClasses>
691!if $(SMM_REQUIRE) == TRUE
692 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
693!endif
694 }
695!if $(SMM_REQUIRE) == TRUE
696 OvmfPkg/SmmAccess/SmmAccessPei.inf
697!endif
698 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
699
700!if $(TPM2_ENABLE) == TRUE
701 OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
702 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
703 <LibraryClasses>
704 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
705 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
706 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
707 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
708 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
709 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
710 }
711!if $(TPM2_CONFIG_ENABLE) == TRUE
712 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
713!endif
714!endif
715
716 #
717 # DXE Phase modules
718 #
719 MdeModulePkg/Core/Dxe/DxeMain.inf {
720 <LibraryClasses>
721 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
722 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
723 }
724
725 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
726 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
727 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
728 <LibraryClasses>
729 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
730 }
731
732 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
733
734 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
735 <LibraryClasses>
736!if $(SECURE_BOOT_ENABLE) == TRUE
737 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
738!endif
739!if $(TPM2_ENABLE) == TRUE
740 NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
741!endif
742 }
743
744 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
745 OvmfPkg/8259InterruptControllerDxe/8259.inf
746 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
747 UefiCpuPkg/CpuDxe/CpuDxe.inf
748 OvmfPkg/8254TimerDxe/8254Timer.inf
749 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
750 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
751 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
752 <LibraryClasses>
753 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
754 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
755 }
756 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
757 <LibraryClasses>
758 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
759 }
760 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
761 MdeModulePkg/Universal/Metronome/Metronome.inf
762 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
763 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
764 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
765 <LibraryClasses>
766!ifdef $(CSM_ENABLE)
767 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
768 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
769!endif
770 }
771 MdeModulePkg/Logo/LogoDxe.inf
772 MdeModulePkg/Application/UiApp/UiApp.inf {
773 <LibraryClasses>
774 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
775 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
776 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
777!ifdef $(CSM_ENABLE)
778 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
779 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
780!endif
781 }
782 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
783 OvmfPkg/Virtio10Dxe/Virtio10.inf
784!ifndef $(VBOX)
785 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
786!endif
787 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
788!ifndef $(VBOX)
789 OvmfPkg/VirtioRngDxe/VirtioRng.inf
790 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
791 OvmfPkg/XenBusDxe/XenBusDxe.inf
792 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
793!endif
794 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
795 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
796 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
797 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
798 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
799 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
800 <LibraryClasses>
801 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
802 }
803 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
804 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
805 <LibraryClasses>
806 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
807 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
808 }
809 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
810 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
811 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
812 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
813 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
814 FatPkg/EnhancedFatDxe/Fat.inf
815 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
816 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
817 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
818 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
819 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
820 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
821 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
822 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
823 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
824 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
825 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
826
827!ifndef $(VBOX)
828!ifndef $(CSM_ENABLE)
829 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
830!endif
831 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
832 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
833!else
834 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
835 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
836 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
837 VBoxPkg/VBoxVgaMiniPortDxe/VBoxVgaMiniPortDxe.inf
838 VBoxPkg/VBoxVgaDxe/VBoxVgaDxe.inf {
839 <LibraryClasses>
840 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
841 }
842 VBoxPkg/VBoxFsDxe/VBoxHfs.inf
843 VBoxPkg/VBoxSysTables/VBoxSysTables.inf
844 #VBoxPkg/VBoxAppleSim/VBoxAppleSim.inf
845 # we need it for VBoxAppleSim
846 #IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
847 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
848 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
849!endif
850
851 #
852 # ISA Support
853 #
854 OvmfPkg/SioBusDxe/SioBusDxe.inf
855 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
856 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
857
858 #
859 # SMBIOS Support
860 #
861 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
862 <LibraryClasses>
863 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
864 }
865 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
866
867 #
868 # ACPI Support
869 #
870 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
871!ifndef $(VBOX)
872 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
873 OvmfPkg/AcpiTables/AcpiTables.inf
874 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
875 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
876!else
877 MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
878!endif
879 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
880
881 #
882 # Network Support
883 #
884!include NetworkPkg/NetworkComponents.dsc.inc
885
886!if $(NETWORK_TLS_ENABLE) == TRUE
887 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
888 <LibraryClasses>
889 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
890 }
891!endif
892 OvmfPkg/VirtioNetDxe/VirtioNet.inf
893
894 #
895 # Usb Support
896 #
897 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
898 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
899 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
900 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
901 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
902 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
903
904!ifdef $(CSM_ENABLE)
905 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
906 <LibraryClasses>
907 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
908 }
909 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
910 OvmfPkg/Csm/Csm16/Csm16.inf
911!endif
912
913!if $(TOOL_CHAIN_TAG) != "XCODE5"
914 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
915 <PcdsFixedAtBuild>
916 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
917 }
918!endif
919 ShellPkg/Application/Shell/Shell.inf {
920 <LibraryClasses>
921 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
922 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
923 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
924 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
925 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
926 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
927 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
928 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
929!if $(NETWORK_IP6_ENABLE) == TRUE
930 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
931!endif
932 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
933 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
934 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
935
936 <PcdsFixedAtBuild>
937 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
938 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
939 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
940 }
941
942!if $(SECURE_BOOT_ENABLE) == TRUE
943 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
944 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
945!endif
946
947 OvmfPkg/PlatformDxe/Platform.inf
948 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
949
950!if $(SMM_REQUIRE) == TRUE
951 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
952 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
953 UefiCpuPkg/CpuS3DataDxe/CpuS3DataDxe.inf
954
955 #
956 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
957 #
958 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
959
960 #
961 # SMM_CORE
962 #
963 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
964
965 #
966 # Privileged drivers (DXE_SMM_DRIVER modules)
967 #
968 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
969 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
970 <LibraryClasses>
971 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
972 }
973 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
974 <LibraryClasses>
975 SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
976 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
977 }
978
979 #
980 # Variable driver stack (SMM)
981 #
982 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
983 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
984 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
985 <LibraryClasses>
986 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
987 }
988 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
989
990!else
991
992 #
993 # Variable driver stack (non-SMM)
994 #
995 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
996 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
997 <LibraryClasses>
998 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
999 }
1000 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1001 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1002 <LibraryClasses>
1003 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1004 }
1005!endif
1006
1007!if $(TPM2_ENABLE) == TRUE
1008 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
1009 <LibraryClasses>
1010 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
1011 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
1012 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
1013 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
1014 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
1015 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
1016 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
1017 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
1018 }
1019!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