VirtualBox

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

Last change on this file since 77729 was 77729, checked in by vboxsync, 6 years ago

EFI: More adaptations for PCIe chipset, source debugging.

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