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