]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/AmdSev/AmdSevX64.dsc
OvmfPkg: move tcg configuration to dsc and fdf include files
[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|800
528 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
529 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
530 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
531 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
532 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
533 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
534 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
535 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
536 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
537
538 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
539
540 # Set video resolution for text setup.
541 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
542 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
543
544 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
545 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
546 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
547
548 # Noexec settings for DXE.
549 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
550
551 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
552 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
553 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
554
555 # Set memory encryption mask
556 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
557
558 # Set SEV-ES defaults
559 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
560 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
561 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
562
563 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
564
565 # Set ConfidentialComputing defaults
566 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
567
568 !include OvmfPkg/OvmfTpmPcds.dsc.inc
569
570 [PcdsDynamicHii]
571 !include OvmfPkg/OvmfTpmPcdsHii.dsc.inc
572
573 ################################################################################
574 #
575 # Components Section - list of all EDK II Modules needed by this Platform.
576 #
577 ################################################################################
578 [Components]
579 OvmfPkg/ResetVector/ResetVector.inf
580
581 #
582 # SEC Phase modules
583 #
584 OvmfPkg/Sec/SecMain.inf {
585 <LibraryClasses>
586 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
587 }
588
589 #
590 # PEI Phase modules
591 #
592 MdeModulePkg/Core/Pei/PeiMain.inf
593 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
594 <LibraryClasses>
595 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
596 }
597 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
598 <LibraryClasses>
599 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
600 }
601 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
602 <LibraryClasses>
603 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
604 }
605 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
606
607 OvmfPkg/PlatformPei/PlatformPei.inf
608 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
609 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
610 OvmfPkg/AmdSev/SecretPei/SecretPei.inf
611
612 !include OvmfPkg/OvmfTpmComponentsPei.dsc.inc
613
614 #
615 # DXE Phase modules
616 #
617 MdeModulePkg/Core/Dxe/DxeMain.inf {
618 <LibraryClasses>
619 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
620 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
621 }
622
623 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
624 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
625 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
626 <LibraryClasses>
627 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
628 }
629
630 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
631
632 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
633 <LibraryClasses>
634 !include OvmfPkg/OvmfTpmSecurityStub.dsc.inc
635 }
636
637 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
638 OvmfPkg/8259InterruptControllerDxe/8259.inf
639 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
640 UefiCpuPkg/CpuDxe/CpuDxe.inf
641 OvmfPkg/8254TimerDxe/8254Timer.inf
642 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
643 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
644 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
645 <LibraryClasses>
646 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
647 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
648 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
649 }
650 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
651 <LibraryClasses>
652 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
653 }
654 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
655 MdeModulePkg/Universal/Metronome/Metronome.inf
656 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
657 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
658 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
659 MdeModulePkg/Logo/LogoDxe.inf
660 MdeModulePkg/Application/UiApp/UiApp.inf {
661 <LibraryClasses>
662 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
663 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
664 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
665 }
666 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
667 <LibraryClasses>
668 NULL|OvmfPkg/AmdSev/BlobVerifierLibSevHashes/BlobVerifierLibSevHashes.inf
669 }
670 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
671 OvmfPkg/Virtio10Dxe/Virtio10.inf
672 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
673 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
674 OvmfPkg/VirtioRngDxe/VirtioRng.inf
675 !if $(PVSCSI_ENABLE) == TRUE
676 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
677 !endif
678 !if $(MPT_SCSI_ENABLE) == TRUE
679 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
680 !endif
681 !if $(LSI_SCSI_ENABLE) == TRUE
682 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
683 !endif
684 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
685 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
686 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
687 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
688 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
689 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
690 <LibraryClasses>
691 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
692 }
693 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
694 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
695 <LibraryClasses>
696 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
697 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
698 }
699 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
700 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
701 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
702 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
703 FatPkg/EnhancedFatDxe/Fat.inf
704 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
705 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
706 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
707 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
708 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
709 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
710 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
711 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
712 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
713 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
714 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
715
716 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
717 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
718 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
719
720 #
721 # ISA Support
722 #
723 OvmfPkg/SioBusDxe/SioBusDxe.inf
724 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
725 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
726
727 #
728 # SMBIOS Support
729 #
730 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
731 <LibraryClasses>
732 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
733 }
734 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
735
736 #
737 # ACPI Support
738 #
739 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
740 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
741 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
742
743 #
744 # Usb Support
745 #
746 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
747 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
748 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
749 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
750 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
751 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
752
753 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
754 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
755 <PcdsFixedAtBuild>
756 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
757 }
758 !endif
759 OvmfPkg/AmdSev/SecretDxe/SecretDxe.inf
760 OvmfPkg/AmdSev/Grub/Grub.inf
761 !if $(BUILD_SHELL) == TRUE
762 ShellPkg/Application/Shell/Shell.inf {
763 <LibraryClasses>
764 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
765 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
766 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
767 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
768 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
769 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
770 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
771 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
772 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
773 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
774
775 <PcdsFixedAtBuild>
776 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
777 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
778 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
779 }
780 !endif
781
782 OvmfPkg/PlatformDxe/Platform.inf
783 OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
784 <LibraryClasses>
785 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
786 }
787 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
788
789 #
790 # Variable driver stack (non-SMM)
791 #
792 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
793 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
794 <LibraryClasses>
795 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
796 }
797 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
798 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
799 <LibraryClasses>
800 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
801 }
802
803 #
804 # TPM support
805 #
806 !include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc