VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/OvmfPkgX64.dsc@ 80728

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

FirmwareNew: Make sure VariableRuntimeDxe is using the emulated NV mode for now (EmuVariableRuntimeDxe got merged into VariableRuntimeDxe and removed https://code.bsdio.com/rEDK4a7aa8d34a45011132c6fdb8aa903db7183371e2), bugref:4643

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