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