]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/AmdSev/AmdSevX64.dsc
OvmfPkg-EmuVariableFvbRuntimeDxe: Support Access To Memory Above 4G
[mirror_edk2.git] / OvmfPkg / AmdSev / AmdSevX64.dsc
1 ## @file
2 # EFI/Framework Open Virtual Machine Firmware (OVMF) platform for SEV secure
3 # virtual machine remote attestation and secret injection
4 #
5 # Copyright (c) 2020 James Bottomley, IBM Corporation.
6 # Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
7 # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
8 #
9 # SPDX-License-Identifier: BSD-2-Clause-Patent
10 #
11 ##
12
13 ################################################################################
14 #
15 # Defines Section - statements that will be processed to create a Makefile.
16 #
17 ################################################################################
18 [Defines]
19 PLATFORM_NAME = Ovmf
20 PLATFORM_GUID = 07ff380c-4760-4823-8f59-ec2cb06fbc16
21 PLATFORM_VERSION = 0.1
22 DSC_SPECIFICATION = 0x00010005
23 OUTPUT_DIRECTORY = Build/AmdSev
24 SUPPORTED_ARCHITECTURES = X64
25 BUILD_TARGETS = NOOPT|DEBUG|RELEASE
26 SKUID_IDENTIFIER = DEFAULT
27 FLASH_DEFINITION = OvmfPkg/AmdSev/AmdSevX64.fdf
28 PREBUILD = sh OvmfPkg/AmdSev/Grub/grub.sh
29
30 #
31 # Defines for default states. These can be changed on the command line.
32 # -D FLAG=VALUE
33 #
34 DEFINE SOURCE_DEBUG_ENABLE = FALSE
35 DEFINE TPM_ENABLE = FALSE
36 DEFINE TPM_CONFIG_ENABLE = FALSE
37
38 #
39 # Shell can be useful for debugging but should not be enabled for production
40 #
41 DEFINE BUILD_SHELL = FALSE
42
43 #
44 # Device drivers
45 #
46 DEFINE PVSCSI_ENABLE = TRUE
47 DEFINE MPT_SCSI_ENABLE = TRUE
48 DEFINE LSI_SCSI_ENABLE = FALSE
49
50 #
51 # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
52 # one of the supported values, in place of any of the convenience macros, is
53 # permitted.
54 #
55 !ifdef $(FD_SIZE_1MB)
56 DEFINE FD_SIZE_IN_KB = 1024
57 !else
58 !ifdef $(FD_SIZE_2MB)
59 DEFINE FD_SIZE_IN_KB = 2048
60 !else
61 !ifdef $(FD_SIZE_4MB)
62 DEFINE FD_SIZE_IN_KB = 4096
63 !else
64 DEFINE FD_SIZE_IN_KB = 4096
65 !endif
66 !endif
67 !endif
68
69 [BuildOptions]
70 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
71 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
72 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
73 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
74 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
75 !endif
76 !if $(SOURCE_DEBUG_ENABLE) == TRUE
77 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
78 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
79 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
80 !endif
81 RELEASE_*_*_GENFW_FLAGS = --zero
82
83 #
84 # Disable deprecated APIs.
85 #
86 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
87 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
88 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
89
90 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
91 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
92 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
93 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
94 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
95
96 # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
97 # protection of DXE_SMM_DRIVER/SMM_CORE modules
98 [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
99 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
100 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
101 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
102 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
103
104 ################################################################################
105 #
106 # SKU Identification section - list of all SKU IDs supported by this Platform.
107 #
108 ################################################################################
109 [SkuIds]
110 0|DEFAULT
111
112 ################################################################################
113 #
114 # Library Class section - list of all Library Classes needed by this Platform.
115 #
116 ################################################################################
117
118 !include MdePkg/MdeLibs.dsc.inc
119
120 [LibraryClasses]
121 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
122 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
123 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
124 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
125 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
126 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
127 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
128 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
129 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
130 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
131 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
132 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
133 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
134 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
135 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
136 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
137 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
138 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
139 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
140 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
141 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
142 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
143 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
144 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
145 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
146 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
147 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
148 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
149 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
150 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
151 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
152 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
153 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
154 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
155 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
156 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.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 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
164 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
165 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
166 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
167 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
168 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
169 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
170 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
171 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
172 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
173 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
174 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
175 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
176 BlobVerifierLib|OvmfPkg/AmdSev/BlobVerifierLibSevHashes/BlobVerifierLibSevHashes.inf
177
178 !if $(SOURCE_DEBUG_ENABLE) == TRUE
179 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
180 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
181 !else
182 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
183 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
184 !endif
185
186 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
187 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
188
189 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
190 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
191 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
192
193 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
194 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
195 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
196 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
197
198 !if $(BUILD_SHELL) == TRUE
199 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
200 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
201 !endif
202
203 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
204 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
205
206 !if $(TPM_ENABLE) == TRUE
207 Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
208 Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
209 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
210 Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
211 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
212 !else
213 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
214 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
215 !endif
216
217 [LibraryClasses.common]
218 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
219 VmgExitLib|OvmfPkg/Library/VmgExitLib/VmgExitLib.inf
220
221 [LibraryClasses.common.SEC]
222 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
223 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
224 !ifdef $(DEBUG_ON_SERIAL_PORT)
225 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
226 !else
227 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
228 !endif
229 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
230 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
231 !if $(SOURCE_DEBUG_ENABLE) == TRUE
232 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
233 !endif
234 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
235 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
236 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
237 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
238 !if $(TOOL_CHAIN_TAG) == "XCODE5"
239 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
240 !else
241 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
242 !endif
243 VmgExitLib|OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf
244 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
245
246 [LibraryClasses.common.PEI_CORE]
247 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
248 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
249 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
250 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
251 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
252 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
253 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
254 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
255 !ifdef $(DEBUG_ON_SERIAL_PORT)
256 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
257 !else
258 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
259 !endif
260 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
261
262 [LibraryClasses.common.PEIM]
263 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
264 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
265 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
266 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
267 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
268 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
269 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
270 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
271 !ifdef $(DEBUG_ON_SERIAL_PORT)
272 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
273 !else
274 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
275 !endif
276 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
277 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
278 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
279 !if $(SOURCE_DEBUG_ENABLE) == TRUE
280 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
281 !endif
282 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
283 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
284 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
285 QemuLoadImageLib|OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.inf
286 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
287 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
288
289 !if $(TPM_ENABLE) == TRUE
290 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
291 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
292 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
293 !endif
294
295 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
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 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
318 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
319 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
320 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
321 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
322 !ifdef $(DEBUG_ON_SERIAL_PORT)
323 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
324 !else
325 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
326 !endif
327 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
328 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
329 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
330 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
331 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
332
333 [LibraryClasses.common.UEFI_DRIVER]
334 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
335 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
336 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
337 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
338 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
339 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
340 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
341 !ifdef $(DEBUG_ON_SERIAL_PORT)
342 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
343 !else
344 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
345 !endif
346 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
347 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
348
349 [LibraryClasses.common.DXE_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 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
355 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
356 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.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 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLibGrub/PlatformBootManagerLibGrub.inf
363 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
364 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
365 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
366 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
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 QemuLoadImageLib|OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.inf
374 !if $(TPM_ENABLE) == TRUE
375 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
376 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
377 !endif
378
379 [LibraryClasses.common.UEFI_APPLICATION]
380 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
381 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
382 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
383 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
384 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
385 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
386 !ifdef $(DEBUG_ON_SERIAL_PORT)
387 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
388 !else
389 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
390 !endif
391 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
392
393 [LibraryClasses.common.DXE_SMM_DRIVER]
394 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
395 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
396 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
397 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
398 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
399 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
400 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
401 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
402 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
403 !ifdef $(DEBUG_ON_SERIAL_PORT)
404 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
405 !else
406 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
407 !endif
408 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
409 !if $(SOURCE_DEBUG_ENABLE) == TRUE
410 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
411 !endif
412 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
413 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
414
415 [LibraryClasses.common.SMM_CORE]
416 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
417 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
418 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
419 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
420 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
421 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
422 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
423 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
424 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
425 !ifdef $(DEBUG_ON_SERIAL_PORT)
426 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
427 !else
428 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
429 !endif
430 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
431
432 ################################################################################
433 #
434 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
435 #
436 ################################################################################
437 [PcdsFeatureFlag]
438 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
439 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
440 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
441 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
442 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
443 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
444
445 [PcdsFixedAtBuild]
446 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
447 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
448 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
449 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
450 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
451 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
452 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
453 # match PcdFlashNvStorageVariableSize purely for convenience
454 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
455 !endif
456 !if $(FD_SIZE_IN_KB) == 4096
457 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
458 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
459 # match PcdFlashNvStorageVariableSize purely for convenience
460 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
461 !endif
462
463 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
464 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
465 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
466
467 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
468
469 # DEBUG_INIT 0x00000001 // Initialization
470 # DEBUG_WARN 0x00000002 // Warnings
471 # DEBUG_LOAD 0x00000004 // Load events
472 # DEBUG_FS 0x00000008 // EFI File system
473 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
474 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
475 # DEBUG_INFO 0x00000040 // Informational debug messages
476 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
477 # DEBUG_VARIABLE 0x00000100 // Variable
478 # DEBUG_BM 0x00000400 // Boot Manager
479 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
480 # DEBUG_NET 0x00004000 // SNP Driver
481 # DEBUG_UNDI 0x00010000 // UNDI Driver
482 # DEBUG_LOADFILE 0x00020000 // LoadFile
483 # DEBUG_EVENT 0x00080000 // Event messages
484 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
485 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
486 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
487 # // significantly impact boot performance
488 # DEBUG_ERROR 0x80000000 // Error
489 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
490
491 !if $(SOURCE_DEBUG_ENABLE) == TRUE
492 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
493 !else
494 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
495 !endif
496
497 # This PCD is used to set the base address of the PCI express hierarchy. It
498 # is only consulted when OVMF runs on Q35. In that case it is programmed into
499 # the PCIEXBAR register.
500 #
501 # On Q35 machine types that QEMU intends to support in the long term, QEMU
502 # never lets the RAM below 4 GB exceed 2816 MB.
503 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
504
505 !if $(SOURCE_DEBUG_ENABLE) == TRUE
506 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
507 !endif
508
509 #
510 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
511 # best (please refer to git-blame for past updates). The values capture a set
512 # of BIN hints that made sense at a particular time, for some (now likely
513 # unknown) workloads / boot paths.
514 #
515 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
516 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
517 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
518 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
519 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
520
521 # IRQs 5, 9, 10, 11 are level-triggered
522 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
523
524 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
525 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
526
527 gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand|TRUE
528 ################################################################################
529 #
530 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
531 #
532 ################################################################################
533
534 [PcdsDynamicDefault]
535 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
536
537 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
538 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
539 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
540 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
541 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
542 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
543 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
544 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
545 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
546 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
547 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
548 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
549 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
550 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
551 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
552
553 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
554
555 # Set video resolution for text setup.
556 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
557 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
558
559 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
560 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
561 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
562
563 # Noexec settings for DXE.
564 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
565
566 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
567 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
568 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
569
570 # Set memory encryption mask
571 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
572
573 # Set SEV-ES defaults
574 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
575 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
576 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
577
578 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
579
580 # Set ConfidentialComputing defaults
581 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
582
583 !if $(TPM_ENABLE) == TRUE
584 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
585 !endif
586
587 [PcdsDynamicHii]
588 !if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE
589 gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
590 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
591 !endif
592
593 ################################################################################
594 #
595 # Components Section - list of all EDK II Modules needed by this Platform.
596 #
597 ################################################################################
598 [Components]
599 OvmfPkg/ResetVector/ResetVector.inf
600
601 #
602 # SEC Phase modules
603 #
604 OvmfPkg/Sec/SecMain.inf {
605 <LibraryClasses>
606 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
607 }
608
609 #
610 # PEI Phase modules
611 #
612 MdeModulePkg/Core/Pei/PeiMain.inf
613 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
614 <LibraryClasses>
615 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
616 }
617 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
618 <LibraryClasses>
619 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
620 }
621 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
622 <LibraryClasses>
623 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
624 }
625 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
626
627 OvmfPkg/PlatformPei/PlatformPei.inf
628 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
629 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
630 OvmfPkg/AmdSev/SecretPei/SecretPei.inf
631
632 !if $(TPM_ENABLE) == TRUE
633 OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf
634 OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
635 SecurityPkg/Tcg/TcgPei/TcgPei.inf
636 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
637 <LibraryClasses>
638 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
639 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
640 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
641 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
642 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
643 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
644 }
645 SecurityPkg/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf {
646 <LibraryClasses>
647 TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
648 }
649 !endif
650
651 #
652 # DXE Phase modules
653 #
654 MdeModulePkg/Core/Dxe/DxeMain.inf {
655 <LibraryClasses>
656 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
657 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
658 }
659
660 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
661 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
662 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
663 <LibraryClasses>
664 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
665 }
666
667 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
668
669 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
670 <LibraryClasses>
671 !if $(TPM_ENABLE) == TRUE
672 NULL|SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
673 NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
674 !endif
675 }
676
677 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
678 OvmfPkg/8259InterruptControllerDxe/8259.inf
679 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
680 UefiCpuPkg/CpuDxe/CpuDxe.inf
681 OvmfPkg/8254TimerDxe/8254Timer.inf
682 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
683 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
684 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
685 <LibraryClasses>
686 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
687 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
688 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
689 }
690 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
691 <LibraryClasses>
692 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
693 }
694 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
695 MdeModulePkg/Universal/Metronome/Metronome.inf
696 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
697 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
698 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
699 MdeModulePkg/Logo/LogoDxe.inf
700 MdeModulePkg/Application/UiApp/UiApp.inf {
701 <LibraryClasses>
702 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
703 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
704 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
705 }
706 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
707 <LibraryClasses>
708 NULL|OvmfPkg/AmdSev/BlobVerifierLibSevHashes/BlobVerifierLibSevHashes.inf
709 }
710 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
711 OvmfPkg/Virtio10Dxe/Virtio10.inf
712 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
713 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
714 OvmfPkg/VirtioRngDxe/VirtioRng.inf
715 !if $(PVSCSI_ENABLE) == TRUE
716 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
717 !endif
718 !if $(MPT_SCSI_ENABLE) == TRUE
719 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
720 !endif
721 !if $(LSI_SCSI_ENABLE) == TRUE
722 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
723 !endif
724 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
725 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
726 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
727 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
728 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
729 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
730 <LibraryClasses>
731 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
732 }
733 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
734 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
735 <LibraryClasses>
736 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
737 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
738 }
739 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
740 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
741 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
742 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
743 FatPkg/EnhancedFatDxe/Fat.inf
744 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
745 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
746 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
747 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
748 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
749 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
750 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
751 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
752 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
753 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
754 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
755
756 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
757 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
758 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
759
760 #
761 # ISA Support
762 #
763 OvmfPkg/SioBusDxe/SioBusDxe.inf
764 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
765 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
766
767 #
768 # SMBIOS Support
769 #
770 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
771 <LibraryClasses>
772 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
773 }
774 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
775
776 #
777 # ACPI Support
778 #
779 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
780 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
781 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
782
783 #
784 # Usb Support
785 #
786 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
787 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
788 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
789 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
790 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
791 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
792
793 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
794 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
795 <PcdsFixedAtBuild>
796 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
797 }
798 !endif
799 OvmfPkg/AmdSev/SecretDxe/SecretDxe.inf
800 OvmfPkg/AmdSev/Grub/Grub.inf
801 !if $(BUILD_SHELL) == TRUE
802 ShellPkg/Application/Shell/Shell.inf {
803 <LibraryClasses>
804 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
805 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
806 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
807 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
808 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
809 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
810 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
811 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
812 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
813 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
814
815 <PcdsFixedAtBuild>
816 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
817 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
818 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
819 }
820 !endif
821
822 OvmfPkg/PlatformDxe/Platform.inf
823 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
824 <LibraryClasses>
825 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
826 }
827 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
828
829 #
830 # Variable driver stack (non-SMM)
831 #
832 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
833 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
834 <LibraryClasses>
835 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
836 }
837 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
838 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
839 <LibraryClasses>
840 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
841 }
842
843 #
844 # TPM support
845 #
846 !if $(TPM_ENABLE) == TRUE
847 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
848 <LibraryClasses>
849 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
850 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
851 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
852 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
853 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
854 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
855 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
856 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
857 }
858 !if $(TPM_CONFIG_ENABLE) == TRUE
859 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
860 !endif
861 SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {
862 <LibraryClasses>
863 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
864 }
865 SecurityPkg/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf {
866 <LibraryClasses>
867 TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
868 }
869 !endif