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