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