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