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