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