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