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