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