]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/AmdSev/AmdSevX64.dsc
OvmfPkg/VmgExitLib: Support nested #VCs
[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/DxeMemEncryptSevLib.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 VmgExitLib|OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf
240
241 [LibraryClasses.common.PEI_CORE]
242 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
243 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
244 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
245 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
246 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
247 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
248 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
249 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
250 !ifdef $(DEBUG_ON_SERIAL_PORT)
251 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
252 !else
253 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
254 !endif
255 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
256
257 [LibraryClasses.common.PEIM]
258 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
259 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
260 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
261 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
262 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
263 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
264 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
265 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
266 !ifdef $(DEBUG_ON_SERIAL_PORT)
267 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
268 !else
269 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
270 !endif
271 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
272 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
273 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
274 !if $(SOURCE_DEBUG_ENABLE) == TRUE
275 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
276 !endif
277 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
278 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
279 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
280 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
281 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
282
283 !if $(TPM_ENABLE) == TRUE
284 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
285 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
286 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
287 !endif
288
289 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
290
291 [LibraryClasses.common.DXE_CORE]
292 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
293 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
294 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
295 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
296 !ifdef $(DEBUG_ON_SERIAL_PORT)
297 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
298 !else
299 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
300 !endif
301 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
302 !if $(SOURCE_DEBUG_ENABLE) == TRUE
303 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
304 !endif
305 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
306 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
307
308 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
309 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
310 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
311 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
312 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
313 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
314 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
315 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
316 !ifdef $(DEBUG_ON_SERIAL_PORT)
317 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
318 !else
319 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
320 !endif
321 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
322 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
323 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
324 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
325 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
326
327 [LibraryClasses.common.UEFI_DRIVER]
328 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
329 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
330 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
331 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
332 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
333 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
334 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
335 !ifdef $(DEBUG_ON_SERIAL_PORT)
336 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
337 !else
338 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
339 !endif
340 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
341 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
342
343 [LibraryClasses.common.DXE_DRIVER]
344 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
345 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
346 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
347 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
348 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
349 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
350 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
351 !ifdef $(DEBUG_ON_SERIAL_PORT)
352 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
353 !else
354 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
355 !endif
356 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLibGrub/PlatformBootManagerLibGrub.inf
357 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
358 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
359 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
360 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
361 !if $(SOURCE_DEBUG_ENABLE) == TRUE
362 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
363 !endif
364 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
365 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
366 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
367 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
368 !if $(TPM_ENABLE) == TRUE
369 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
370 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
371 !endif
372
373 [LibraryClasses.common.UEFI_APPLICATION]
374 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
375 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
376 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
377 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
378 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
379 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
380 !ifdef $(DEBUG_ON_SERIAL_PORT)
381 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
382 !else
383 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
384 !endif
385 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
386
387 [LibraryClasses.common.DXE_SMM_DRIVER]
388 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
389 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
390 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
391 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
392 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
393 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
394 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
395 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
396 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
397 !ifdef $(DEBUG_ON_SERIAL_PORT)
398 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
399 !else
400 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
401 !endif
402 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
403 !if $(SOURCE_DEBUG_ENABLE) == TRUE
404 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
405 !endif
406 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
407 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
408
409 [LibraryClasses.common.SMM_CORE]
410 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
411 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
412 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
413 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
414 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
415 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
416 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
417 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
418 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
419 !ifdef $(DEBUG_ON_SERIAL_PORT)
420 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
421 !else
422 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
423 !endif
424 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
425
426 ################################################################################
427 #
428 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
429 #
430 ################################################################################
431 [PcdsFeatureFlag]
432 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
433 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
434 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
435 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
436 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
437 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
438
439 [PcdsFixedAtBuild]
440 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
441 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
442 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
443 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
444 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
445 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
446 # match PcdFlashNvStorageVariableSize purely for convenience
447 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
448 !endif
449 !if $(FD_SIZE_IN_KB) == 4096
450 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
451 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
452 # match PcdFlashNvStorageVariableSize purely for convenience
453 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
454 !endif
455
456 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
457 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
458 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
459
460 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
461
462 # DEBUG_INIT 0x00000001 // Initialization
463 # DEBUG_WARN 0x00000002 // Warnings
464 # DEBUG_LOAD 0x00000004 // Load events
465 # DEBUG_FS 0x00000008 // EFI File system
466 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
467 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
468 # DEBUG_INFO 0x00000040 // Informational debug messages
469 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
470 # DEBUG_VARIABLE 0x00000100 // Variable
471 # DEBUG_BM 0x00000400 // Boot Manager
472 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
473 # DEBUG_NET 0x00004000 // SNP Driver
474 # DEBUG_UNDI 0x00010000 // UNDI Driver
475 # DEBUG_LOADFILE 0x00020000 // LoadFile
476 # DEBUG_EVENT 0x00080000 // Event messages
477 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
478 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
479 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
480 # // significantly impact boot performance
481 # DEBUG_ERROR 0x80000000 // Error
482 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
483
484 !if $(SOURCE_DEBUG_ENABLE) == TRUE
485 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
486 !else
487 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
488 !endif
489
490 # This PCD is used to set the base address of the PCI express hierarchy. It
491 # is only consulted when OVMF runs on Q35. In that case it is programmed into
492 # the PCIEXBAR register.
493 #
494 # On Q35 machine types that QEMU intends to support in the long term, QEMU
495 # never lets the RAM below 4 GB exceed 2816 MB.
496 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
497
498 !if $(SOURCE_DEBUG_ENABLE) == TRUE
499 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
500 !endif
501
502 #
503 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
504 # best (please refer to git-blame for past updates). The values capture a set
505 # of BIN hints that made sense at a particular time, for some (now likely
506 # unknown) workloads / boot paths.
507 #
508 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
509 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
510 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
511 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
512 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
513
514 # IRQs 5, 9, 10, 11 are level-triggered
515 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
516
517 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
518 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
519
520 gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand|TRUE
521 ################################################################################
522 #
523 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
524 #
525 ################################################################################
526
527 [PcdsDynamicDefault]
528 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
529
530 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
531 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
532 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
533 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
534 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
535 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
536 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
537 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
538 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
539 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
540 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
541 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
542 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
543 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
544
545 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
546
547 # Set video resolution for text setup.
548 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
549 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
550
551 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
552 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
553 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
554
555 # Noexec settings for DXE.
556 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
557
558 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
559 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
560 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
561
562 # Set memory encryption mask
563 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
564
565 # Set SEV-ES defaults
566 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
567 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
568 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
569
570 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
571
572 !if $(TPM_ENABLE) == TRUE
573 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
574 !endif
575
576 [PcdsDynamicHii]
577 !if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE
578 gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
579 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
580 !endif
581
582 ################################################################################
583 #
584 # Components Section - list of all EDK II Modules needed by this Platform.
585 #
586 ################################################################################
587 [Components]
588 OvmfPkg/ResetVector/ResetVector.inf
589
590 #
591 # SEC Phase modules
592 #
593 OvmfPkg/Sec/SecMain.inf {
594 <LibraryClasses>
595 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
596 }
597
598 #
599 # PEI Phase modules
600 #
601 MdeModulePkg/Core/Pei/PeiMain.inf
602 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
603 <LibraryClasses>
604 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
605 }
606 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
607 <LibraryClasses>
608 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
609 }
610 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
611 <LibraryClasses>
612 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
613 }
614 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
615
616 OvmfPkg/PlatformPei/PlatformPei.inf
617 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
618 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
619 OvmfPkg/AmdSev/SecretPei/SecretPei.inf
620
621 !if $(TPM_ENABLE) == TRUE
622 OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
623 SecurityPkg/Tcg/TcgPei/TcgPei.inf
624 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
625 <LibraryClasses>
626 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
627 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
628 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
629 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
630 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
631 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
632 }
633 !endif
634
635 #
636 # DXE Phase modules
637 #
638 MdeModulePkg/Core/Dxe/DxeMain.inf {
639 <LibraryClasses>
640 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
641 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
642 }
643
644 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
645 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
646 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
647 <LibraryClasses>
648 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
649 }
650
651 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
652
653 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
654 <LibraryClasses>
655 !if $(TPM_ENABLE) == TRUE
656 NULL|SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
657 NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
658 !endif
659 }
660
661 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
662 OvmfPkg/8259InterruptControllerDxe/8259.inf
663 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
664 UefiCpuPkg/CpuDxe/CpuDxe.inf
665 OvmfPkg/8254TimerDxe/8254Timer.inf
666 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
667 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
668 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
669 <LibraryClasses>
670 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
671 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
672 }
673 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
674 <LibraryClasses>
675 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
676 }
677 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
678 MdeModulePkg/Universal/Metronome/Metronome.inf
679 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
680 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
681 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
682 MdeModulePkg/Logo/LogoDxe.inf
683 MdeModulePkg/Application/UiApp/UiApp.inf {
684 <LibraryClasses>
685 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
686 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
687 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
688 }
689 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf
690 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
691 OvmfPkg/Virtio10Dxe/Virtio10.inf
692 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
693 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
694 OvmfPkg/VirtioRngDxe/VirtioRng.inf
695 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
696 OvmfPkg/XenBusDxe/XenBusDxe.inf
697 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
698 !if $(PVSCSI_ENABLE) == TRUE
699 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
700 !endif
701 !if $(MPT_SCSI_ENABLE) == TRUE
702 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
703 !endif
704 !if $(LSI_SCSI_ENABLE) == TRUE
705 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
706 !endif
707 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
708 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
709 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
710 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
711 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
712 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
713 <LibraryClasses>
714 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
715 }
716 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
717 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
718 <LibraryClasses>
719 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
720 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
721 }
722 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
723 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
724 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
725 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
726 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
727 FatPkg/EnhancedFatDxe/Fat.inf
728 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
729 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
730 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
731 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
732 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
733 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
734 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
735 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
736 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
737 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
738 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
739
740 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
741 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
742 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
743
744 #
745 # ISA Support
746 #
747 OvmfPkg/SioBusDxe/SioBusDxe.inf
748 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
749 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
750
751 #
752 # SMBIOS Support
753 #
754 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
755 <LibraryClasses>
756 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
757 }
758 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
759
760 #
761 # ACPI Support
762 #
763 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
764 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
765 OvmfPkg/AcpiTables/AcpiTables.inf
766 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
767
768 #
769 # Usb Support
770 #
771 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
772 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
773 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
774 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
775 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
776 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
777
778 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
779 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
780 <PcdsFixedAtBuild>
781 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
782 }
783 !endif
784 OvmfPkg/AmdSev/SecretDxe/SecretDxe.inf
785 OvmfPkg/AmdSev/Grub/Grub.inf
786 !if $(BUILD_SHELL) == TRUE
787 ShellPkg/Application/Shell/Shell.inf {
788 <LibraryClasses>
789 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
790 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
791 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
792 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
793 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
794 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
795 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
796 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
797 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
798 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
799
800 <PcdsFixedAtBuild>
801 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
802 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
803 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
804 }
805 !endif
806
807 OvmfPkg/PlatformDxe/Platform.inf
808 OvmfPkg/AmdSevDxe/AmdSevDxe.inf
809 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
810
811 #
812 # Variable driver stack (non-SMM)
813 #
814 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
815 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
816 <LibraryClasses>
817 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
818 }
819 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
820 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
821 <LibraryClasses>
822 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
823 }
824
825 #
826 # TPM support
827 #
828 !if $(TPM_ENABLE) == TRUE
829 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
830 <LibraryClasses>
831 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
832 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
833 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
834 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
835 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
836 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
837 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
838 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
839 }
840 !if $(TPM_CONFIG_ENABLE) == TRUE
841 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
842 !endif
843 SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {
844 <LibraryClasses>
845 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
846 }
847 !endif