]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/AmdSev/AmdSevX64.dsc
OvmfPkg: switch the AmdSev platform to the fw_cfg-only ACPI platform driver
[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
176\r
177!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
178 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf\r
179 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf\r
180!else\r
181 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf\r
182 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf\r
183!endif\r
184\r
185 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf\r
186 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
187\r
188 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
189 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf\r
190 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf\r
191\r
192 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf\r
193 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf\r
194 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf\r
195 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf\r
196\r
b261a30c 197!if $(BUILD_SHELL) == TRUE\r
30d277ed
JB
198 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r
199 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf\r
b261a30c
JB
200!endif\r
201\r
30d277ed
JB
202 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf\r
203 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf\r
30d277ed
JB
204\r
205!if $(TPM_ENABLE) == TRUE\r
206 Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf\r
207 Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf\r
208 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf\r
209 Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf\r
210 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf\r
211!else\r
212 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf\r
213 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf\r
214!endif\r
215\r
216[LibraryClasses.common]\r
217 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
218 VmgExitLib|OvmfPkg/Library/VmgExitLib/VmgExitLib.inf\r
219\r
220[LibraryClasses.common.SEC]\r
221 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf\r
222 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf\r
223!ifdef $(DEBUG_ON_SERIAL_PORT)\r
224 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
225!else\r
226 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf\r
227!endif\r
228 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf\r
229 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf\r
230!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
231 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf\r
232!endif\r
233 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
234 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
235 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
236 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
237!if $(TOOL_CHAIN_TAG) == "XCODE5"\r
238 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf\r
239!else\r
240 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf\r
241!endif\r
5667dc43 242 VmgExitLib|OvmfPkg/Library/VmgExitLib/SecVmgExitLib.inf\r
85b8eac5 243 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf\r
30d277ed
JB
244\r
245[LibraryClasses.common.PEI_CORE]\r
246 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
247 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
248 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
249 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
250 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf\r
251 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf\r
252 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
253 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
254!ifdef $(DEBUG_ON_SERIAL_PORT)\r
255 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
256!else\r
257 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
258!endif\r
259 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf\r
260\r
261[LibraryClasses.common.PEIM]\r
262 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
263 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
264 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
265 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
266 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r
267 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf\r
268 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
269 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
270!ifdef $(DEBUG_ON_SERIAL_PORT)\r
271 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
272!else\r
273 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
274!endif\r
275 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf\r
276 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf\r
277 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf\r
278!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
279 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf\r
280!endif\r
281 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf\r
282 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf\r
283 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf\r
284 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
285 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf\r
286\r
287!if $(TPM_ENABLE) == TRUE\r
288 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf\r
289 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf\r
290 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf\r
291!endif\r
292\r
b97dc4b9
TL
293 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf\r
294\r
30d277ed
JB
295[LibraryClasses.common.DXE_CORE]\r
296 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf\r
297 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
298 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf\r
299 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
300!ifdef $(DEBUG_ON_SERIAL_PORT)\r
301 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
302!else\r
303 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
304!endif\r
305 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf\r
306!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
307 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf\r
308!endif\r
309 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
310 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
311\r
312[LibraryClasses.common.DXE_RUNTIME_DRIVER]\r
313 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
314 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
315 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
316 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
317 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
318 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
319 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf\r
320!ifdef $(DEBUG_ON_SERIAL_PORT)\r
321 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
322!else\r
323 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
324!endif\r
325 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
326 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf\r
327 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
328 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf\r
329 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf\r
330\r
331[LibraryClasses.common.UEFI_DRIVER]\r
332 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
333 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
334 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
335 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
336 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
337 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
338 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
339!ifdef $(DEBUG_ON_SERIAL_PORT)\r
340 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
341!else\r
342 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
343!endif\r
344 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
345 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
346\r
347[LibraryClasses.common.DXE_DRIVER]\r
348 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
349 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
350 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
351 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
352 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
353 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
354 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
355!ifdef $(DEBUG_ON_SERIAL_PORT)\r
356 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
357!else\r
358 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
359!endif\r
b261a30c 360 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLibGrub/PlatformBootManagerLibGrub.inf\r
30d277ed
JB
361 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf\r
362 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf\r
363 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
364 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf\r
365!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
366 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf\r
367!endif\r
368 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
369 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf\r
370 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf\r
371 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf\r
372!if $(TPM_ENABLE) == TRUE\r
373 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
374 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf\r
375!endif\r
376\r
377[LibraryClasses.common.UEFI_APPLICATION]\r
378 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
379 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
380 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
381 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
382 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
383 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
384!ifdef $(DEBUG_ON_SERIAL_PORT)\r
385 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
386!else\r
387 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
388!endif\r
389 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
390\r
391[LibraryClasses.common.DXE_SMM_DRIVER]\r
392 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
393 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
394 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
395 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf\r
396 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
397 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
398 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
399 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf\r
400 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf\r
401!ifdef $(DEBUG_ON_SERIAL_PORT)\r
402 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
403!else\r
404 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
405!endif\r
406 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf\r
407!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
408 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf\r
409!endif\r
410 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf\r
411 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
412\r
413[LibraryClasses.common.SMM_CORE]\r
414 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
415 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
416 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
417 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf\r
418 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf\r
419 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
420 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
421 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
422 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf\r
423!ifdef $(DEBUG_ON_SERIAL_PORT)\r
424 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
425!else\r
426 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
427!endif\r
428 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
429\r
430################################################################################\r
431#\r
432# Pcd Section - list of all EDK II PCD Entries defined by this Platform.\r
433#\r
434################################################################################\r
435[PcdsFeatureFlag]\r
436 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE\r
437 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE\r
438 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE\r
439 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r
440 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE\r
441 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE\r
442\r
443[PcdsFixedAtBuild]\r
444 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1\r
445 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE\r
446 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10\r
d3f3c942 447 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0\r
30d277ed
JB
448!if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)\r
449 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000\r
450 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800\r
451 # match PcdFlashNvStorageVariableSize purely for convenience\r
452 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000\r
453!endif\r
454!if $(FD_SIZE_IN_KB) == 4096\r
455 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400\r
456 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400\r
457 # match PcdFlashNvStorageVariableSize purely for convenience\r
458 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000\r
459!endif\r
460\r
461 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0\r
462 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE\r
463 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE\r
464\r
465 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07\r
466\r
467 # DEBUG_INIT 0x00000001 // Initialization\r
468 # DEBUG_WARN 0x00000002 // Warnings\r
469 # DEBUG_LOAD 0x00000004 // Load events\r
470 # DEBUG_FS 0x00000008 // EFI File system\r
471 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)\r
472 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)\r
473 # DEBUG_INFO 0x00000040 // Informational debug messages\r
474 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers\r
475 # DEBUG_VARIABLE 0x00000100 // Variable\r
476 # DEBUG_BM 0x00000400 // Boot Manager\r
477 # DEBUG_BLKIO 0x00001000 // BlkIo Driver\r
478 # DEBUG_NET 0x00004000 // SNP Driver\r
479 # DEBUG_UNDI 0x00010000 // UNDI Driver\r
480 # DEBUG_LOADFILE 0x00020000 // LoadFile\r
481 # DEBUG_EVENT 0x00080000 // Event messages\r
482 # DEBUG_GCD 0x00100000 // Global Coherency Database changes\r
483 # DEBUG_CACHE 0x00200000 // Memory range cachability changes\r
484 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may\r
485 # // significantly impact boot performance\r
486 # DEBUG_ERROR 0x80000000 // Error\r
487 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F\r
488\r
489!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
490 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17\r
491!else\r
492 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F\r
493!endif\r
494\r
495 # This PCD is used to set the base address of the PCI express hierarchy. It\r
496 # is only consulted when OVMF runs on Q35. In that case it is programmed into\r
497 # the PCIEXBAR register.\r
498 #\r
499 # On Q35 machine types that QEMU intends to support in the long term, QEMU\r
500 # never lets the RAM below 4 GB exceed 2816 MB.\r
501 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000\r
502\r
503!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
504 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2\r
505!endif\r
506\r
507 #\r
508 # The NumberOfPages values below are ad-hoc. They are updated sporadically at\r
509 # best (please refer to git-blame for past updates). The values capture a set\r
510 # of BIN hints that made sense at a particular time, for some (now likely\r
511 # unknown) workloads / boot paths.\r
512 #\r
513 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80\r
514 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10\r
515 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80\r
516 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100\r
517 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100\r
518\r
519 # IRQs 5, 9, 10, 11 are level-triggered\r
520 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20\r
521\r
522 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf\r
523 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }\r
524\r
b261a30c 525 gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand|TRUE\r
30d277ed
JB
526################################################################################\r
527#\r
528# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform\r
529#\r
530################################################################################\r
531\r
532[PcdsDynamicDefault]\r
533 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0\r
534\r
535 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0\r
536 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0\r
537 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0\r
538 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE\r
539 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800\r
540 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600\r
541 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE\r
542 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0\r
543 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0\r
544 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0\r
545 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0\r
546 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0\r
547 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0\r
548 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000\r
549\r
550 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0\r
551\r
552 # Set video resolution for text setup.\r
553 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640\r
554 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480\r
555\r
556 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208\r
557 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0\r
558 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE\r
559\r
560 # Noexec settings for DXE.\r
561 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE\r
562\r
563 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.\r
564 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64\r
565 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0\r
566\r
567 # Set memory encryption mask\r
568 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0\r
569\r
570 # Set SEV-ES defaults\r
571 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0\r
572 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0\r
573 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0\r
574\r
575 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00\r
576\r
577!if $(TPM_ENABLE) == TRUE\r
578 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}\r
579!endif\r
580\r
581[PcdsDynamicHii]\r
582!if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE\r
583 gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS\r
584 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS\r
585!endif\r
586\r
587################################################################################\r
588#\r
589# Components Section - list of all EDK II Modules needed by this Platform.\r
590#\r
591################################################################################\r
592[Components]\r
593 OvmfPkg/ResetVector/ResetVector.inf\r
594\r
595 #\r
596 # SEC Phase modules\r
597 #\r
598 OvmfPkg/Sec/SecMain.inf {\r
599 <LibraryClasses>\r
600 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
601 }\r
602\r
603 #\r
604 # PEI Phase modules\r
605 #\r
606 MdeModulePkg/Core/Pei/PeiMain.inf\r
607 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r
608 <LibraryClasses>\r
609 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
610 }\r
611 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {\r
612 <LibraryClasses>\r
613 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
614 }\r
615 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {\r
616 <LibraryClasses>\r
617 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
618 }\r
619 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r
620\r
621 OvmfPkg/PlatformPei/PlatformPei.inf\r
622 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf\r
623 UefiCpuPkg/CpuMpPei/CpuMpPei.inf\r
bff2811c 624 OvmfPkg/AmdSev/SecretPei/SecretPei.inf\r
30d277ed
JB
625\r
626!if $(TPM_ENABLE) == TRUE\r
8e7edbbf 627 OvmfPkg/Tcg/TpmMmioSevDecryptPei/TpmMmioSevDecryptPei.inf\r
30d277ed
JB
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
30d277ed
JB
702!if $(PVSCSI_ENABLE) == TRUE\r
703 OvmfPkg/PvScsiDxe/PvScsiDxe.inf\r
704!endif\r
705!if $(MPT_SCSI_ENABLE) == TRUE\r
706 OvmfPkg/MptScsiDxe/MptScsiDxe.inf\r
707!endif\r
708!if $(LSI_SCSI_ENABLE) == TRUE\r
709 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf\r
710!endif\r
711 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
712 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
713 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
714 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
715 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
716 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {\r
717 <LibraryClasses>\r
718 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
719 }\r
720 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
721 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {\r
722 <LibraryClasses>\r
723 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
724 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
725 }\r
726 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf\r
727 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
728 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
729 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf\r
730 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
731 FatPkg/EnhancedFatDxe/Fat.inf\r
732 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf\r
733 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
734 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
735 OvmfPkg/SataControllerDxe/SataControllerDxe.inf\r
736 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf\r
737 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf\r
738 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf\r
739 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
740 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
741 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
742 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf\r
743\r
744 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf\r
745 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf\r
746 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf\r
747\r
748 #\r
749 # ISA Support\r
750 #\r
751 OvmfPkg/SioBusDxe/SioBusDxe.inf\r
752 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf\r
753 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf\r
754\r
755 #\r
756 # SMBIOS Support\r
757 #\r
758 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {\r
759 <LibraryClasses>\r
760 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf\r
761 }\r
762 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf\r
763\r
764 #\r
765 # ACPI Support\r
766 #\r
767 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
d6970374 768 OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.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