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