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