]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/AmdSev/AmdSevX64.dsc
OvmfPkg: Consume MdeLibs.dsc.inc for RegisterFilterLib
[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
156 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf\r
157 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
158 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r
159 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r
160 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r
161 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf\r
30d277ed
JB
162 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf\r
163 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf\r
164 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf\r
165 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf\r
166 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf\r
167 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf\r
168 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf\r
169 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf\r
170 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf\r
b97dc4b9 171 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf\r
30d277ed
JB
172 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf\r
173 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf\r
174 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf\r
175\r
176!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
177 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf\r
178 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf\r
179!else\r
180 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf\r
181 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf\r
182!endif\r
183\r
184 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf\r
185 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
186\r
187 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
188 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf\r
189 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf\r
190\r
191 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf\r
192 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf\r
193 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf\r
194 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf\r
195\r
b261a30c 196!if $(BUILD_SHELL) == TRUE\r
30d277ed
JB
197 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r
198 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf\r
b261a30c
JB
199!endif\r
200\r
30d277ed
JB
201 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf\r
202 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf\r
203 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf\r
204 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf\r
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
285 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
286 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf\r
287\r
288!if $(TPM_ENABLE) == TRUE\r
289 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf\r
290 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf\r
291 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf\r
292!endif\r
293\r
b97dc4b9
TL
294 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf\r
295\r
30d277ed
JB
296[LibraryClasses.common.DXE_CORE]\r
297 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf\r
298 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
299 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf\r
300 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
301!ifdef $(DEBUG_ON_SERIAL_PORT)\r
302 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
303!else\r
304 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
305!endif\r
306 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf\r
307!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
308 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf\r
309!endif\r
310 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
311 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
312\r
313[LibraryClasses.common.DXE_RUNTIME_DRIVER]\r
314 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
315 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
316 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
317 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
318 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
319 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
320 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf\r
321!ifdef $(DEBUG_ON_SERIAL_PORT)\r
322 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
323!else\r
324 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
325!endif\r
326 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
327 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf\r
328 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
329 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf\r
330 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf\r
331\r
332[LibraryClasses.common.UEFI_DRIVER]\r
333 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
334 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
335 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
336 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
337 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
338 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
339 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
340!ifdef $(DEBUG_ON_SERIAL_PORT)\r
341 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
342!else\r
343 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
344!endif\r
345 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
346 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
347\r
348[LibraryClasses.common.DXE_DRIVER]\r
349 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
350 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
351 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
352 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
353 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
354 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
355 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
356!ifdef $(DEBUG_ON_SERIAL_PORT)\r
357 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
358!else\r
359 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
360!endif\r
b261a30c 361 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLibGrub/PlatformBootManagerLibGrub.inf\r
30d277ed
JB
362 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf\r
363 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf\r
364 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
365 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf\r
366!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
367 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf\r
368!endif\r
369 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
370 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf\r
371 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf\r
372 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf\r
373!if $(TPM_ENABLE) == TRUE\r
374 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
375 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf\r
376!endif\r
377\r
378[LibraryClasses.common.UEFI_APPLICATION]\r
379 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
380 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
381 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
382 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
383 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
384 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
385!ifdef $(DEBUG_ON_SERIAL_PORT)\r
386 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
387!else\r
388 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
389!endif\r
390 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
391\r
392[LibraryClasses.common.DXE_SMM_DRIVER]\r
393 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
394 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
395 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
396 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf\r
397 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
398 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
399 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
400 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf\r
401 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf\r
402!ifdef $(DEBUG_ON_SERIAL_PORT)\r
403 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
404!else\r
405 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
406!endif\r
407 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf\r
408!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
409 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf\r
410!endif\r
411 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf\r
412 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
413\r
414[LibraryClasses.common.SMM_CORE]\r
415 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
416 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
417 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
418 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf\r
419 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf\r
420 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
421 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
422 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
423 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf\r
424!ifdef $(DEBUG_ON_SERIAL_PORT)\r
425 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
426!else\r
427 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
428!endif\r
429 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
430\r
431################################################################################\r
432#\r
433# Pcd Section - list of all EDK II PCD Entries defined by this Platform.\r
434#\r
435################################################################################\r
436[PcdsFeatureFlag]\r
437 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE\r
438 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE\r
439 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE\r
440 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r
441 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE\r
442 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE\r
443\r
444[PcdsFixedAtBuild]\r
445 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1\r
446 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE\r
447 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10\r
d3f3c942 448 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0\r
30d277ed
JB
449!if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)\r
450 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000\r
451 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800\r
452 # match PcdFlashNvStorageVariableSize purely for convenience\r
453 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000\r
454!endif\r
455!if $(FD_SIZE_IN_KB) == 4096\r
456 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400\r
457 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400\r
458 # match PcdFlashNvStorageVariableSize purely for convenience\r
459 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000\r
460!endif\r
461\r
462 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0\r
463 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE\r
464 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE\r
465\r
466 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07\r
467\r
468 # DEBUG_INIT 0x00000001 // Initialization\r
469 # DEBUG_WARN 0x00000002 // Warnings\r
470 # DEBUG_LOAD 0x00000004 // Load events\r
471 # DEBUG_FS 0x00000008 // EFI File system\r
472 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)\r
473 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)\r
474 # DEBUG_INFO 0x00000040 // Informational debug messages\r
475 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers\r
476 # DEBUG_VARIABLE 0x00000100 // Variable\r
477 # DEBUG_BM 0x00000400 // Boot Manager\r
478 # DEBUG_BLKIO 0x00001000 // BlkIo Driver\r
479 # DEBUG_NET 0x00004000 // SNP Driver\r
480 # DEBUG_UNDI 0x00010000 // UNDI Driver\r
481 # DEBUG_LOADFILE 0x00020000 // LoadFile\r
482 # DEBUG_EVENT 0x00080000 // Event messages\r
483 # DEBUG_GCD 0x00100000 // Global Coherency Database changes\r
484 # DEBUG_CACHE 0x00200000 // Memory range cachability changes\r
485 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may\r
486 # // significantly impact boot performance\r
487 # DEBUG_ERROR 0x80000000 // Error\r
488 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F\r
489\r
490!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
491 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17\r
492!else\r
493 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F\r
494!endif\r
495\r
496 # This PCD is used to set the base address of the PCI express hierarchy. It\r
497 # is only consulted when OVMF runs on Q35. In that case it is programmed into\r
498 # the PCIEXBAR register.\r
499 #\r
500 # On Q35 machine types that QEMU intends to support in the long term, QEMU\r
501 # never lets the RAM below 4 GB exceed 2816 MB.\r
502 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000\r
503\r
504!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
505 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2\r
506!endif\r
507\r
508 #\r
509 # The NumberOfPages values below are ad-hoc. They are updated sporadically at\r
510 # best (please refer to git-blame for past updates). The values capture a set\r
511 # of BIN hints that made sense at a particular time, for some (now likely\r
512 # unknown) workloads / boot paths.\r
513 #\r
514 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80\r
515 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10\r
516 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80\r
517 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100\r
518 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100\r
519\r
520 # IRQs 5, 9, 10, 11 are level-triggered\r
521 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20\r
522\r
523 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf\r
524 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }\r
525\r
b261a30c 526 gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand|TRUE\r
30d277ed
JB
527################################################################################\r
528#\r
529# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform\r
530#\r
531################################################################################\r
532\r
533[PcdsDynamicDefault]\r
534 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0\r
535\r
536 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0\r
537 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0\r
538 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0\r
539 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE\r
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
628 OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf\r
629 SecurityPkg/Tcg/TcgPei/TcgPei.inf\r
630 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {\r
631 <LibraryClasses>\r
632 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf\r
633 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf\r
634 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf\r
635 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf\r
636 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf\r
637 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf\r
638 }\r
639!endif\r
640\r
641 #\r
642 # DXE Phase modules\r
643 #\r
644 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
645 <LibraryClasses>\r
646 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
647 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
648 }\r
649\r
650 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf\r
651 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf\r
652 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {\r
653 <LibraryClasses>\r
654 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
655 }\r
656\r
657 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
658\r
659 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {\r
660 <LibraryClasses>\r
661!if $(TPM_ENABLE) == TRUE\r
662 NULL|SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf\r
663 NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf\r
664!endif\r
665 }\r
666\r
667 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf\r
668 OvmfPkg/8259InterruptControllerDxe/8259.inf\r
669 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf\r
670 UefiCpuPkg/CpuDxe/CpuDxe.inf\r
671 OvmfPkg/8254TimerDxe/8254Timer.inf\r
672 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf\r
673 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf\r
674 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {\r
675 <LibraryClasses>\r
676 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf\r
7a6172f8 677 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf\r
30d277ed
JB
678 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf\r
679 }\r
680 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {\r
681 <LibraryClasses>\r
682 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
683 }\r
684 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf\r
685 MdeModulePkg/Universal/Metronome/Metronome.inf\r
686 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf\r
687 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf\r
688 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf\r
689 MdeModulePkg/Logo/LogoDxe.inf\r
690 MdeModulePkg/Application/UiApp/UiApp.inf {\r
691 <LibraryClasses>\r
692 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf\r
693 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf\r
694 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf\r
695 }\r
696 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf\r
697 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf\r
698 OvmfPkg/Virtio10Dxe/Virtio10.inf\r
699 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r
700 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf\r
701 OvmfPkg/VirtioRngDxe/VirtioRng.inf\r
702 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf\r
703 OvmfPkg/XenBusDxe/XenBusDxe.inf\r
704 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf\r
705!if $(PVSCSI_ENABLE) == TRUE\r
706 OvmfPkg/PvScsiDxe/PvScsiDxe.inf\r
707!endif\r
708!if $(MPT_SCSI_ENABLE) == TRUE\r
709 OvmfPkg/MptScsiDxe/MptScsiDxe.inf\r
710!endif\r
711!if $(LSI_SCSI_ENABLE) == TRUE\r
712 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf\r
713!endif\r
714 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
715 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
716 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
717 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
718 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
719 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {\r
720 <LibraryClasses>\r
721 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
722 }\r
723 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
724 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {\r
725 <LibraryClasses>\r
726 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
727 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
728 }\r
729 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf\r
730 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
731 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
732 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf\r
733 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
734 FatPkg/EnhancedFatDxe/Fat.inf\r
735 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf\r
736 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
737 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
738 OvmfPkg/SataControllerDxe/SataControllerDxe.inf\r
739 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf\r
740 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf\r
741 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf\r
742 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
743 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
744 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
745 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf\r
746\r
747 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf\r
748 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf\r
749 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf\r
750\r
751 #\r
752 # ISA Support\r
753 #\r
754 OvmfPkg/SioBusDxe/SioBusDxe.inf\r
755 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf\r
756 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf\r
757\r
758 #\r
759 # SMBIOS Support\r
760 #\r
761 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {\r
762 <LibraryClasses>\r
763 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf\r
764 }\r
765 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf\r
766\r
767 #\r
768 # ACPI Support\r
769 #\r
770 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
771 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf\r
772 OvmfPkg/AcpiTables/AcpiTables.inf\r
30d277ed
JB
773 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf\r
774\r
775 #\r
776 # Usb Support\r
777 #\r
778 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf\r
779 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf\r
780 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf\r
781 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf\r
782 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf\r
783 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf\r
784\r
b261a30c 785!if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE\r
30d277ed
JB
786 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {\r
787 <PcdsFixedAtBuild>\r
788 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
789 }\r
790!endif\r
01726b6d 791 OvmfPkg/AmdSev/SecretDxe/SecretDxe.inf\r
b261a30c
JB
792 OvmfPkg/AmdSev/Grub/Grub.inf\r
793!if $(BUILD_SHELL) == TRUE\r
30d277ed
JB
794 ShellPkg/Application/Shell/Shell.inf {\r
795 <LibraryClasses>\r
796 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf\r
797 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf\r
798 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf\r
799 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf\r
800 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf\r
801 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf\r
802 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf\r
803 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf\r
804 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
805 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf\r
806\r
807 <PcdsFixedAtBuild>\r
808 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF\r
809 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
810 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000\r
811 }\r
b261a30c 812!endif\r
30d277ed
JB
813\r
814 OvmfPkg/PlatformDxe/Platform.inf\r
815 OvmfPkg/AmdSevDxe/AmdSevDxe.inf\r
816 OvmfPkg/IoMmuDxe/IoMmuDxe.inf\r
817\r
818 #\r
819 # Variable driver stack (non-SMM)\r
820 #\r
821 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf\r
822 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {\r
823 <LibraryClasses>\r
824 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf\r
825 }\r
826 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r
827 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {\r
828 <LibraryClasses>\r
829 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf\r
830 }\r
831\r
832 #\r
833 # TPM support\r
834 #\r
835!if $(TPM_ENABLE) == TRUE\r
836 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {\r
837 <LibraryClasses>\r
838 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf\r
839 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf\r
840 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf\r
841 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf\r
842 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf\r
843 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf\r
844 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf\r
845 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf\r
846 }\r
847!if $(TPM_CONFIG_ENABLE) == TRUE\r
848 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf\r
849!endif\r
850 SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {\r
851 <LibraryClasses>\r
852 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf\r
853 }\r
854!endif\r