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