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
217 [LibraryClasses.common.SEC]
218 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
219 !ifndef $(DEBUG_ON_HYPERVISOR_CONSOLE)
220 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
222 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
223 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
224 !if $(SOURCE_DEBUG_ENABLE) == TRUE
225 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
227 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
228 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
229 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
230 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
231 !if $(TOOL_CHAIN_TAG) == "XCODE5"
232 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
234 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
237 [LibraryClasses.common.PEI_CORE]
238 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
239 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
240 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
241 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
242 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
243 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
244 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
245 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
246 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
248 [LibraryClasses.common.PEIM]
249 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
250 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
251 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
252 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
253 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
254 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
255 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
256 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
257 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
258 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
259 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
260 !if $(SOURCE_DEBUG_ENABLE) == TRUE
261 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
263 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
264 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
265 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
266 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
267 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
269 [LibraryClasses.common.DXE_CORE]
270 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
271 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
272 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
273 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
274 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
275 !if $(SOURCE_DEBUG_ENABLE) == TRUE
276 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
278 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
279 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
281 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
282 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
283 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
284 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
285 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
286 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
287 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
288 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
289 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
290 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
291 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
293 [LibraryClasses.common.UEFI_DRIVER]
294 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
295 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
296 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
297 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
298 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
299 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
300 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
301 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
303 [LibraryClasses.common.DXE_DRIVER]
304 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
305 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
306 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
307 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
308 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
309 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
310 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
311 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
312 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
313 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
314 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
315 !if $(SOURCE_DEBUG_ENABLE) == TRUE
316 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
318 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
319 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
320 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
322 [LibraryClasses.common.UEFI_APPLICATION]
323 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
324 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
325 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
326 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
327 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
328 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
330 ################################################################################
332 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
334 ################################################################################
336 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
337 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
338 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
339 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
340 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
341 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
343 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
347 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
348 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
349 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
350 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
351 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
352 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
353 !if $(NETWORK_TLS_ENABLE) == FALSE
354 # match PcdFlashNvStorageVariableSize purely for convenience
355 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
358 !if $(FD_SIZE_IN_KB) == 4096
359 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
360 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
361 !if $(NETWORK_TLS_ENABLE) == FALSE
362 # match PcdFlashNvStorageVariableSize purely for convenience
363 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
366 !if $(NETWORK_TLS_ENABLE) == TRUE
367 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
368 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
371 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
372 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
373 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
375 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
377 # DEBUG_INIT 0x00000001 // Initialization
378 # DEBUG_WARN 0x00000002 // Warnings
379 # DEBUG_LOAD 0x00000004 // Load events
380 # DEBUG_FS 0x00000008 // EFI File system
381 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
382 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
383 # DEBUG_INFO 0x00000040 // Informational debug messages
384 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
385 # DEBUG_VARIABLE 0x00000100 // Variable
386 # DEBUG_BM 0x00000400 // Boot Manager
387 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
388 # DEBUG_NET 0x00004000 // SNP Driver
389 # DEBUG_UNDI 0x00010000 // UNDI Driver
390 # DEBUG_LOADFILE 0x00020000 // LoadFile
391 # DEBUG_EVENT 0x00080000 // Event messages
392 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
393 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
394 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
395 # // significantly impact boot performance
396 # DEBUG_ERROR 0x80000000 // Error
397 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
399 !if $(SOURCE_DEBUG_ENABLE) == TRUE
400 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
402 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
405 # This PCD is used to set the base address of the PCI express hierarchy. It
406 # is only consulted when OVMF runs on Q35. In that case it is programmed into
407 # the PCIEXBAR register.
409 # On Q35 machine types that QEMU intends to support in the long term, QEMU
410 # never lets the RAM below 4 GB exceed 2816 MB.
411 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
413 !if $(SOURCE_DEBUG_ENABLE) == TRUE
414 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
420 !include NetworkPkg/NetworkPcds.dsc.inc
422 !ifdef $(DEBUG_ON_HYPERVISOR_CONSOLE)
423 ## Set Xen's debug IO port for PlatformDebugLibIoPort
424 gUefiOvmfPkgTokenSpaceGuid.PcdDebugIoPort|0xe9
427 # IRQs 5, 9, 10, 11 are level-triggered
428 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
430 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
431 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
433 ## Xen vlapic's frequence is 100 MHz
434 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|100000000
436 ################################################################################
438 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
440 ################################################################################
443 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
444 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
445 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
446 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
447 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
448 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
449 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
450 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
451 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
452 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
453 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
454 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
455 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
456 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
457 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
459 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
461 # Set video resolution for text setup.
462 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
463 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
465 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
466 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
467 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
469 # Noexec settings for DXE.
470 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
472 # Set memory encryption mask
473 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
475 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
477 ################################################################################
479 # Components Section - list of all EDK II Modules needed by this Platform.
481 ################################################################################
483 OvmfPkg/XenResetVector/XenResetVector.inf
488 OvmfPkg/Sec/SecMain.inf {
490 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
496 MdeModulePkg/Core/Pei/PeiMain.inf
497 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
499 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
501 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
503 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
505 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
507 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
509 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
511 OvmfPkg/XenPlatformPei/XenPlatformPei.inf
512 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
513 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
518 MdeModulePkg/Core/Dxe/DxeMain.inf {
520 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
521 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
524 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
525 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
526 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
528 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
531 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
533 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
535 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
536 OvmfPkg/XenTimerDxe/XenTimerDxe.inf
537 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
538 UefiCpuPkg/CpuDxe/CpuDxe.inf
539 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
540 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
541 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
543 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
544 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
546 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
548 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
550 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
551 MdeModulePkg/Universal/Metronome/Metronome.inf
552 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
553 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
554 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
557 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
558 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
561 MdeModulePkg/Logo/LogoDxe.inf
562 MdeModulePkg/Application/UiApp/UiApp.inf {
564 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
565 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
566 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
568 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
569 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
572 OvmfPkg/XenIoPvhDxe/XenIoPvhDxe.inf
573 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
574 OvmfPkg/XenBusDxe/XenBusDxe.inf
575 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
576 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf {
578 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
580 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
581 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
582 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
583 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
584 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
585 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
587 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
589 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
590 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
592 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
593 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
595 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
596 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
597 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
598 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
599 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
600 FatPkg/EnhancedFatDxe/Fat.inf
601 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
602 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
603 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
604 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
605 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
606 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
607 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
608 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
609 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
610 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
611 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
613 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
614 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
619 OvmfPkg/SioBusDxe/SioBusDxe.inf
620 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
621 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
626 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
628 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
630 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
635 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
636 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
637 OvmfPkg/AcpiTables/AcpiTables.inf
638 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
639 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
640 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
645 !include NetworkPkg/NetworkComponents.dsc.inc
647 !if $(NETWORK_TLS_ENABLE) == TRUE
648 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
650 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
657 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
658 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
659 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
660 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
661 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
662 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
665 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
667 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
669 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
670 OvmfPkg/Csm/Csm16/Csm16.inf
673 !if $(TOOL_CHAIN_TAG) != "XCODE5"
674 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
676 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
678 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
680 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
683 ShellPkg/Application/Shell/Shell.inf {
685 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
686 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
687 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
688 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
689 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
690 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
691 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
692 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
693 !if $(NETWORK_IP6_ENABLE) == TRUE
694 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
696 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
697 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
698 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
701 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
702 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
703 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
706 OvmfPkg/PlatformDxe/Platform.inf
707 OvmfPkg/AmdSevDxe/AmdSevDxe.inf
708 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
711 # Variable driver stack (non-SMM)
713 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
714 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
716 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
718 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
719 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
721 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf