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.
8 # SPDX-License-Identifier: BSD-2-Clause-Patent
12 ################################################################################
14 # Defines Section - statements that will be processed to create a Makefile.
16 ################################################################################
19 PLATFORM_GUID = e3aa4fbe-9459-482d-bd40-d3f3b5f89d6e
20 PLATFORM_VERSION = 0.1
21 DSC_SPECIFICATION = 0x00010005
22 OUTPUT_DIRECTORY = Build/OvmfXen
23 SUPPORTED_ARCHITECTURES = X64
24 BUILD_TARGETS = NOOPT|DEBUG|RELEASE
25 SKUID_IDENTIFIER = DEFAULT
26 FLASH_DEFINITION = OvmfPkg/OvmfXen.fdf
29 # Defines for default states. These can be changed on the command line.
32 DEFINE SOURCE_DEBUG_ENABLE = FALSE
37 DEFINE NETWORK_TLS_ENABLE = FALSE
38 DEFINE NETWORK_IP6_ENABLE = FALSE
39 DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
40 DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
42 !include NetworkPkg/NetworkDefines.dsc.inc
45 # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
46 # one of the supported values, in place of any of the convenience macros, is
50 DEFINE FD_SIZE_IN_KB = 1024
53 DEFINE FD_SIZE_IN_KB = 2048
56 DEFINE FD_SIZE_IN_KB = 4096
58 DEFINE FD_SIZE_IN_KB = 2048
64 GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
65 INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
66 MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
67 !if $(TOOL_CHAIN_TAG) != "XCODE5"
68 GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
70 !if $(SOURCE_DEBUG_ENABLE) == TRUE
71 MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
72 GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
73 INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
77 # Disable deprecated APIs.
79 MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
80 INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
81 GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
83 [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
84 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
85 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
86 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
87 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
89 # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
90 # protection of DXE_SMM_DRIVER/SMM_CORE modules
91 [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
92 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
93 XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
94 XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
95 CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
97 ################################################################################
99 # SKU Identification section - list of all SKU IDs supported by this Platform.
101 ################################################################################
105 ################################################################################
107 # Library Class section - list of all Library Classes needed by this Platform.
109 ################################################################################
111 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
112 TimerLib|MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf
113 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
114 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
115 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
116 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
117 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
118 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
119 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
120 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
121 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
122 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
123 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
124 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
125 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
126 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
127 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
128 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
129 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
130 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
131 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
132 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
133 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
134 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
135 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
136 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
137 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
138 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
139 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
140 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
141 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
142 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
143 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
144 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
145 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
146 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
147 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
148 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
149 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
150 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
151 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
152 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
153 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
154 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
155 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
156 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
157 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
158 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
159 QemuLoadImageLib|OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.inf
160 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/BaseMemEncryptSevLib.inf
161 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
162 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
163 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
165 !if $(SOURCE_DEBUG_ENABLE) == TRUE
166 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
167 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
169 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
170 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
173 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
174 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
176 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
177 !if $(NETWORK_TLS_ENABLE) == TRUE
178 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
180 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
183 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
184 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
190 !include NetworkPkg/NetworkLibs.dsc.inc
192 !if $(NETWORK_TLS_ENABLE) == TRUE
193 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
196 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
197 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
198 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
199 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
200 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
201 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
202 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
203 XenIoMmioLib|OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.inf
205 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
206 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
207 RealTimeClockLib|OvmfPkg/Library/XenRealTimeClockLib/XenRealTimeClockLib.inf
208 !ifdef $(DEBUG_ON_HYPERVISOR_CONSOLE)
209 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPortNocheck.inf
211 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
214 [LibraryClasses.common]
215 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
216 VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
218 [LibraryClasses.common.SEC]
219 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
220 !ifndef $(DEBUG_ON_HYPERVISOR_CONSOLE)
221 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
223 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
224 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
225 !if $(SOURCE_DEBUG_ENABLE) == TRUE
226 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
228 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
229 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
230 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
231 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
232 !if $(TOOL_CHAIN_TAG) == "XCODE5"
233 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
235 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
238 [LibraryClasses.common.PEI_CORE]
239 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
240 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
241 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
242 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
243 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
244 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
245 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
246 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
247 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
249 [LibraryClasses.common.PEIM]
250 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
251 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
252 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
253 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
254 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
255 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
256 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
257 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
258 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
259 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
260 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
261 !if $(SOURCE_DEBUG_ENABLE) == TRUE
262 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
264 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
265 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
266 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
267 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
268 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
270 [LibraryClasses.common.DXE_CORE]
271 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
272 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
273 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
274 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
275 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
276 !if $(SOURCE_DEBUG_ENABLE) == TRUE
277 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
279 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
280 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
282 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
283 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
284 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
285 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
286 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
287 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
288 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
289 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
290 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
291 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
292 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
294 [LibraryClasses.common.UEFI_DRIVER]
295 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
296 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
297 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
298 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
299 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
300 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
301 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
302 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
304 [LibraryClasses.common.DXE_DRIVER]
305 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
306 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
307 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
308 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
309 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
310 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
311 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
312 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
313 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
314 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
315 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
316 !if $(SOURCE_DEBUG_ENABLE) == TRUE
317 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
319 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
320 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
321 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
323 [LibraryClasses.common.UEFI_APPLICATION]
324 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
325 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
326 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
327 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
328 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
329 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
331 ################################################################################
333 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
335 ################################################################################
337 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
338 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
339 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
340 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
341 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
342 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
344 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
348 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
349 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
350 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
351 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
352 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
353 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
354 !if $(NETWORK_TLS_ENABLE) == FALSE
355 # match PcdFlashNvStorageVariableSize purely for convenience
356 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
359 !if $(FD_SIZE_IN_KB) == 4096
360 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
361 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
362 !if $(NETWORK_TLS_ENABLE) == FALSE
363 # match PcdFlashNvStorageVariableSize purely for convenience
364 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
367 !if $(NETWORK_TLS_ENABLE) == TRUE
368 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
369 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
372 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
373 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
374 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
376 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
378 # DEBUG_INIT 0x00000001 // Initialization
379 # DEBUG_WARN 0x00000002 // Warnings
380 # DEBUG_LOAD 0x00000004 // Load events
381 # DEBUG_FS 0x00000008 // EFI File system
382 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
383 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
384 # DEBUG_INFO 0x00000040 // Informational debug messages
385 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
386 # DEBUG_VARIABLE 0x00000100 // Variable
387 # DEBUG_BM 0x00000400 // Boot Manager
388 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
389 # DEBUG_NET 0x00004000 // SNP Driver
390 # DEBUG_UNDI 0x00010000 // UNDI Driver
391 # DEBUG_LOADFILE 0x00020000 // LoadFile
392 # DEBUG_EVENT 0x00080000 // Event messages
393 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
394 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
395 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
396 # // significantly impact boot performance
397 # DEBUG_ERROR 0x80000000 // Error
398 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
400 !if $(SOURCE_DEBUG_ENABLE) == TRUE
401 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
403 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
406 # This PCD is used to set the base address of the PCI express hierarchy. It
407 # is only consulted when OVMF runs on Q35. In that case it is programmed into
408 # the PCIEXBAR register.
410 # On Q35 machine types that QEMU intends to support in the long term, QEMU
411 # never lets the RAM below 4 GB exceed 2816 MB.
412 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
414 !if $(SOURCE_DEBUG_ENABLE) == TRUE
415 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
421 !include NetworkPkg/NetworkPcds.dsc.inc
423 !ifdef $(DEBUG_ON_HYPERVISOR_CONSOLE)
424 ## Set Xen's debug IO port for PlatformDebugLibIoPort
425 gUefiOvmfPkgTokenSpaceGuid.PcdDebugIoPort|0xe9
428 # IRQs 5, 9, 10, 11 are level-triggered
429 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
431 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
432 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
434 ## Xen vlapic's frequence is 100 MHz
435 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|100000000
437 ################################################################################
439 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
441 ################################################################################
444 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
445 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
446 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
447 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
448 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
449 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
450 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
451 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
452 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
453 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
454 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
455 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
456 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
457 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
458 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
460 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
462 # Set video resolution for text setup.
463 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
464 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
466 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
467 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
468 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
470 # Noexec settings for DXE.
471 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
473 # Set memory encryption mask
474 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
476 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
478 ################################################################################
480 # Components Section - list of all EDK II Modules needed by this Platform.
482 ################################################################################
484 OvmfPkg/XenResetVector/XenResetVector.inf
489 OvmfPkg/Sec/SecMain.inf {
491 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
497 MdeModulePkg/Core/Pei/PeiMain.inf
498 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
500 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
502 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
504 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
506 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
508 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
510 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
512 OvmfPkg/XenPlatformPei/XenPlatformPei.inf
513 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
514 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
519 MdeModulePkg/Core/Dxe/DxeMain.inf {
521 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
522 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
525 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
526 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
527 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
529 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
532 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
534 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
536 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
537 OvmfPkg/XenTimerDxe/XenTimerDxe.inf
538 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
539 UefiCpuPkg/CpuDxe/CpuDxe.inf
540 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
541 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
542 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
544 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
545 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
547 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
549 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
551 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
552 MdeModulePkg/Universal/Metronome/Metronome.inf
553 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
554 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
555 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
558 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
559 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
562 MdeModulePkg/Logo/LogoDxe.inf
563 MdeModulePkg/Application/UiApp/UiApp.inf {
565 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
566 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
567 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
569 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
570 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
573 OvmfPkg/XenIoPvhDxe/XenIoPvhDxe.inf
574 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
575 OvmfPkg/XenBusDxe/XenBusDxe.inf
576 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
577 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf {
579 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
581 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
582 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
583 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
584 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
585 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
586 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
588 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
590 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
591 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
593 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
594 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
596 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
597 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
598 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
599 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
600 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
601 FatPkg/EnhancedFatDxe/Fat.inf
602 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
603 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
604 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
605 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
606 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
607 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
608 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
609 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
610 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
611 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
612 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
614 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
615 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
620 OvmfPkg/SioBusDxe/SioBusDxe.inf
621 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
622 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
627 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
629 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
631 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
636 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
637 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
638 OvmfPkg/AcpiTables/AcpiTables.inf
639 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
640 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
641 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
646 !include NetworkPkg/NetworkComponents.dsc.inc
648 !if $(NETWORK_TLS_ENABLE) == TRUE
649 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
651 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
658 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
659 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
660 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
661 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
662 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
663 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
666 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
668 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
670 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
671 OvmfPkg/Csm/Csm16/Csm16.inf
674 !if $(TOOL_CHAIN_TAG) != "XCODE5"
675 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
677 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
679 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
681 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
684 ShellPkg/Application/Shell/Shell.inf {
686 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
687 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
688 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
689 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
690 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
691 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
692 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
693 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
694 !if $(NETWORK_IP6_ENABLE) == TRUE
695 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
697 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
698 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
699 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
702 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
703 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
704 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
707 OvmfPkg/PlatformDxe/Platform.inf
708 OvmfPkg/AmdSevDxe/AmdSevDxe.inf
709 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
712 # Variable driver stack (non-SMM)
714 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
715 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
717 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
719 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
720 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
722 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf