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