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