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