2 # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
4 # Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.<BR>
5 # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
6 # Copyright (c) 2019, Citrix Systems, Inc.
7 # Copyright (c) Microsoft Corporation.
9 # SPDX-License-Identifier: BSD-2-Clause-Patent
13 ################################################################################
15 # Defines Section - statements that will be processed to create a Makefile.
17 ################################################################################
20 PLATFORM_GUID = e3aa4fbe-9459-482d-bd40-d3f3b5f89d6e
21 PLATFORM_VERSION = 0.1
22 DSC_SPECIFICATION = 0x00010005
23 OUTPUT_DIRECTORY = Build/OvmfXen
24 SUPPORTED_ARCHITECTURES = X64
25 BUILD_TARGETS = NOOPT|DEBUG|RELEASE
26 SKUID_IDENTIFIER = DEFAULT
27 FLASH_DEFINITION = OvmfPkg/OvmfXen.fdf
30 # Defines for default states. These can be changed on the command line.
33 DEFINE SOURCE_DEBUG_ENABLE = FALSE
38 DEFINE NETWORK_TLS_ENABLE = FALSE
39 DEFINE NETWORK_IP6_ENABLE = FALSE
40 DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
41 DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
42 DEFINE NETWORK_ISCSI_ENABLE = TRUE
44 !include NetworkPkg/NetworkDefines.dsc.inc
47 # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
48 # one of the supported values, in place of any of the convenience macros, is
52 DEFINE FD_SIZE_IN_KB = 1024
55 DEFINE FD_SIZE_IN_KB = 2048
58 DEFINE FD_SIZE_IN_KB = 4096
60 DEFINE FD_SIZE_IN_KB = 2048
66 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
67 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
68 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
69 !if $(TOOL_CHAIN_TAG) != "XCODE5"
70 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
72 !if $(SOURCE_DEBUG_ENABLE) == TRUE
73 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
74 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
75 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
79 # Disable deprecated APIs.
81 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
82 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
83 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
85 !include NetworkPkg/NetworkBuildOptions.dsc.inc
87 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
88 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
89 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
90 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
91 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
93 # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
94 # protection of DXE_SMM_DRIVER/SMM_CORE modules
95 [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
96 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
97 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
98 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
99 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
101 ################################################################################
103 # SKU Identification section - list of all SKU IDs supported by this Platform.
105 ################################################################################
109 ################################################################################
111 # Library Class section - list of all Library Classes needed by this Platform.
113 ################################################################################
115 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
116 TimerLib|MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf
117 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
118 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
119 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
120 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
121 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
122 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
123 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
124 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
125 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
126 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
127 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
128 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
129 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
130 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
131 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
132 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
133 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
134 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
135 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
136 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
137 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
138 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
139 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
140 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
141 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
142 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
143 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
144 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
145 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
146 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
147 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
148 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
149 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
150 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
151 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
152 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
153 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
154 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
155 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
156 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
157 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
158 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
159 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
160 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
161 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
162 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
163 QemuLoadImageLib|OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.inf
164 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/BaseMemEncryptSevLib.inf
165 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
166 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
167 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
169 !if $(SOURCE_DEBUG_ENABLE) == TRUE
170 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
171 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
173 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
174 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
177 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
178 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
180 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
181 !if $(NETWORK_TLS_ENABLE) == TRUE
182 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
184 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
186 RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
188 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
189 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
190 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
191 VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
197 !include NetworkPkg/NetworkLibs.dsc.inc
199 !if $(NETWORK_TLS_ENABLE) == TRUE
200 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
203 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
204 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
205 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
206 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
207 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
208 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
209 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
210 XenIoMmioLib|OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.inf
212 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
213 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
214 RealTimeClockLib|OvmfPkg/Library/XenRealTimeClockLib/XenRealTimeClockLib.inf
215 !ifdef $(DEBUG_ON_HYPERVISOR_CONSOLE)
216 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPortNocheck.inf
218 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
221 [LibraryClasses.common]
222 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
223 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
225 [LibraryClasses.common.SEC]
226 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
227 !ifndef $(DEBUG_ON_HYPERVISOR_CONSOLE)
228 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
230 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
231 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
232 !if $(SOURCE_DEBUG_ENABLE) == TRUE
233 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
235 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
236 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
237 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
238 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
239 !if $(TOOL_CHAIN_TAG) == "XCODE5"
240 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
242 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
245 [LibraryClasses.common.PEI_CORE]
246 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
247 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
248 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
249 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
250 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
251 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
252 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
253 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
254 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
256 [LibraryClasses.common.PEIM]
257 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
258 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
259 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
260 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
261 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
262 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
263 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
264 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
265 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
266 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
267 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
268 !if $(SOURCE_DEBUG_ENABLE) == TRUE
269 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
271 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
272 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
273 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
274 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
275 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
277 [LibraryClasses.common.DXE_CORE]
278 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
279 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
280 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
281 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
282 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
283 !if $(SOURCE_DEBUG_ENABLE) == TRUE
284 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
286 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
287 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
289 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
290 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
291 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
292 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
293 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
294 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
295 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
296 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
297 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
298 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
299 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
300 VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
302 [LibraryClasses.common.UEFI_DRIVER]
303 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
304 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
305 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
306 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
307 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
308 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
309 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
310 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
312 [LibraryClasses.common.DXE_DRIVER]
313 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
314 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
315 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
316 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
317 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
318 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
319 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
320 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
321 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
322 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
323 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
324 !if $(SOURCE_DEBUG_ENABLE) == TRUE
325 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
327 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
328 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
329 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
331 [LibraryClasses.common.UEFI_APPLICATION]
332 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
333 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
334 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
335 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
336 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
337 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
339 ################################################################################
341 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
343 ################################################################################
345 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
346 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
347 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
348 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
349 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
350 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
352 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
356 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
357 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
358 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
359 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
360 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
361 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
362 !if $(NETWORK_TLS_ENABLE) == FALSE
363 # match PcdFlashNvStorageVariableSize purely for convenience
364 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
367 !if $(FD_SIZE_IN_KB) == 4096
368 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
369 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
370 !if $(NETWORK_TLS_ENABLE) == FALSE
371 # match PcdFlashNvStorageVariableSize purely for convenience
372 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
375 !if $(NETWORK_TLS_ENABLE) == TRUE
376 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
377 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
380 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
381 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
382 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
384 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
386 # DEBUG_INIT 0x00000001 // Initialization
387 # DEBUG_WARN 0x00000002 // Warnings
388 # DEBUG_LOAD 0x00000004 // Load events
389 # DEBUG_FS 0x00000008 // EFI File system
390 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
391 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
392 # DEBUG_INFO 0x00000040 // Informational debug messages
393 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
394 # DEBUG_VARIABLE 0x00000100 // Variable
395 # DEBUG_BM 0x00000400 // Boot Manager
396 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
397 # DEBUG_NET 0x00004000 // SNP Driver
398 # DEBUG_UNDI 0x00010000 // UNDI Driver
399 # DEBUG_LOADFILE 0x00020000 // LoadFile
400 # DEBUG_EVENT 0x00080000 // Event messages
401 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
402 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
403 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
404 # // significantly impact boot performance
405 # DEBUG_ERROR 0x80000000 // Error
406 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
408 !if $(SOURCE_DEBUG_ENABLE) == TRUE
409 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
411 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
414 # This PCD is used to set the base address of the PCI express hierarchy. It
415 # is only consulted when OVMF runs on Q35. In that case it is programmed into
416 # the PCIEXBAR register.
418 # On Q35 machine types that QEMU intends to support in the long term, QEMU
419 # never lets the RAM below 4 GB exceed 2816 MB.
420 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
422 !if $(SOURCE_DEBUG_ENABLE) == TRUE
423 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
429 !include NetworkPkg/NetworkPcds.dsc.inc
431 !ifdef $(DEBUG_ON_HYPERVISOR_CONSOLE)
432 ## Set Xen's debug IO port for PlatformDebugLibIoPort
433 gUefiOvmfPkgTokenSpaceGuid.PcdDebugIoPort|0xe9
436 # IRQs 5, 9, 10, 11 are level-triggered
437 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
439 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
440 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
442 ## Xen vlapic's frequence is 100 MHz
443 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|100000000
445 ################################################################################
447 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
449 ################################################################################
452 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
453 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
454 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
455 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
456 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
457 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
458 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
459 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
460 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
461 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
462 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
463 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
464 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
465 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
466 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
468 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
470 # Set video resolution for text setup.
471 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
472 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
474 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
475 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
476 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
478 # Noexec settings for DXE.
479 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
481 # Set memory encryption mask
482 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
484 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
486 ################################################################################
488 # Components Section - list of all EDK II Modules needed by this Platform.
490 ################################################################################
492 OvmfPkg/XenResetVector/XenResetVector.inf
497 OvmfPkg/Sec/SecMain.inf {
499 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
505 MdeModulePkg/Core/Pei/PeiMain.inf
506 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
508 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
510 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
512 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
514 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
516 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
518 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
520 OvmfPkg/XenPlatformPei/XenPlatformPei.inf
521 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
522 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
527 MdeModulePkg/Core/Dxe/DxeMain.inf {
529 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
530 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
533 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
534 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
535 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
537 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
540 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
542 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
544 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
545 OvmfPkg/XenTimerDxe/XenTimerDxe.inf
546 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
547 UefiCpuPkg/CpuDxe/CpuDxe.inf
548 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
549 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
550 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
552 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
553 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
555 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
557 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
559 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
560 MdeModulePkg/Universal/Metronome/Metronome.inf
561 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
562 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
563 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
566 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
567 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
570 MdeModulePkg/Logo/LogoDxe.inf
571 MdeModulePkg/Application/UiApp/UiApp.inf {
573 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
574 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
575 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
577 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
578 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
581 OvmfPkg/XenIoPvhDxe/XenIoPvhDxe.inf
582 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
583 OvmfPkg/XenBusDxe/XenBusDxe.inf
584 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
585 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf {
587 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
589 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
590 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
591 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
592 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
593 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
594 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
596 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
598 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
599 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
601 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
602 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
604 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
605 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
606 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
607 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
608 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
609 FatPkg/EnhancedFatDxe/Fat.inf
610 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
611 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
612 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
613 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
614 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
615 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
616 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
617 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
618 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
619 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
620 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
622 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
623 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
628 OvmfPkg/SioBusDxe/SioBusDxe.inf
629 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
630 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
635 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
637 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
639 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
644 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
645 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
646 OvmfPkg/AcpiTables/AcpiTables.inf
647 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
648 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
649 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
654 !include NetworkPkg/NetworkComponents.dsc.inc
656 !if $(NETWORK_TLS_ENABLE) == TRUE
657 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
659 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
666 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
667 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
668 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
669 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
670 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
671 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
674 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
676 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
678 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
679 OvmfPkg/Csm/Csm16/Csm16.inf
682 !if $(TOOL_CHAIN_TAG) != "XCODE5"
683 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
685 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
687 ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
689 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
691 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
693 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
696 ShellPkg/Application/Shell/Shell.inf {
698 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
699 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
700 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
701 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
702 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
703 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
704 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
705 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
706 !if $(NETWORK_IP6_ENABLE) == TRUE
707 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
709 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
710 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
711 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
714 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
715 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
716 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
719 OvmfPkg/PlatformDxe/Platform.inf
720 OvmfPkg/AmdSevDxe/AmdSevDxe.inf
721 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
724 # Variable driver stack (non-SMM)
726 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
727 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
729 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
731 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
732 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
734 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf