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