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