2 # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
4 # Copyright (c) 2006 - 2019, 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 =
87 # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
88 # protection of DXE_SMM_DRIVER/SMM_CORE modules
89 [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
90 GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
91 XCODE:*_*_*_DLINK_FLAGS =
93 ################################################################################
95 # SKU Identification section - list of all SKU IDs supported by this Platform.
97 ################################################################################
101 ################################################################################
103 # Library Class section - list of all Library Classes needed by this Platform.
105 ################################################################################
107 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
108 TimerLib|MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf
109 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
110 BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
111 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
112 SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
113 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
114 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
115 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
116 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
117 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
118 CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
119 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
120 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
121 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
122 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
123 UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
124 BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
125 FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
126 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
127 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
128 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
129 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
130 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
131 PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
132 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
133 PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
134 PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
135 PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
136 PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
137 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
138 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
139 SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
140 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
141 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
142 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
143 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
144 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
145 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
146 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
147 NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
148 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
149 UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
150 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
151 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
152 SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
153 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
154 QemuLoadImageLib|OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.inf
155 MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/BaseMemEncryptSevLib.inf
156 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
157 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
158 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
160 !if $(SOURCE_DEBUG_ENABLE) == TRUE
161 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
162 DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
164 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
165 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
168 ResetSystemLib|OvmfPkg/Library/ResetSystemLib/ResetSystemLib.inf
169 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
170 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
172 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
173 !if $(NETWORK_TLS_ENABLE) == TRUE
174 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
176 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
179 AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
180 VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
186 !include NetworkPkg/NetworkLibs.dsc.inc
188 !if $(NETWORK_TLS_ENABLE) == TRUE
189 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
192 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
193 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
194 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
195 SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
196 OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
197 XenHypercallLib|OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf
198 XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
199 XenIoMmioLib|OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.inf
201 Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
202 TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
203 RealTimeClockLib|OvmfPkg/Library/XenRealTimeClockLib/XenRealTimeClockLib.inf
205 [LibraryClasses.common]
206 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
208 [LibraryClasses.common.SEC]
209 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
210 !ifdef $(DEBUG_ON_SERIAL_PORT)
211 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
213 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
215 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
216 ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
217 !if $(SOURCE_DEBUG_ENABLE) == TRUE
218 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
220 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
221 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
222 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
223 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
224 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
226 [LibraryClasses.common.PEI_CORE]
227 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
228 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
229 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
230 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
231 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
232 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
233 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
234 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
235 !ifdef $(DEBUG_ON_SERIAL_PORT)
236 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
238 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
240 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
242 [LibraryClasses.common.PEIM]
243 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
244 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
245 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
246 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
247 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
248 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
249 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
250 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
251 !ifdef $(DEBUG_ON_SERIAL_PORT)
252 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
254 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
256 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
257 ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
258 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
259 !if $(SOURCE_DEBUG_ENABLE) == TRUE
260 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
262 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
263 MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
264 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
265 PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
266 QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
268 [LibraryClasses.common.DXE_CORE]
269 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
270 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
271 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
272 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
273 !ifdef $(DEBUG_ON_SERIAL_PORT)
274 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
276 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
278 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
279 !if $(SOURCE_DEBUG_ENABLE) == TRUE
280 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
282 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
283 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
285 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
286 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
287 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
288 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
289 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
290 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
291 !ifdef $(DEBUG_ON_SERIAL_PORT)
292 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
294 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.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
301 [LibraryClasses.common.UEFI_DRIVER]
302 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
303 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
304 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
305 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
306 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
307 !ifdef $(DEBUG_ON_SERIAL_PORT)
308 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
310 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
312 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
313 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
315 [LibraryClasses.common.DXE_DRIVER]
316 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
317 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
318 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
319 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
320 UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
321 !ifdef $(DEBUG_ON_SERIAL_PORT)
322 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
324 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
326 PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
327 PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
328 QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
329 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
330 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
331 !if $(SOURCE_DEBUG_ENABLE) == TRUE
332 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
334 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
335 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
336 QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
338 [LibraryClasses.common.UEFI_APPLICATION]
339 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
340 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
341 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
342 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
343 !ifdef $(DEBUG_ON_SERIAL_PORT)
344 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
346 DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
348 PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
350 ################################################################################
352 # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
354 ################################################################################
356 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
357 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
358 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
359 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
360 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
361 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
362 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
363 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
365 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
369 gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
370 gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
371 gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
372 !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
373 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
374 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
375 !if $(NETWORK_TLS_ENABLE) == FALSE
376 # match PcdFlashNvStorageVariableSize purely for convenience
377 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
380 !if $(FD_SIZE_IN_KB) == 4096
381 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
382 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
383 !if $(NETWORK_TLS_ENABLE) == FALSE
384 # match PcdFlashNvStorageVariableSize purely for convenience
385 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
388 !if $(NETWORK_TLS_ENABLE) == TRUE
389 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
390 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
393 gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
395 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
397 # DEBUG_INIT 0x00000001 // Initialization
398 # DEBUG_WARN 0x00000002 // Warnings
399 # DEBUG_LOAD 0x00000004 // Load events
400 # DEBUG_FS 0x00000008 // EFI File system
401 # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
402 # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
403 # DEBUG_INFO 0x00000040 // Informational debug messages
404 # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
405 # DEBUG_VARIABLE 0x00000100 // Variable
406 # DEBUG_BM 0x00000400 // Boot Manager
407 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
408 # DEBUG_NET 0x00004000 // SNP Driver
409 # DEBUG_UNDI 0x00010000 // UNDI Driver
410 # DEBUG_LOADFILE 0x00020000 // LoadFile
411 # DEBUG_EVENT 0x00080000 // Event messages
412 # DEBUG_GCD 0x00100000 // Global Coherency Database changes
413 # DEBUG_CACHE 0x00200000 // Memory range cachability changes
414 # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
415 # // significantly impact boot performance
416 # DEBUG_ERROR 0x80000000 // Error
417 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
419 !if $(SOURCE_DEBUG_ENABLE) == TRUE
420 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
422 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
425 # This PCD is used to set the base address of the PCI express hierarchy. It
426 # is only consulted when OVMF runs on Q35. In that case it is programmed into
427 # the PCIEXBAR register.
429 # On Q35 machine types that QEMU intends to support in the long term, QEMU
430 # never lets the RAM below 4 GB exceed 2816 MB.
431 gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
433 !if $(SOURCE_DEBUG_ENABLE) == TRUE
434 gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
440 !include NetworkPkg/NetworkPcds.dsc.inc
442 # IRQs 5, 9, 10, 11 are level-triggered
443 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
445 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
446 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
448 ## Xen vlapic's frequence is 100 MHz
449 gEfiMdePkgTokenSpaceGuid.PcdFSBClock|100000000
451 ################################################################################
453 # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
455 ################################################################################
458 gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
459 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
460 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
461 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
462 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
463 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
464 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
465 gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
466 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
467 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
468 gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
469 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
470 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
471 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
472 gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
474 gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
476 # Set video resolution for text setup.
477 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
478 gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
480 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
481 gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
482 gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
484 # Noexec settings for DXE.
485 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
486 gEfiMdeModulePkgTokenSpaceGuid.PcdPropertiesTableEnable|FALSE
488 # Set memory encryption mask
489 gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
491 gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
493 ################################################################################
495 # Components Section - list of all EDK II Modules needed by this Platform.
497 ################################################################################
499 OvmfPkg/XenResetVector/XenResetVector.inf
504 OvmfPkg/Sec/SecMain.inf {
506 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
512 MdeModulePkg/Core/Pei/PeiMain.inf
513 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
515 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
517 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
519 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
521 MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
523 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
525 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
527 OvmfPkg/XenPlatformPei/XenPlatformPei.inf
528 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
529 UefiCpuPkg/CpuMpPei/CpuMpPei.inf
534 MdeModulePkg/Core/Dxe/DxeMain.inf {
536 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
537 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
540 MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
541 MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
542 MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
544 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
547 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
549 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
551 MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
552 OvmfPkg/XenTimerDxe/XenTimerDxe.inf
553 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
554 UefiCpuPkg/CpuDxe/CpuDxe.inf
555 OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
556 OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
557 MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
559 PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
560 NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
562 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
564 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
566 MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
567 MdeModulePkg/Universal/Metronome/Metronome.inf
568 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
569 MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
570 MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
573 NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
574 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
577 MdeModulePkg/Logo/LogoDxe.inf
578 MdeModulePkg/Application/UiApp/UiApp.inf {
580 NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
581 NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
582 NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
584 NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
585 NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
588 OvmfPkg/XenIoPvhDxe/XenIoPvhDxe.inf
589 OvmfPkg/XenIoPciDxe/XenIoPciDxe.inf
590 OvmfPkg/XenBusDxe/XenBusDxe.inf
591 OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
592 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf {
594 SerialPortLib|OvmfPkg/Library/XenConsoleSerialPortLib/XenConsoleSerialPortLib.inf
596 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
597 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
598 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
599 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
600 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
601 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
603 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
605 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
606 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
608 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
609 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
611 MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
612 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
613 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
614 MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
615 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
616 FatPkg/EnhancedFatDxe/Fat.inf
617 MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
618 MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
619 MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
620 OvmfPkg/SataControllerDxe/SataControllerDxe.inf
621 MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
622 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
623 MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
624 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
625 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
626 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
627 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
629 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
630 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
635 OvmfPkg/SioBusDxe/SioBusDxe.inf
636 MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
637 MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
642 MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
644 NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
646 OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
651 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
652 OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
653 OvmfPkg/AcpiTables/AcpiTables.inf
654 MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
655 MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
656 MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
661 !include NetworkPkg/NetworkComponents.dsc.inc
663 !if $(NETWORK_TLS_ENABLE) == TRUE
664 NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
666 NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
673 MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
674 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
675 MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
676 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
677 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
678 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
681 OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
683 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
685 OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
686 OvmfPkg/Csm/Csm16/Csm16.inf
689 !if $(TOOL_CHAIN_TAG) != "XCODE5"
690 ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
692 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
695 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
697 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
699 ShellPkg/Application/Shell/Shell.inf {
701 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
702 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
703 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
704 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
705 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
706 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
707 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
708 NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
709 !if $(NETWORK_IP6_ENABLE) == TRUE
710 NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
712 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
713 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
714 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
717 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
718 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
719 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
722 OvmfPkg/PlatformDxe/Platform.inf
723 OvmfPkg/AmdSevDxe/AmdSevDxe.inf
724 OvmfPkg/IoMmuDxe/IoMmuDxe.inf
727 # Variable driver stack (non-SMM)
729 OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
730 OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
732 PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
734 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
735 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
737 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf