]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgIa32.dsc
985e34b2cac8f985bf2431337f50702c3b036ec7
[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/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/OvmfTpmLibs.dsc.inc
256
257 [LibraryClasses.common]
258 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
259 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
260
261 [LibraryClasses.common.SEC]
262 TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
263 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
264 !ifdef $(DEBUG_ON_SERIAL_PORT)
265 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
266 !else
267 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
268 !endif
269 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
270 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
271 !if $(SOURCE_DEBUG_ENABLE) == TRUE
272 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
273 !endif
274 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
275 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
276 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
277 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
278 !if $(TOOL_CHAIN_TAG) == "XCODE5"
279 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
280 !else
281 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
282 !endif
283 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
284
285 [LibraryClasses.common.PEI_CORE]
286 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
287 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
288 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
289 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
290 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
291 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
292 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
293 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
294 !ifdef $(DEBUG_ON_SERIAL_PORT)
295 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
296 !else
297 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
298 !endif
299 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
300
301 [LibraryClasses.common.PEIM]
302 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
303 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
304 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
305 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
306 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
307 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
308 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
309 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
310 !ifdef $(DEBUG_ON_SERIAL_PORT)
311 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
312 !else
313 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
314 !endif
315 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
316 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
317 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
318 !if $(SOURCE_DEBUG_ENABLE) == TRUE
319 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
320 !endif
321 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
322 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
323 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
324 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
325 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
326 PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
327
328 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
329
330 [LibraryClasses.common.DXE_CORE]
331 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
332 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
333 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
334 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
335 !ifdef $(DEBUG_ON_SERIAL_PORT)
336 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
337 !else
338 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
339 !endif
340 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
341 !if $(SOURCE_DEBUG_ENABLE) == TRUE
342 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
343 !endif
344 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
345 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
346
347 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
348 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
349 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
350 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
351 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
352 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
353 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
354 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
355 !ifdef $(DEBUG_ON_SERIAL_PORT)
356 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
357 !else
358 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
359 !endif
360 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
361 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
362 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
363 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
364 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
365 !if $(SMM_REQUIRE) == TRUE
366 MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
367 !endif
368
369 [LibraryClasses.common.UEFI_DRIVER]
370 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
371 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
372 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
373 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
374 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
375 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
376 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
377 !ifdef $(DEBUG_ON_SERIAL_PORT)
378 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
379 !else
380 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
381 !endif
382 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
383 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
384
385 [LibraryClasses.common.DXE_DRIVER]
386 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
387 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
388 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
389 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
390 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
391 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
392 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
393 !ifdef $(DEBUG_ON_SERIAL_PORT)
394 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
395 !else
396 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
397 !endif
398 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
399 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
400 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
401 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
402 !if $(SMM_REQUIRE) == TRUE
403 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
404 !else
405 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
406 !endif
407 !if $(SOURCE_DEBUG_ENABLE) == TRUE
408 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
409 !endif
410 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
411 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
412 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
413 QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
414
415 [LibraryClasses.common.UEFI_APPLICATION]
416 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
417 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
418 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
419 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
420 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
421 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
422 !ifdef $(DEBUG_ON_SERIAL_PORT)
423 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
424 !else
425 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
426 !endif
427 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
428
429 [LibraryClasses.common.DXE_SMM_DRIVER]
430 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
431 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
432 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
433 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
434 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
435 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
436 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
437 MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
438 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
439 !ifdef $(DEBUG_ON_SERIAL_PORT)
440 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
441 !else
442 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
443 !endif
444 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
445 !if $(SOURCE_DEBUG_ENABLE) == TRUE
446 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
447 !endif
448 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
449 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
450 SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
451
452 [LibraryClasses.common.SMM_CORE]
453 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
454 TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
455 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
456 SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
457 MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
458 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
459 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
460 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
461 SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
462 !ifdef $(DEBUG_ON_SERIAL_PORT)
463 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
464 !else
465 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
466 !endif
467 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
468
469 ################################################################################
470 #
471 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
472 #
473 ################################################################################
474 [PcdsFeatureFlag]
475 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
476 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
477 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
478 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
479 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
480 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
481 !ifdef $(CSM_ENABLE)
482 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
483 !endif
484 !if $(SMM_REQUIRE) == TRUE
485 gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
486 gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
487 gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
488 !endif
489
490 [PcdsFixedAtBuild]
491 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
492 !if $(SMM_REQUIRE) == FALSE
493 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
494 !endif
495 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
496 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
497 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
498 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
499 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
500 !if $(NETWORK_TLS_ENABLE) == FALSE
501 # match PcdFlashNvStorageVariableSize purely for convenience
502 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
503 !endif
504 !endif
505 !if $(FD_SIZE_IN_KB) == 4096
506 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
507 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
508 !if $(NETWORK_TLS_ENABLE) == FALSE
509 # match PcdFlashNvStorageVariableSize purely for convenience
510 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
511 !endif
512 !endif
513 !if $(NETWORK_TLS_ENABLE) == TRUE
514 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
515 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
516 !endif
517
518 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
519 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
520 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
521
522 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
523
524 # DEBUG_INIT 0x00000001 // Initialization
525 # DEBUG_WARN 0x00000002 // Warnings
526 # DEBUG_LOAD 0x00000004 // Load events
527 # DEBUG_FS 0x00000008 // EFI File system
528 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
529 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
530 # DEBUG_INFO 0x00000040 // Informational debug messages
531 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
532 # DEBUG_VARIABLE 0x00000100 // Variable
533 # DEBUG_BM 0x00000400 // Boot Manager
534 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
535 # DEBUG_NET 0x00004000 // SNP Driver
536 # DEBUG_UNDI 0x00010000 // UNDI Driver
537 # DEBUG_LOADFILE 0x00020000 // LoadFile
538 # DEBUG_EVENT 0x00080000 // Event messages
539 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
540 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
541 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
542 # // significantly impact boot performance
543 # DEBUG_ERROR 0x80000000 // Error
544 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
545
546 !if $(SOURCE_DEBUG_ENABLE) == TRUE
547 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
548 !else
549 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
550 !endif
551
552 # This PCD is used to set the base address of the PCI express hierarchy. It
553 # is only consulted when OVMF runs on Q35. In that case it is programmed into
554 # the PCIEXBAR register.
555 #
556 # On Q35 machine types that QEMU intends to support in the long term, QEMU
557 # never lets the RAM below 4 GB exceed 2816 MB.
558 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
559
560 !if $(SOURCE_DEBUG_ENABLE) == TRUE
561 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
562 !endif
563
564 #
565 # The NumberOfPages values below are ad-hoc. They are updated sporadically at
566 # best (please refer to git-blame for past updates). The values capture a set
567 # of BIN hints that made sense at a particular time, for some (now likely
568 # unknown) workloads / boot paths.
569 #
570 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
571 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x12
572 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
573 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
574 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
575
576 #
577 # Network Pcds
578 #
579 !include NetworkPkg/NetworkPcds.dsc.inc
580
581 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
582
583 !if $(SMM_REQUIRE) == TRUE
584 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
585 !endif
586
587 # IRQs 5, 9, 10, 11 are level-triggered
588 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
589
590 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
591 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
592
593 ################################################################################
594 #
595 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
596 #
597 ################################################################################
598
599 [PcdsDynamicDefault]
600 # only set when
601 # ($(SMM_REQUIRE) == FALSE)
602 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
603
604 !if $(SMM_REQUIRE) == FALSE
605 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
606 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
607 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
608 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
609 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
610 !endif
611 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
612 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
613 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
614 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
615 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
616 gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
617 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
618 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
619 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
620 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
621 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
622
623 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
624
625 # Set video resolution for text setup.
626 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
627 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
628
629 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
630 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
631 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
632
633 # Noexec settings for DXE.
634 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
635
636 # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
637 gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
638 gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
639
640 # Set memory encryption mask
641 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
642
643 # Set Tdx shared bit mask
644 gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
645
646 # Set SEV-ES defaults
647 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
648 gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
649 gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
650
651 !if $(SMM_REQUIRE) == TRUE
652 gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
653 gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
654 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
655 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
656 !endif
657
658 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
659
660 !include OvmfPkg/OvmfTpmPcds.dsc.inc
661
662 # IPv4 and IPv6 PXE Boot support.
663 gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
664 gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
665
666 # Set ConfidentialComputing defaults
667 gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
668
669 !if $(CSM_ENABLE) == FALSE
670 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
671 !endif
672
673 [PcdsDynamicHii]
674 !include OvmfPkg/OvmfTpmPcdsHii.dsc.inc
675
676 ################################################################################
677 #
678 # Components Section - list of all EDK II Modules needed by this Platform.
679 #
680 ################################################################################
681 [Components]
682 OvmfPkg/ResetVector/ResetVector.inf
683
684 #
685 # SEC Phase modules
686 #
687 OvmfPkg/Sec/SecMain.inf {
688 <LibraryClasses>
689 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
690 }
691
692 #
693 # PEI Phase modules
694 #
695 MdeModulePkg/Core/Pei/PeiMain.inf
696 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
697 <LibraryClasses>
698 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
699 }
700 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
701 <LibraryClasses>
702 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
703 }
704 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
705 <LibraryClasses>
706 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
707 }
708 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
709
710 OvmfPkg/PlatformPei/PlatformPei.inf
711 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
712 <LibraryClasses>
713 !if $(SMM_REQUIRE) == TRUE
714 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
715 !endif
716 }
717 !if $(SMM_REQUIRE) == TRUE
718 MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
719 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
720 OvmfPkg/SmmAccess/SmmAccessPei.inf
721 !endif
722 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
723
724 !include OvmfPkg/OvmfTpmComponentsPei.dsc.inc
725
726 #
727 # DXE Phase modules
728 #
729 MdeModulePkg/Core/Dxe/DxeMain.inf {
730 <LibraryClasses>
731 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
732 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
733 }
734
735 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
736 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
737 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
738 <LibraryClasses>
739 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
740 }
741
742 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
743
744 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
745 <LibraryClasses>
746 !if $(SECURE_BOOT_ENABLE) == TRUE
747 NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
748 !endif
749 !include OvmfPkg/OvmfTpmSecurityStub.dsc.inc
750 }
751
752 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
753 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
754 UefiCpuPkg/CpuDxe/CpuDxe.inf
755 !ifdef $(CSM_ENABLE)
756 OvmfPkg/8259InterruptControllerDxe/8259.inf
757 OvmfPkg/8254TimerDxe/8254Timer.inf
758 !else
759 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
760 !endif
761 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
762 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
763 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
764 <LibraryClasses>
765 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
766 PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
767 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
768 }
769 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
770 <LibraryClasses>
771 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
772 }
773 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
774 MdeModulePkg/Universal/Metronome/Metronome.inf
775 PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
776 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
777 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
778 <LibraryClasses>
779 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
780 !ifdef $(CSM_ENABLE)
781 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
782 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
783 !endif
784 }
785 MdeModulePkg/Logo/LogoDxe.inf
786 MdeModulePkg/Application/UiApp/UiApp.inf {
787 <LibraryClasses>
788 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
789 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
790 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
791 !ifdef $(CSM_ENABLE)
792 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
793 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
794 !endif
795 }
796 OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
797 <LibraryClasses>
798 NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
799 }
800 OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
801 OvmfPkg/Virtio10Dxe/Virtio10.inf
802 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
803 OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
804 OvmfPkg/VirtioRngDxe/VirtioRng.inf
805 !if $(PVSCSI_ENABLE) == TRUE
806 OvmfPkg/PvScsiDxe/PvScsiDxe.inf
807 !endif
808 !if $(MPT_SCSI_ENABLE) == TRUE
809 OvmfPkg/MptScsiDxe/MptScsiDxe.inf
810 !endif
811 !if $(LSI_SCSI_ENABLE) == TRUE
812 OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
813 !endif
814 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
815 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
816 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
817 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
818 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
819 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
820 <LibraryClasses>
821 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
822 }
823 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
824 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
825 <LibraryClasses>
826 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
827 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
828 }
829 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
830 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
831 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
832 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
833 FatPkg/EnhancedFatDxe/Fat.inf
834 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
835 OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
836 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
837 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
838 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
839 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
840 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
841 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
842 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
843 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
844 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
845 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
846
847 !ifndef $(CSM_ENABLE)
848 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
849 !endif
850 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
851 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
852
853 #
854 # ISA Support
855 #
856 OvmfPkg/SioBusDxe/SioBusDxe.inf
857 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
858 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
859
860 #
861 # SMBIOS Support
862 #
863 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
864 <LibraryClasses>
865 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
866 }
867 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
868
869 #
870 # ACPI Support
871 #
872 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
873 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
874 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
875 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
876 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
877
878 #
879 # Network Support
880 #
881 !include NetworkPkg/NetworkComponents.dsc.inc
882
883 NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf {
884 <LibraryClasses>
885 NULL|OvmfPkg/Library/PxeBcPcdProducerLib/PxeBcPcdProducerLib.inf
886 }
887
888 !if $(NETWORK_TLS_ENABLE) == TRUE
889 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
890 <LibraryClasses>
891 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
892 }
893 !endif
894 OvmfPkg/VirtioNetDxe/VirtioNet.inf
895
896 #
897 # Usb Support
898 #
899 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
900 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
901 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
902 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
903 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
904 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
905
906 !ifdef $(CSM_ENABLE)
907 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
908 <LibraryClasses>
909 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
910 }
911 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
912 OvmfPkg/Csm/Csm16/Csm16.inf
913 !endif
914
915 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
916 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
917 <PcdsFixedAtBuild>
918 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
919 }
920 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
921 <PcdsFixedAtBuild>
922 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
923 }
924 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
925 <PcdsFixedAtBuild>
926 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
927 }
928 !endif
929 !if $(BUILD_SHELL) == TRUE
930 ShellPkg/Application/Shell/Shell.inf {
931 <LibraryClasses>
932 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
933 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
934 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
935 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
936 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
937 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
938 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
939 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
940 !if $(NETWORK_IP6_ENABLE) == TRUE
941 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
942 !endif
943 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
944 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
945 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
946
947 <PcdsFixedAtBuild>
948 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
949 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
950 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
951 }
952 !endif
953
954 !if $(SECURE_BOOT_ENABLE) == TRUE
955 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
956 OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
957 !endif
958
959 OvmfPkg/PlatformDxe/Platform.inf
960 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
961
962 !if $(SMM_REQUIRE) == TRUE
963 OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
964 OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
965 OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
966
967 #
968 # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
969 #
970 MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
971
972 #
973 # SMM_CORE
974 #
975 MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
976
977 #
978 # Privileged drivers (DXE_SMM_DRIVER modules)
979 #
980 OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
981 UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
982 MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
983 <LibraryClasses>
984 LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
985 }
986 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
987 <LibraryClasses>
988 SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
989 SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
990 }
991
992 #
993 # Variable driver stack (SMM)
994 #
995 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
996 <LibraryClasses>
997 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
998 }
999 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
1000 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
1001 <LibraryClasses>
1002 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1003 NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
1004 }
1005 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
1006
1007 !else
1008
1009 #
1010 # Variable driver stack (non-SMM)
1011 #
1012 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
1013 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
1014 <LibraryClasses>
1015 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
1016 }
1017 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
1018 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
1019 <LibraryClasses>
1020 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
1021 }
1022 !endif
1023
1024 #
1025 # TPM support
1026 #
1027 !include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc
1028
1029 !if $(LOAD_X64_ON_IA32_ENABLE) == TRUE
1030 OvmfPkg/CompatImageLoaderDxe/CompatImageLoaderDxe.inf
1031 !endif