]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgIa32.dsc
f232de13a7b6ec00229c9dd376a6dbaf04eaf3ac
[mirror_edk2.git] / OvmfPkg / OvmfPkgIa32.dsc
1 ## @file
2 # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
3 #
4 # Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
5 # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
6 # Copyright (c) Microsoft Corporation.
7 #
8 # SPDX-License-Identifier: BSD-2-Clause-Patent
9 #
10 ##
11
12 ################################################################################
13 #
14 # Defines Section - statements that will be processed to create a Makefile.
15 #
16 ################################################################################
17 [Defines]
18 PLATFORM_NAME = Ovmf
19 PLATFORM_GUID = 5a9e7754-d81b-49ea-85ad-69eaa7b1539b
20 PLATFORM_VERSION = 0.1
21 DSC_SPECIFICATION = 0x00010005
22 OUTPUT_DIRECTORY = Build/OvmfIa32
23 SUPPORTED_ARCHITECTURES = IA32
24 BUILD_TARGETS = NOOPT|DEBUG|RELEASE
25 SKUID_IDENTIFIER = DEFAULT
26 FLASH_DEFINITION = OvmfPkg/OvmfPkgIa32.fdf
27
28 #
29 # Defines for default states. These can be changed on the command line.
30 # -D FLAG=VALUE
31 #
32 DEFINE SECURE_BOOT_ENABLE = FALSE
33 DEFINE SMM_REQUIRE = FALSE
34 DEFINE SOURCE_DEBUG_ENABLE = FALSE
35 DEFINE LOAD_X64_ON_IA32_ENABLE = FALSE
36
37 !include OvmfPkg/Include/Dsc/OvmfTpmDefines.dsc.inc
38
39 #
40 # Shell can be useful for debugging but should not be enabled for production
41 #
42 DEFINE BUILD_SHELL = TRUE
43
44 #
45 # Network definition
46 #
47 DEFINE NETWORK_TLS_ENABLE = FALSE
48 DEFINE NETWORK_IP6_ENABLE = FALSE
49 DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
50 DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
51 DEFINE NETWORK_ISCSI_ENABLE = TRUE
52
53 !include NetworkPkg/NetworkDefines.dsc.inc
54
55 #
56 # Device drivers
57 #
58 DEFINE PVSCSI_ENABLE = FALSE
59 DEFINE MPT_SCSI_ENABLE = FALSE
60 DEFINE LSI_SCSI_ENABLE = FALSE
61
62 #
63 # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
64 # one of the supported values, in place of any of the convenience macros, is
65 # permitted.
66 #
67 !ifdef $(FD_SIZE_1MB)
68 DEFINE FD_SIZE_IN_KB = 1024
69 !else
70 !ifdef $(FD_SIZE_2MB)
71 DEFINE FD_SIZE_IN_KB = 2048
72 !else
73 !ifdef $(FD_SIZE_4MB)
74 DEFINE FD_SIZE_IN_KB = 4096
75 !else
76 DEFINE FD_SIZE_IN_KB = 4096
77 !endif
78 !endif
79 !endif
80
81 [BuildOptions]
82 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
83 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
84 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
85 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
86 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
87 !endif
88 RELEASE_*_*_GENFW_FLAGS = --zero
89
90 #
91 # Disable deprecated APIs.
92 #
93 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
94 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
95 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
96
97 #
98 # SECURE_BOOT_FEATURE_ENABLED
99 #
100 !if $(SECURE_BOOT_ENABLE) == TRUE
101 MSFT:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
102 INTEL:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
103 GCC:*_*_*_CC_FLAGS = -D SECURE_BOOT_FEATURE_ENABLED
104 !endif
105
106 !include NetworkPkg/NetworkBuildOptions.dsc.inc
107
108 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
109 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
110 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
111 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
112 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
113
114 # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
115 # protection of DXE_SMM_DRIVER/SMM_CORE modules
116 [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
117 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
118 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
119 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
120 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
121
122 ################################################################################
123 #
124 # SKU Identification section - list of all SKU IDs supported by this Platform.
125 #
126 ################################################################################
127 [SkuIds]
128 0|DEFAULT
129
130 ################################################################################
131 #
132 # Library Class section - list of all Library Classes needed by this Platform.
133 #
134 ################################################################################
135
136 !include MdePkg/MdeLibs.dsc.inc
137
138 [LibraryClasses]
139 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
140 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
141 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
142 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
143 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
144 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
145 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
146 TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
147 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
148 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
149 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
150 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
151 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
152 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
153 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
154 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
155 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
156 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
157 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
158 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
159 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
160 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
161 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
162 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
163 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
164 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
165 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
166 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
167 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
168 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
169 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
170 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
171 CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
172 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
173 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
174 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
175 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
176 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
177 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
178 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
179 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
180 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
181 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
182 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
183 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
184 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
185 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
186 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
187 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
188 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
189 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
190 QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
191 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
192 LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
193 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
194 MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLibNull.inf
195 PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
196 DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
197 !if $(SMM_REQUIRE) == FALSE
198 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
199 !endif
200 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
201 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
202
203 !if $(SOURCE_DEBUG_ENABLE) == TRUE
204 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
205 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
206 !else
207 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
208 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
209 !endif
210
211 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
212 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
213
214 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
215 !if $(NETWORK_TLS_ENABLE) == TRUE
216 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
217 !else
218 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
219 !endif
220 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
221
222 !if $(SECURE_BOOT_ENABLE) == TRUE
223 PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
224 AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
225 SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
226 PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
227 SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
228 !else
229 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
230 !endif
231 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
232 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
233 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
234 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
235
236
237 #
238 # Network libraries
239 #
240 !include NetworkPkg/NetworkLibs.dsc.inc
241
242 !if $(NETWORK_TLS_ENABLE) == TRUE
243 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
244 !endif
245
246 !if $(BUILD_SHELL) == TRUE
247 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
248 !endif
249 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
250
251 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
252 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
253 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
254
255 !include OvmfPkg/Include/Dsc/OvmfTpmLibs.dsc.inc
256
257 [LibraryClasses.common]
258 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
259 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
260 TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLibNull.inf
261
262 [LibraryClasses.common.SEC]
263 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
264 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
265 !ifdef $(DEBUG_ON_SERIAL_PORT)
266 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
267 !else
268 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
269 !endif
270 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
271 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
272 !if $(SOURCE_DEBUG_ENABLE) == TRUE
273 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
274 !endif
275 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
276 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
277 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
278 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
279 !if $(TOOL_CHAIN_TAG) == "XCODE5"
280 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
281 !else
282 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
283 !endif
284 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
285
286 [LibraryClasses.common.PEI_CORE]
287 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
288 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
289 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
290 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
291 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
292 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
293 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
294 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
295 !ifdef $(DEBUG_ON_SERIAL_PORT)
296 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
297 !else
298 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
299 !endif
300 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
301
302 [LibraryClasses.common.PEIM]
303 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
304 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
305 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
306 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
307 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
308 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
309 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
310 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
311 !ifdef $(DEBUG_ON_SERIAL_PORT)
312 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
313 !else
314 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
315 !endif
316 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
317 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
318 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
319 !if $(SOURCE_DEBUG_ENABLE) == TRUE
320 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
321 !endif
322 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
323 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
324 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
325 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
326 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
327 PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
328
329 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
330
331 [LibraryClasses.common.DXE_CORE]
332 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
333 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
334 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.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 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
342 !if $(SOURCE_DEBUG_ENABLE) == TRUE
343 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
344 !endif
345 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
346 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
347
348 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
349 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
350 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
351 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
352 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
353 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
354 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
355 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
356 !ifdef $(DEBUG_ON_SERIAL_PORT)
357 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
358 !else
359 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
360 !endif
361 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
362 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
363 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
364 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
365 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
366 !if $(SMM_REQUIRE) == TRUE
367 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
368 !endif
369
370 [LibraryClasses.common.UEFI_DRIVER]
371 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
372 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
373 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
374 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
375 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
376 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
377 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
378 !ifdef $(DEBUG_ON_SERIAL_PORT)
379 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
380 !else
381 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
382 !endif
383 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
384 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
385
386 [LibraryClasses.common.DXE_DRIVER]
387 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
388 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
389 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
390 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
391 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
392 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
393 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
394 !ifdef $(DEBUG_ON_SERIAL_PORT)
395 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
396 !else
397 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
398 !endif
399 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
400 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
401 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
402 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
403 !if $(SMM_REQUIRE) == TRUE
404 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
405 !else
406 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
407 !endif
408 !if $(SOURCE_DEBUG_ENABLE) == TRUE
409 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
410 !endif
411 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
412 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
413 NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf
414 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
415 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
416
417 [LibraryClasses.common.UEFI_APPLICATION]
418 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
419 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
420 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
421 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
422 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
423 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
424 !ifdef $(DEBUG_ON_SERIAL_PORT)
425 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
426 !else
427 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
428 !endif
429 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
430
431 [LibraryClasses.common.DXE_SMM_DRIVER]
432 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
433 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
434 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
435 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
436 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
437 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
438 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
439 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
440 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
441 !ifdef $(DEBUG_ON_SERIAL_PORT)
442 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
443 !else
444 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
445 !endif
446 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
447 !if $(SOURCE_DEBUG_ENABLE) == TRUE
448 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
449 !endif
450 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
451 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
452 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
453
454 [LibraryClasses.common.SMM_CORE]
455 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
456 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
457 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
458 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
459 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
460 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
461 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
462 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
463 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
464 !ifdef $(DEBUG_ON_SERIAL_PORT)
465 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
466 !else
467 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
468 !endif
469 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
470
471 ################################################################################
472 #
473 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
474 #
475 ################################################################################
476 [PcdsFeatureFlag]
477 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
478 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
479 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
480 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
481 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
482 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
483 !ifdef $(CSM_ENABLE)
484 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
485 !endif
486 !if $(SMM_REQUIRE) == TRUE
487 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
488 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
489 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
490 !endif
491
492 [PcdsFixedAtBuild]
493 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
494 !if $(SMM_REQUIRE) == FALSE
495 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
496 !endif
497 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
498 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
499 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
500 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
501 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
502 !if $(NETWORK_TLS_ENABLE) == FALSE
503 # match PcdFlashNvStorageVariableSize purely for convenience
504 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
505 !endif
506 !endif
507 !if $(FD_SIZE_IN_KB) == 4096
508 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
509 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
510 !if $(NETWORK_TLS_ENABLE) == FALSE
511 # match PcdFlashNvStorageVariableSize purely for convenience
512 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
513 !endif
514 !endif
515 !if $(NETWORK_TLS_ENABLE) == TRUE
516 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
517 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
518 !endif
519
520 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
521 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
522 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
523
524 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
525
526 # DEBUG_INIT 0x00000001 // Initialization
527 # DEBUG_WARN 0x00000002 // Warnings
528 # DEBUG_LOAD 0x00000004 // Load events
529 # DEBUG_FS 0x00000008 // EFI File system
530 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
531 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
532 # DEBUG_INFO 0x00000040 // Informational debug messages
533 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
534 # DEBUG_VARIABLE 0x00000100 // Variable
535 # DEBUG_BM 0x00000400 // Boot Manager
536 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
537 # DEBUG_NET 0x00004000 // SNP Driver
538 # DEBUG_UNDI 0x00010000 // UNDI Driver
539 # DEBUG_LOADFILE 0x00020000 // LoadFile
540 # DEBUG_EVENT 0x00080000 // Event messages
541 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
542 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
543 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
544 # // significantly impact boot performance
545 # DEBUG_ERROR 0x80000000 // Error
546 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
547
548 !if $(SOURCE_DEBUG_ENABLE) == TRUE
549 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
550 !else
551 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
552 !endif
553
554 # This PCD is used to set the base address of the PCI express hierarchy. It
555 # is only consulted when OVMF runs on Q35. In that case it is programmed into
556 # the PCIEXBAR register.
557 #
558 # On Q35 machine types that QEMU intends to support in the long term, QEMU
559 # never lets the RAM below 4 GB exceed 2816 MB.
560 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
561
562 !if $(SOURCE_DEBUG_ENABLE) == TRUE
563 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
564 !endif
565
566 #
567 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
568 # best (please refer to git-blame for past updates). The values capture a set
569 # of BIN hints that made sense at a particular time, for some (now likely
570 # unknown) workloads / boot paths.
571 #
572 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
573 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x12
574 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
575 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
576 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
577
578 #
579 # Network Pcds
580 #
581 !include NetworkPkg/NetworkPcds.dsc.inc
582
583 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
584
585 !if $(SMM_REQUIRE) == TRUE
586 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
587 !endif
588
589 # IRQs 5, 9, 10, 11 are level-triggered
590 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
591
592 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
593 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
594
595 ################################################################################
596 #
597 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
598 #
599 ################################################################################
600
601 [PcdsDynamicDefault]
602 # only set when
603 # ($(SMM_REQUIRE) == FALSE)
604 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
605
606 !if $(SMM_REQUIRE) == FALSE
607 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
608 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
609 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
610 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
611 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
612 !endif
613 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
614 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
615 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
616 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
617 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
618 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
619 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
620 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
621 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
622 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
623 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
624
625 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
626
627 # Set video resolution for text setup.
628 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
629 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
630
631 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
632 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
633 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
634
635 # Noexec settings for DXE.
636 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
637
638 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
639 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
640 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
641
642 # Set memory encryption mask
643 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
644
645 # Set Tdx shared bit mask
646 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
647
648 # Set SEV-ES defaults
649 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
650 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
651 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
652
653 !if $(SMM_REQUIRE) == TRUE
654 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
655 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
656 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
657 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
658 !endif
659
660 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
661
662 !include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
663
664 # IPv4 and IPv6 PXE Boot support.
665 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
666 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
667
668 # Set ConfidentialComputing defaults
669 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
670
671 !if $(CSM_ENABLE) == FALSE
672 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
673 !endif
674
675 [PcdsDynamicHii]
676 !include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
677
678 ################################################################################
679 #
680 # Components Section - list of all EDK II Modules needed by this Platform.
681 #
682 ################################################################################
683 [Components]
684 OvmfPkg/ResetVector/ResetVector.inf
685
686 #
687 # SEC Phase modules
688 #
689 OvmfPkg/Sec/SecMain.inf {
690 <LibraryClasses>
691 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
692 }
693
694 #
695 # PEI Phase modules
696 #
697 MdeModulePkg/Core/Pei/PeiMain.inf
698 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
699 <LibraryClasses>
700 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
701 }
702 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
703 <LibraryClasses>
704 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
705 }
706 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
707 <LibraryClasses>
708 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
709 }
710 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
711
712 OvmfPkg/PlatformPei/PlatformPei.inf
713 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
714 <LibraryClasses>
715 !if $(SMM_REQUIRE) == TRUE
716 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
717 !endif
718 }
719 !if $(SMM_REQUIRE) == TRUE
720 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
721 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
722 OvmfPkg/SmmAccess/SmmAccessPei.inf
723 !endif
724 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
725
726 !include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
727
728 #
729 # DXE Phase modules
730 #
731 MdeModulePkg/Core/Dxe/DxeMain.inf {
732 <LibraryClasses>
733 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
734 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
735 }
736
737 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
738 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
739 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
740 <LibraryClasses>
741 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
742 }
743
744 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
745
746 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
747 <LibraryClasses>
748 !if $(SECURE_BOOT_ENABLE) == TRUE
749 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
750 !endif
751 !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
752 }
753
754 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
755 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
756 UefiCpuPkg/CpuDxe/CpuDxe.inf
757 !ifdef $(CSM_ENABLE)
758 OvmfPkg/8259InterruptControllerDxe/8259.inf
759 OvmfPkg/8254TimerDxe/8254Timer.inf
760 !else
761 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
762 !endif
763 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
764 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
765 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
766 <LibraryClasses>
767 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
768 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
769 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
770 }
771 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
772 <LibraryClasses>
773 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
774 }
775 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
776 MdeModulePkg/Universal/Metronome/Metronome.inf
777 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
778 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
779 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
780 <LibraryClasses>
781 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
782 !ifdef $(CSM_ENABLE)
783 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
784 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
785 !endif
786 }
787 MdeModulePkg/Logo/LogoDxe.inf
788 MdeModulePkg/Application/UiApp/UiApp.inf {
789 <LibraryClasses>
790 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
791 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
792 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
793 !ifdef $(CSM_ENABLE)
794 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
795 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
796 !endif
797 }
798 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
799 <LibraryClasses>
800 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
801 }
802 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
803 OvmfPkg/Virtio10Dxe/Virtio10.inf
804 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
805 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
806 OvmfPkg/VirtioRngDxe/VirtioRng.inf
807 !if $(PVSCSI_ENABLE) == TRUE
808 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
809 !endif
810 !if $(MPT_SCSI_ENABLE) == TRUE
811 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
812 !endif
813 !if $(LSI_SCSI_ENABLE) == TRUE
814 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
815 !endif
816 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
817 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
818 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
819 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
820 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
821 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
822 <LibraryClasses>
823 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
824 }
825 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
826 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
827 <LibraryClasses>
828 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
829 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
830 }
831 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
832 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
833 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
834 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
835 FatPkg/EnhancedFatDxe/Fat.inf
836 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
837 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
838 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
839 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
840 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
841 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
842 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
843 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
844 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
845 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
846 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
847 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
848
849 !ifndef $(CSM_ENABLE)
850 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
851 !endif
852 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
853 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
854
855 #
856 # ISA Support
857 #
858 OvmfPkg/SioBusDxe/SioBusDxe.inf
859 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
860 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
861
862 #
863 # SMBIOS Support
864 #
865 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
866 <LibraryClasses>
867 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
868 }
869 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
870
871 #
872 # ACPI Support
873 #
874 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
875 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
876 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
877 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
878 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
879
880 #
881 # Network Support
882 #
883 !include NetworkPkg/NetworkComponents.dsc.inc
884 !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
885
886 OvmfPkg/VirtioNetDxe/VirtioNet.inf
887
888 #
889 # Usb Support
890 #
891 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
892 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
893 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
894 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
895 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
896 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
897
898 !ifdef $(CSM_ENABLE)
899 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
900 <LibraryClasses>
901 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
902 }
903 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
904 OvmfPkg/Csm/Csm16/Csm16.inf
905 !endif
906
907 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
908 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
909 <PcdsFixedAtBuild>
910 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
911 }
912 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
913 <PcdsFixedAtBuild>
914 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
915 }
916 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
917 <PcdsFixedAtBuild>
918 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
919 }
920 !endif
921 !if $(BUILD_SHELL) == TRUE
922 ShellPkg/Application/Shell/Shell.inf {
923 <LibraryClasses>
924 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
925 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
926 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
927 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
928 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
929 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
930 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
931 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
932 !if $(NETWORK_IP6_ENABLE) == TRUE
933 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
934 !endif
935 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
936 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
937 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
938
939 <PcdsFixedAtBuild>
940 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
941 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
942 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
943 }
944 !endif
945
946 !if $(SECURE_BOOT_ENABLE) == TRUE
947 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
948 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
949 !endif
950
951 OvmfPkg/PlatformDxe/Platform.inf
952 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
953
954 !if $(SMM_REQUIRE) == TRUE
955 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
956 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
957 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
958
959 #
960 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
961 #
962 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
963
964 #
965 # SMM_CORE
966 #
967 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
968
969 #
970 # Privileged drivers (DXE_SMM_DRIVER modules)
971 #
972 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
973 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
974 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
975 <LibraryClasses>
976 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
977 }
978 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
979 <LibraryClasses>
980 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
981 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
982 }
983
984 #
985 # Variable driver stack (SMM)
986 #
987 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
988 <LibraryClasses>
989 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
990 }
991 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
992 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
993 <LibraryClasses>
994 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
995 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
996 }
997 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
998
999 !else
1000
1001 #
1002 # Variable driver stack (non-SMM)
1003 #
1004 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1005 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1006 <LibraryClasses>
1007 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1008 }
1009 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1010 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1011 <LibraryClasses>
1012 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1013 }
1014 !endif
1015
1016 #
1017 # TPM support
1018 #
1019 !include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc
1020
1021 !if $(LOAD_X64_ON_IA32_ENABLE) == TRUE
1022 OvmfPkg/CompatImageLoaderDxe/CompatImageLoaderDxe.inf
1023 !endif