]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/AmdSev/AmdSevX64.dsc
OvmfPkg/AmdSev: add Grub Firmware Volume Package
[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
167 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/BaseMemEncryptSevLib.inf\r
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
239\r
240[LibraryClasses.common.PEI_CORE]\r
241 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
242 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
243 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
244 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
245 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf\r
246 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf\r
247 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
248 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
249!ifdef $(DEBUG_ON_SERIAL_PORT)\r
250 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
251!else\r
252 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
253!endif\r
254 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf\r
255\r
256[LibraryClasses.common.PEIM]\r
257 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
258 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf\r
259 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
260 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
261 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r
262 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf\r
263 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
264 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
265!ifdef $(DEBUG_ON_SERIAL_PORT)\r
266 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
267!else\r
268 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
269!endif\r
270 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf\r
271 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf\r
272 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf\r
273!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
274 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf\r
275!endif\r
276 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf\r
277 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf\r
278 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf\r
279 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf\r
280 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf\r
281\r
282!if $(TPM_ENABLE) == TRUE\r
283 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf\r
284 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf\r
285 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf\r
286!endif\r
287\r
288[LibraryClasses.common.DXE_CORE]\r
289 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf\r
290 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
291 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf\r
292 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
293!ifdef $(DEBUG_ON_SERIAL_PORT)\r
294 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
295!else\r
296 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
297!endif\r
298 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf\r
299!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
300 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf\r
301!endif\r
302 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
303 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
304\r
305[LibraryClasses.common.DXE_RUNTIME_DRIVER]\r
306 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
307 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
308 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
309 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
310 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
311 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
312 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf\r
313!ifdef $(DEBUG_ON_SERIAL_PORT)\r
314 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
315!else\r
316 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
317!endif\r
318 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
319 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf\r
320 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
321 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf\r
322 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf\r
323\r
324[LibraryClasses.common.UEFI_DRIVER]\r
325 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
326 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
327 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
328 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
329 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf\r
330 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
331 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
332!ifdef $(DEBUG_ON_SERIAL_PORT)\r
333 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
334!else\r
335 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
336!endif\r
337 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
338 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
339\r
340[LibraryClasses.common.DXE_DRIVER]\r
341 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
342 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
343 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
344 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
345 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
346 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
347 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
348!ifdef $(DEBUG_ON_SERIAL_PORT)\r
349 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
350!else\r
351 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
352!endif\r
b261a30c 353 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLibGrub/PlatformBootManagerLibGrub.inf\r
30d277ed
JB
354 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf\r
355 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf\r
356 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf\r
357 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf\r
358!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
359 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf\r
360!endif\r
361 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
362 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf\r
363 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf\r
364 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf\r
365!if $(TPM_ENABLE) == TRUE\r
366 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
367 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf\r
368!endif\r
369\r
370[LibraryClasses.common.UEFI_APPLICATION]\r
371 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
372 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
373 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
374 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
375 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
376 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
377!ifdef $(DEBUG_ON_SERIAL_PORT)\r
378 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
379!else\r
380 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
381!endif\r
382 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
383\r
384[LibraryClasses.common.DXE_SMM_DRIVER]\r
385 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
386 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
387 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
388 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf\r
389 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
390 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
391 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
392 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf\r
393 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf\r
394!ifdef $(DEBUG_ON_SERIAL_PORT)\r
395 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
396!else\r
397 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
398!endif\r
399 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf\r
400!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
401 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf\r
402!endif\r
403 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf\r
404 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
405\r
406[LibraryClasses.common.SMM_CORE]\r
407 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
408 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf\r
409 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf\r
410 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf\r
411 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf\r
412 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
413 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
414 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
415 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf\r
416!ifdef $(DEBUG_ON_SERIAL_PORT)\r
417 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
418!else\r
419 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf\r
420!endif\r
421 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf\r
422\r
423################################################################################\r
424#\r
425# Pcd Section - list of all EDK II PCD Entries defined by this Platform.\r
426#\r
427################################################################################\r
428[PcdsFeatureFlag]\r
429 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE\r
430 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE\r
431 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE\r
432 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r
433 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE\r
434 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE\r
435\r
436[PcdsFixedAtBuild]\r
437 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1\r
438 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE\r
439 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10\r
440!if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)\r
441 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000\r
442 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800\r
443 # match PcdFlashNvStorageVariableSize purely for convenience\r
444 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000\r
445!endif\r
446!if $(FD_SIZE_IN_KB) == 4096\r
447 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400\r
448 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400\r
449 # match PcdFlashNvStorageVariableSize purely for convenience\r
450 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000\r
451!endif\r
452\r
453 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0\r
454 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE\r
455 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE\r
456\r
457 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07\r
458\r
459 # DEBUG_INIT 0x00000001 // Initialization\r
460 # DEBUG_WARN 0x00000002 // Warnings\r
461 # DEBUG_LOAD 0x00000004 // Load events\r
462 # DEBUG_FS 0x00000008 // EFI File system\r
463 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)\r
464 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)\r
465 # DEBUG_INFO 0x00000040 // Informational debug messages\r
466 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers\r
467 # DEBUG_VARIABLE 0x00000100 // Variable\r
468 # DEBUG_BM 0x00000400 // Boot Manager\r
469 # DEBUG_BLKIO 0x00001000 // BlkIo Driver\r
470 # DEBUG_NET 0x00004000 // SNP Driver\r
471 # DEBUG_UNDI 0x00010000 // UNDI Driver\r
472 # DEBUG_LOADFILE 0x00020000 // LoadFile\r
473 # DEBUG_EVENT 0x00080000 // Event messages\r
474 # DEBUG_GCD 0x00100000 // Global Coherency Database changes\r
475 # DEBUG_CACHE 0x00200000 // Memory range cachability changes\r
476 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may\r
477 # // significantly impact boot performance\r
478 # DEBUG_ERROR 0x80000000 // Error\r
479 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F\r
480\r
481!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
482 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17\r
483!else\r
484 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F\r
485!endif\r
486\r
487 # This PCD is used to set the base address of the PCI express hierarchy. It\r
488 # is only consulted when OVMF runs on Q35. In that case it is programmed into\r
489 # the PCIEXBAR register.\r
490 #\r
491 # On Q35 machine types that QEMU intends to support in the long term, QEMU\r
492 # never lets the RAM below 4 GB exceed 2816 MB.\r
493 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000\r
494\r
495!if $(SOURCE_DEBUG_ENABLE) == TRUE\r
496 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2\r
497!endif\r
498\r
499 #\r
500 # The NumberOfPages values below are ad-hoc. They are updated sporadically at\r
501 # best (please refer to git-blame for past updates). The values capture a set\r
502 # of BIN hints that made sense at a particular time, for some (now likely\r
503 # unknown) workloads / boot paths.\r
504 #\r
505 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80\r
506 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10\r
507 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80\r
508 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100\r
509 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100\r
510\r
511 # IRQs 5, 9, 10, 11 are level-triggered\r
512 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20\r
513\r
514 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf\r
515 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }\r
516\r
b261a30c 517 gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand|TRUE\r
30d277ed
JB
518################################################################################\r
519#\r
520# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform\r
521#\r
522################################################################################\r
523\r
524[PcdsDynamicDefault]\r
525 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0\r
526\r
527 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0\r
528 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0\r
529 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0\r
530 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE\r
531 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800\r
532 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600\r
533 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE\r
534 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0\r
535 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0\r
536 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0\r
537 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0\r
538 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0\r
539 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0\r
540 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000\r
541\r
542 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0\r
543\r
544 # Set video resolution for text setup.\r
545 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640\r
546 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480\r
547\r
548 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208\r
549 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0\r
550 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE\r
551\r
552 # Noexec settings for DXE.\r
553 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE\r
554\r
555 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.\r
556 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64\r
557 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0\r
558\r
559 # Set memory encryption mask\r
560 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0\r
561\r
562 # Set SEV-ES defaults\r
563 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0\r
564 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0\r
565 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0\r
566\r
567 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00\r
568\r
569!if $(TPM_ENABLE) == TRUE\r
570 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}\r
571!endif\r
572\r
573[PcdsDynamicHii]\r
574!if $(TPM_ENABLE) == TRUE && $(TPM_CONFIG_ENABLE) == TRUE\r
575 gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS\r
576 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS\r
577!endif\r
578\r
579################################################################################\r
580#\r
581# Components Section - list of all EDK II Modules needed by this Platform.\r
582#\r
583################################################################################\r
584[Components]\r
585 OvmfPkg/ResetVector/ResetVector.inf\r
586\r
587 #\r
588 # SEC Phase modules\r
589 #\r
590 OvmfPkg/Sec/SecMain.inf {\r
591 <LibraryClasses>\r
592 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
593 }\r
594\r
595 #\r
596 # PEI Phase modules\r
597 #\r
598 MdeModulePkg/Core/Pei/PeiMain.inf\r
599 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r
600 <LibraryClasses>\r
601 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
602 }\r
603 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {\r
604 <LibraryClasses>\r
605 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
606 }\r
607 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {\r
608 <LibraryClasses>\r
609 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
610 }\r
611 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r
612\r
613 OvmfPkg/PlatformPei/PlatformPei.inf\r
614 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf\r
615 UefiCpuPkg/CpuMpPei/CpuMpPei.inf\r
616\r
617!if $(TPM_ENABLE) == TRUE\r
618 OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf\r
619 SecurityPkg/Tcg/TcgPei/TcgPei.inf\r
620 SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {\r
621 <LibraryClasses>\r
622 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf\r
623 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf\r
624 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf\r
625 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf\r
626 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf\r
627 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf\r
628 }\r
629!endif\r
630\r
631 #\r
632 # DXE Phase modules\r
633 #\r
634 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
635 <LibraryClasses>\r
636 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
637 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
638 }\r
639\r
640 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf\r
641 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf\r
642 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {\r
643 <LibraryClasses>\r
644 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
645 }\r
646\r
647 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
648\r
649 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {\r
650 <LibraryClasses>\r
651!if $(TPM_ENABLE) == TRUE\r
652 NULL|SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf\r
653 NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf\r
654!endif\r
655 }\r
656\r
657 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf\r
658 OvmfPkg/8259InterruptControllerDxe/8259.inf\r
659 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf\r
660 UefiCpuPkg/CpuDxe/CpuDxe.inf\r
661 OvmfPkg/8254TimerDxe/8254Timer.inf\r
662 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf\r
663 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf\r
664 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {\r
665 <LibraryClasses>\r
666 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf\r
667 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf\r
668 }\r
669 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {\r
670 <LibraryClasses>\r
671 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
672 }\r
673 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf\r
674 MdeModulePkg/Universal/Metronome/Metronome.inf\r
675 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf\r
676 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf\r
677 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf\r
678 MdeModulePkg/Logo/LogoDxe.inf\r
679 MdeModulePkg/Application/UiApp/UiApp.inf {\r
680 <LibraryClasses>\r
681 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf\r
682 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf\r
683 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf\r
684 }\r
685 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf\r
686 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf\r
687 OvmfPkg/Virtio10Dxe/Virtio10.inf\r
688 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r
689 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf\r
690 OvmfPkg/VirtioRngDxe/VirtioRng.inf\r
691 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf\r
692 OvmfPkg/XenBusDxe/XenBusDxe.inf\r
693 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf\r
694!if $(PVSCSI_ENABLE) == TRUE\r
695 OvmfPkg/PvScsiDxe/PvScsiDxe.inf\r
696!endif\r
697!if $(MPT_SCSI_ENABLE) == TRUE\r
698 OvmfPkg/MptScsiDxe/MptScsiDxe.inf\r
699!endif\r
700!if $(LSI_SCSI_ENABLE) == TRUE\r
701 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf\r
702!endif\r
703 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
704 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
705 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
706 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
707 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
708 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {\r
709 <LibraryClasses>\r
710 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
711 }\r
712 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
713 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {\r
714 <LibraryClasses>\r
715 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
716 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
717 }\r
718 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf\r
719 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
720 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
721 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf\r
722 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
723 FatPkg/EnhancedFatDxe/Fat.inf\r
724 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf\r
725 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf\r
726 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
727 OvmfPkg/SataControllerDxe/SataControllerDxe.inf\r
728 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf\r
729 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf\r
730 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf\r
731 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
732 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
733 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
734 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf\r
735\r
736 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf\r
737 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf\r
738 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf\r
739\r
740 #\r
741 # ISA Support\r
742 #\r
743 OvmfPkg/SioBusDxe/SioBusDxe.inf\r
744 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf\r
745 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf\r
746\r
747 #\r
748 # SMBIOS Support\r
749 #\r
750 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {\r
751 <LibraryClasses>\r
752 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf\r
753 }\r
754 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf\r
755\r
756 #\r
757 # ACPI Support\r
758 #\r
759 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
760 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf\r
761 OvmfPkg/AcpiTables/AcpiTables.inf\r
30d277ed
JB
762 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf\r
763\r
764 #\r
765 # Usb Support\r
766 #\r
767 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf\r
768 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf\r
769 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf\r
770 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf\r
771 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf\r
772 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf\r
773\r
b261a30c 774!if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE\r
30d277ed
JB
775 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {\r
776 <PcdsFixedAtBuild>\r
777 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
778 }\r
779!endif\r
b261a30c
JB
780 OvmfPkg/AmdSev/Grub/Grub.inf\r
781!if $(BUILD_SHELL) == TRUE\r
30d277ed
JB
782 ShellPkg/Application/Shell/Shell.inf {\r
783 <LibraryClasses>\r
784 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf\r
785 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf\r
786 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf\r
787 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf\r
788 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf\r
789 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf\r
790 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf\r
791 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf\r
792 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
793 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf\r
794\r
795 <PcdsFixedAtBuild>\r
796 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF\r
797 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r
798 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000\r
799 }\r
b261a30c 800!endif\r
30d277ed
JB
801\r
802 OvmfPkg/PlatformDxe/Platform.inf\r
803 OvmfPkg/AmdSevDxe/AmdSevDxe.inf\r
804 OvmfPkg/IoMmuDxe/IoMmuDxe.inf\r
805\r
806 #\r
807 # Variable driver stack (non-SMM)\r
808 #\r
809 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf\r
810 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {\r
811 <LibraryClasses>\r
812 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf\r
813 }\r
814 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r
815 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {\r
816 <LibraryClasses>\r
817 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf\r
818 }\r
819\r
820 #\r
821 # TPM support\r
822 #\r
823!if $(TPM_ENABLE) == TRUE\r
824 SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {\r
825 <LibraryClasses>\r
826 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf\r
827 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf\r
828 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf\r
829 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf\r
830 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf\r
831 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf\r
832 NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf\r
833 NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf\r
834 }\r
835!if $(TPM_CONFIG_ENABLE) == TRUE\r
836 SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf\r
837!endif\r
838 SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {\r
839 <LibraryClasses>\r
840 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf\r
841 }\r
842!endif\r