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