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