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