]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/AmdSev/AmdSevX64.dsc
66bbbc80cd18e8f3ef90fbb9cc854c2dee8d4ed9
[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
177 !if $(SOURCE_DEBUG_ENABLE) == TRUE
178 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
179 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
180 !else
181 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
182 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
183 !endif
184
185 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
186 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
187
188 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
189 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
190 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
191
192 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
193 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
194 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
195 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
196
197 !if $(BUILD_SHELL) == TRUE
198 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
199 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
200 !endif
201
202 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
203 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
204 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
205 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
206
207 !if $(TPM_ENABLE) == TRUE
208 Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
209 Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
210 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
211 Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
212 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
213 !else
214 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
215 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
216 !endif
217
218 [LibraryClasses.common]
219 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
220 VmgExitLib|OvmfPkg/Library/VmgExitLib/VmgExitLib.inf
221
222 [LibraryClasses.common.SEC]
223 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
224 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
225 !ifdef $(DEBUG_ON_SERIAL_PORT)
226 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
227 !else
228 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
229 !endif
230 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
231 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
232 !if $(SOURCE_DEBUG_ENABLE) == TRUE
233 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
234 !endif
235 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
236 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
237 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
238 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
239 !if $(TOOL_CHAIN_TAG) == "XCODE5"
240 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
241 !else
242 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
243 !endif
244 VmgExitLib|OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf
245 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
246
247 [LibraryClasses.common.PEI_CORE]
248 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
249 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
250 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
251 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
252 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
253 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
254 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
255 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
256 !ifdef $(DEBUG_ON_SERIAL_PORT)
257 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
258 !else
259 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
260 !endif
261 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
262
263 [LibraryClasses.common.PEIM]
264 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
265 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
266 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
267 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
268 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
269 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
270 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
271 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
272 !ifdef $(DEBUG_ON_SERIAL_PORT)
273 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
274 !else
275 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
276 !endif
277 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
278 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
279 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
280 !if $(SOURCE_DEBUG_ENABLE) == TRUE
281 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
282 !endif
283 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
284 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
285 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.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/X86QemuLoadImageLib/X86QemuLoadImageLib.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.PcdFlashNvStorageFtwWorkingBase|0
539 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
540 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
541 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
542 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
543 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
544 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
545 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
546 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
547 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
548 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
549 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
550 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
551
552 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
553
554 # Set video resolution for text setup.
555 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
556 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
557
558 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
559 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
560 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
561
562 # Noexec settings for DXE.
563 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
564
565 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
566 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
567 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
568
569 # Set memory encryption mask
570 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
571
572 # Set SEV-ES defaults
573 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
574 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
575 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
576
577 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
578
579 !if $(TPM_ENABLE) == TRUE
580 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
581 !endif
582
583 [PcdsDynamicHii]
584 !if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE
585 gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
586 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
587 !endif
588
589 ################################################################################
590 #
591 # Components Section - list of all EDK II Modules needed by this Platform.
592 #
593 ################################################################################
594 [Components]
595 OvmfPkg/ResetVector/ResetVector.inf
596
597 #
598 # SEC Phase modules
599 #
600 OvmfPkg/Sec/SecMain.inf {
601 <LibraryClasses>
602 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
603 }
604
605 #
606 # PEI Phase modules
607 #
608 MdeModulePkg/Core/Pei/PeiMain.inf
609 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
610 <LibraryClasses>
611 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
612 }
613 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
614 <LibraryClasses>
615 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
616 }
617 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
618 <LibraryClasses>
619 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
620 }
621 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
622
623 OvmfPkg/PlatformPei/PlatformPei.inf
624 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
625 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
626 OvmfPkg/AmdSev/SecretPei/SecretPei.inf
627
628 !if $(TPM_ENABLE) == TRUE
629 OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf
630 OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
631 SecurityPkg/Tcg/TcgPei/TcgPei.inf
632 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
633 <LibraryClasses>
634 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
635 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
636 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
637 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
638 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
639 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
640 }
641 !endif
642
643 #
644 # DXE Phase modules
645 #
646 MdeModulePkg/Core/Dxe/DxeMain.inf {
647 <LibraryClasses>
648 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
649 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
650 }
651
652 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
653 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
654 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
655 <LibraryClasses>
656 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
657 }
658
659 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
660
661 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
662 <LibraryClasses>
663 !if $(TPM_ENABLE) == TRUE
664 NULL|SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
665 NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
666 !endif
667 }
668
669 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
670 OvmfPkg/8259InterruptControllerDxe/8259.inf
671 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
672 UefiCpuPkg/CpuDxe/CpuDxe.inf
673 OvmfPkg/8254TimerDxe/8254Timer.inf
674 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
675 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
676 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
677 <LibraryClasses>
678 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
679 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
680 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
681 }
682 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
683 <LibraryClasses>
684 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
685 }
686 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
687 MdeModulePkg/Universal/Metronome/Metronome.inf
688 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
689 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
690 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
691 MdeModulePkg/Logo/LogoDxe.inf
692 MdeModulePkg/Application/UiApp/UiApp.inf {
693 <LibraryClasses>
694 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
695 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
696 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
697 }
698 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf
699 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
700 OvmfPkg/Virtio10Dxe/Virtio10.inf
701 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
702 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
703 OvmfPkg/VirtioRngDxe/VirtioRng.inf
704 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
705 OvmfPkg/XenBusDxe/XenBusDxe.inf
706 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
707 !if $(PVSCSI_ENABLE) == TRUE
708 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
709 !endif
710 !if $(MPT_SCSI_ENABLE) == TRUE
711 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
712 !endif
713 !if $(LSI_SCSI_ENABLE) == TRUE
714 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
715 !endif
716 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
717 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
718 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
719 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
720 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
721 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
722 <LibraryClasses>
723 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
724 }
725 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
726 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
727 <LibraryClasses>
728 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
729 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
730 }
731 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
732 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
733 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
734 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
735 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
736 FatPkg/EnhancedFatDxe/Fat.inf
737 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
738 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
739 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
740 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
741 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
742 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
743 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
744 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
745 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
746 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
747 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
748
749 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
750 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
751 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
752
753 #
754 # ISA Support
755 #
756 OvmfPkg/SioBusDxe/SioBusDxe.inf
757 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
758 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
759
760 #
761 # SMBIOS Support
762 #
763 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
764 <LibraryClasses>
765 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
766 }
767 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
768
769 #
770 # ACPI Support
771 #
772 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
773 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
774 OvmfPkg/AcpiTables/AcpiTables.inf
775 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
776
777 #
778 # Usb Support
779 #
780 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
781 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
782 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
783 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
784 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
785 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
786
787 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
788 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
789 <PcdsFixedAtBuild>
790 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
791 }
792 !endif
793 OvmfPkg/AmdSev/SecretDxe/SecretDxe.inf
794 OvmfPkg/AmdSev/Grub/Grub.inf
795 !if $(BUILD_SHELL) == TRUE
796 ShellPkg/Application/Shell/Shell.inf {
797 <LibraryClasses>
798 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
799 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
800 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
801 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
802 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
803 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
804 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
805 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
806 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
807 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
808
809 <PcdsFixedAtBuild>
810 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
811 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
812 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
813 }
814 !endif
815
816 OvmfPkg/PlatformDxe/Platform.inf
817 OvmfPkg/AmdSevDxe/AmdSevDxe.inf
818 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
819
820 #
821 # Variable driver stack (non-SMM)
822 #
823 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
824 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
825 <LibraryClasses>
826 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
827 }
828 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
829 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
830 <LibraryClasses>
831 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
832 }
833
834 #
835 # TPM support
836 #
837 !if $(TPM_ENABLE) == TRUE
838 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
839 <LibraryClasses>
840 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
841 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
842 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
843 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
844 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
845 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
846 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
847 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
848 }
849 !if $(TPM_CONFIG_ENABLE) == TRUE
850 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
851 !endif
852 SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {
853 <LibraryClasses>
854 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
855 }
856 !endif