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