OvmfPkgIa32X64.dsc 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036
  1. ## @file
  2. # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
  3. #
  4. # Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
  5. # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
  6. # Copyright (c) Microsoft Corporation.
  7. #
  8. # SPDX-License-Identifier: BSD-2-Clause-Patent
  9. #
  10. ##
  11. ################################################################################
  12. #
  13. # Defines Section - statements that will be processed to create a Makefile.
  14. #
  15. ################################################################################
  16. [Defines]
  17. PLATFORM_NAME = Ovmf
  18. PLATFORM_GUID = 5a9e7754-d81b-49ea-85ad-69eaa7b1539b
  19. PLATFORM_VERSION = 0.1
  20. DSC_SPECIFICATION = 0x00010005
  21. OUTPUT_DIRECTORY = Build/Ovmf3264
  22. SUPPORTED_ARCHITECTURES = IA32|X64
  23. BUILD_TARGETS = NOOPT|DEBUG|RELEASE
  24. SKUID_IDENTIFIER = DEFAULT
  25. FLASH_DEFINITION = OvmfPkg/OvmfPkgIa32X64.fdf
  26. #
  27. # Defines for default states. These can be changed on the command line.
  28. # -D FLAG=VALUE
  29. #
  30. DEFINE SECURE_BOOT_ENABLE = FALSE
  31. DEFINE SMM_REQUIRE = FALSE
  32. DEFINE SOURCE_DEBUG_ENABLE = FALSE
  33. !include OvmfPkg/Include/Dsc/OvmfTpmDefines.dsc.inc
  34. #
  35. # Shell can be useful for debugging but should not be enabled for production
  36. #
  37. DEFINE BUILD_SHELL = TRUE
  38. #
  39. # Network definition
  40. #
  41. DEFINE NETWORK_TLS_ENABLE = FALSE
  42. DEFINE NETWORK_IP6_ENABLE = FALSE
  43. DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
  44. DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
  45. DEFINE NETWORK_ISCSI_ENABLE = TRUE
  46. !include NetworkPkg/NetworkDefines.dsc.inc
  47. #
  48. # Device drivers
  49. #
  50. DEFINE PVSCSI_ENABLE = FALSE
  51. DEFINE MPT_SCSI_ENABLE = FALSE
  52. DEFINE LSI_SCSI_ENABLE = FALSE
  53. #
  54. # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
  55. # one of the supported values, in place of any of the convenience macros, is
  56. # permitted.
  57. #
  58. !ifdef $(FD_SIZE_1MB)
  59. DEFINE FD_SIZE_IN_KB = 1024
  60. !else
  61. !ifdef $(FD_SIZE_2MB)
  62. DEFINE FD_SIZE_IN_KB = 2048
  63. !else
  64. !ifdef $(FD_SIZE_4MB)
  65. DEFINE FD_SIZE_IN_KB = 4096
  66. !else
  67. DEFINE FD_SIZE_IN_KB = 4096
  68. !endif
  69. !endif
  70. !endif
  71. [BuildOptions]
  72. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  73. INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
  74. MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
  75. !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
  76. GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
  77. !endif
  78. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  79. MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
  80. GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
  81. INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
  82. !endif
  83. RELEASE_*_*_GENFW_FLAGS = --zero
  84. #
  85. # Disable deprecated APIs.
  86. #
  87. MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
  88. INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
  89. GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
  90. #
  91. # SECURE_BOOT_FEATURE_ENABLED
  92. #
  93. !if $(SECURE_BOOT_ENABLE) == TRUE
  94. MSFT:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
  95. INTEL:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
  96. GCC:*_*_*_CC_FLAGS = -D SECURE_BOOT_FEATURE_ENABLED
  97. !endif
  98. !include NetworkPkg/NetworkBuildOptions.dsc.inc
  99. [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
  100. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
  101. XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
  102. XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
  103. CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
  104. # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
  105. # protection of DXE_SMM_DRIVER/SMM_CORE modules
  106. [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
  107. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
  108. XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
  109. XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
  110. CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
  111. ################################################################################
  112. #
  113. # SKU Identification section - list of all SKU IDs supported by this Platform.
  114. #
  115. ################################################################################
  116. [SkuIds]
  117. 0|DEFAULT
  118. ################################################################################
  119. #
  120. # Library Class section - list of all Library Classes needed by this Platform.
  121. #
  122. ################################################################################
  123. !include MdePkg/MdeLibs.dsc.inc
  124. [LibraryClasses]
  125. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  126. TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
  127. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
  128. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  129. BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
  130. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  131. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  132. TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
  133. BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
  134. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  135. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  136. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  137. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  138. CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
  139. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  140. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  141. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  142. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  143. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  144. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  145. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  146. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  147. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  148. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  149. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  150. PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
  151. PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  152. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  153. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  154. PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
  155. PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
  156. PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
  157. CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
  158. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
  159. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  160. SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
  161. MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
  162. MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
  163. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  164. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  165. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  166. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  167. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  168. DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
  169. NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
  170. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  171. UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
  172. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  173. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  174. SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
  175. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
  176. QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
  177. VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
  178. LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
  179. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
  180. MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLibNull.inf
  181. PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
  182. DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
  183. !if $(SMM_REQUIRE) == FALSE
  184. LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
  185. !endif
  186. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  187. FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
  188. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  189. PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
  190. DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
  191. !else
  192. PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  193. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  194. !endif
  195. LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
  196. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  197. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  198. !if $(NETWORK_TLS_ENABLE) == TRUE
  199. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  200. !else
  201. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
  202. !endif
  203. RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
  204. !if $(SECURE_BOOT_ENABLE) == TRUE
  205. PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
  206. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  207. SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
  208. PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
  209. SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
  210. !else
  211. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  212. !endif
  213. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  214. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  215. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  216. VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
  217. #
  218. # Network libraries
  219. #
  220. !include NetworkPkg/NetworkLibs.dsc.inc
  221. !if $(NETWORK_TLS_ENABLE) == TRUE
  222. TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
  223. !endif
  224. !if $(BUILD_SHELL) == TRUE
  225. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  226. !endif
  227. ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
  228. S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
  229. SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
  230. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  231. !include OvmfPkg/Include/Dsc/OvmfTpmLibs.dsc.inc
  232. [LibraryClasses.common]
  233. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  234. CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
  235. TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
  236. TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLibNull.inf
  237. [LibraryClasses.common.SEC]
  238. TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
  239. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
  240. !ifdef $(DEBUG_ON_SERIAL_PORT)
  241. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  242. !else
  243. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  244. !endif
  245. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  246. ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  247. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  248. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  249. !endif
  250. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  251. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  252. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  253. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  254. !if $(TOOL_CHAIN_TAG) == "XCODE5"
  255. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
  256. !else
  257. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
  258. !endif
  259. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
  260. [LibraryClasses.common.PEI_CORE]
  261. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  262. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  263. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  264. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  265. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  266. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  267. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  268. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  269. !ifdef $(DEBUG_ON_SERIAL_PORT)
  270. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  271. !else
  272. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  273. !endif
  274. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  275. [LibraryClasses.common.PEIM]
  276. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  277. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  278. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  279. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  280. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  281. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  282. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  283. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  284. !ifdef $(DEBUG_ON_SERIAL_PORT)
  285. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  286. !else
  287. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  288. !endif
  289. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  290. ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  291. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  292. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  293. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  294. !endif
  295. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
  296. MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
  297. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
  298. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  299. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
  300. PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
  301. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
  302. [LibraryClasses.common.DXE_CORE]
  303. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  304. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  305. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  306. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  307. !ifdef $(DEBUG_ON_SERIAL_PORT)
  308. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  309. !else
  310. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  311. !endif
  312. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  313. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  314. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  315. !endif
  316. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  317. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  318. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  319. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  320. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  321. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  322. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  323. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  324. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  325. ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
  326. !ifdef $(DEBUG_ON_SERIAL_PORT)
  327. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  328. !else
  329. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  330. !endif
  331. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  332. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  333. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  334. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
  335. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  336. !if $(SMM_REQUIRE) == TRUE
  337. MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
  338. !endif
  339. [LibraryClasses.common.UEFI_DRIVER]
  340. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  341. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  342. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  343. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  344. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  345. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  346. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  347. !ifdef $(DEBUG_ON_SERIAL_PORT)
  348. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  349. !else
  350. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  351. !endif
  352. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  353. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  354. [LibraryClasses.common.DXE_DRIVER]
  355. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  356. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  357. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  358. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  359. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  360. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  361. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  362. !ifdef $(DEBUG_ON_SERIAL_PORT)
  363. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  364. !else
  365. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  366. !endif
  367. PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  368. PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
  369. QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
  370. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  371. !if $(SMM_REQUIRE) == TRUE
  372. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
  373. !else
  374. LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
  375. !endif
  376. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  377. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  378. !endif
  379. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  380. MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
  381. NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf
  382. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
  383. QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
  384. [LibraryClasses.common.UEFI_APPLICATION]
  385. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  386. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  387. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  388. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  389. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  390. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  391. !ifdef $(DEBUG_ON_SERIAL_PORT)
  392. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  393. !else
  394. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  395. !endif
  396. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  397. [LibraryClasses.common.DXE_SMM_DRIVER]
  398. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  399. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  400. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  401. MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
  402. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  403. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  404. SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
  405. MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
  406. SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
  407. !ifdef $(DEBUG_ON_SERIAL_PORT)
  408. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  409. !else
  410. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  411. !endif
  412. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
  413. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  414. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
  415. !endif
  416. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
  417. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  418. SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
  419. [LibraryClasses.common.SMM_CORE]
  420. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  421. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  422. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  423. SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
  424. MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
  425. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  426. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  427. SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
  428. SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
  429. !ifdef $(DEBUG_ON_SERIAL_PORT)
  430. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  431. !else
  432. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  433. !endif
  434. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  435. ################################################################################
  436. #
  437. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  438. #
  439. ################################################################################
  440. [PcdsFeatureFlag]
  441. gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
  442. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  443. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
  444. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  445. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  446. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  447. !ifdef $(CSM_ENABLE)
  448. gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
  449. !endif
  450. !if $(SMM_REQUIRE) == TRUE
  451. gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
  452. gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
  453. gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
  454. !endif
  455. [PcdsFixedAtBuild]
  456. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  457. !if $(SMM_REQUIRE) == FALSE
  458. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  459. !endif
  460. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  461. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
  462. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  463. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  464. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  465. !if $(NETWORK_TLS_ENABLE) == FALSE
  466. # match PcdFlashNvStorageVariableSize purely for convenience
  467. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  468. !endif
  469. !endif
  470. !if $(FD_SIZE_IN_KB) == 4096
  471. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
  472. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
  473. !if $(NETWORK_TLS_ENABLE) == FALSE
  474. # match PcdFlashNvStorageVariableSize purely for convenience
  475. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
  476. !endif
  477. !endif
  478. !if $(NETWORK_TLS_ENABLE) == TRUE
  479. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
  480. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
  481. !endif
  482. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  483. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
  484. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
  485. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  486. # DEBUG_INIT 0x00000001 // Initialization
  487. # DEBUG_WARN 0x00000002 // Warnings
  488. # DEBUG_LOAD 0x00000004 // Load events
  489. # DEBUG_FS 0x00000008 // EFI File system
  490. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  491. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  492. # DEBUG_INFO 0x00000040 // Informational debug messages
  493. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  494. # DEBUG_VARIABLE 0x00000100 // Variable
  495. # DEBUG_BM 0x00000400 // Boot Manager
  496. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  497. # DEBUG_NET 0x00004000 // SNP Driver
  498. # DEBUG_UNDI 0x00010000 // UNDI Driver
  499. # DEBUG_LOADFILE 0x00020000 // LoadFile
  500. # DEBUG_EVENT 0x00080000 // Event messages
  501. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  502. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  503. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  504. # // significantly impact boot performance
  505. # DEBUG_ERROR 0x80000000 // Error
  506. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  507. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  508. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  509. !else
  510. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  511. !endif
  512. # This PCD is used to set the base address of the PCI express hierarchy. It
  513. # is only consulted when OVMF runs on Q35. In that case it is programmed into
  514. # the PCIEXBAR register.
  515. #
  516. # On Q35 machine types that QEMU intends to support in the long term, QEMU
  517. # never lets the RAM below 4 GB exceed 2816 MB.
  518. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
  519. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  520. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  521. !endif
  522. [PcdsFixedAtBuild.IA32]
  523. #
  524. # The NumberOfPages values below are ad-hoc. They are updated sporadically at
  525. # best (please refer to git-blame for past updates). The values capture a set
  526. # of BIN hints that made sense at a particular time, for some (now likely
  527. # unknown) workloads / boot paths.
  528. #
  529. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
  530. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x12
  531. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
  532. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
  533. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
  534. [PcdsFixedAtBuild.X64]
  535. #
  536. # Network Pcds
  537. #
  538. !include NetworkPkg/NetworkPcds.dsc.inc
  539. gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
  540. !if $(SMM_REQUIRE) == TRUE
  541. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
  542. !endif
  543. # IRQs 5, 9, 10, 11 are level-triggered
  544. gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
  545. # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
  546. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  547. ################################################################################
  548. #
  549. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  550. #
  551. ################################################################################
  552. [PcdsDynamicDefault]
  553. # only set when
  554. # ($(SMM_REQUIRE) == FALSE)
  555. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  556. !if $(SMM_REQUIRE) == FALSE
  557. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  558. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
  559. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
  560. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  561. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  562. !endif
  563. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
  564. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
  565. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
  566. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
  567. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
  568. gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
  569. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
  570. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
  571. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
  572. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
  573. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
  574. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
  575. !ifdef $(CSM_ENABLE)
  576. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
  577. !else
  578. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
  579. !endif
  580. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  581. # Set video resolution for text setup.
  582. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  583. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  584. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  585. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  586. gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
  587. # Noexec settings for DXE.
  588. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
  589. # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
  590. gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
  591. gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
  592. # Set memory encryption mask
  593. gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
  594. gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
  595. # Set SEV-ES defaults
  596. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
  597. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
  598. gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
  599. !if $(SMM_REQUIRE) == TRUE
  600. gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
  601. gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
  602. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
  603. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
  604. !endif
  605. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
  606. !include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
  607. # Set ConfidentialComputing defaults
  608. gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
  609. !if $(CSM_ENABLE) == FALSE
  610. gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
  611. !endif
  612. [PcdsDynamicDefault.X64]
  613. # IPv4 and IPv6 PXE Boot support.
  614. gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
  615. gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
  616. [PcdsDynamicHii]
  617. !include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
  618. ################################################################################
  619. #
  620. # Components Section - list of all EDK II Modules needed by this Platform.
  621. #
  622. ################################################################################
  623. [Components.IA32]
  624. OvmfPkg/ResetVector/ResetVector.inf
  625. #
  626. # SEC Phase modules
  627. #
  628. OvmfPkg/Sec/SecMain.inf {
  629. <LibraryClasses>
  630. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  631. }
  632. #
  633. # PEI Phase modules
  634. #
  635. MdeModulePkg/Core/Pei/PeiMain.inf
  636. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  637. <LibraryClasses>
  638. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  639. }
  640. MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
  641. <LibraryClasses>
  642. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  643. }
  644. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
  645. <LibraryClasses>
  646. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  647. }
  648. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
  649. OvmfPkg/PlatformPei/PlatformPei.inf
  650. UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
  651. <LibraryClasses>
  652. !if $(SMM_REQUIRE) == TRUE
  653. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
  654. !endif
  655. }
  656. !if $(SMM_REQUIRE) == TRUE
  657. MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
  658. MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
  659. OvmfPkg/SmmAccess/SmmAccessPei.inf
  660. !endif
  661. UefiCpuPkg/CpuMpPei/CpuMpPei.inf
  662. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
  663. [Components.X64]
  664. #
  665. # DXE Phase modules
  666. #
  667. MdeModulePkg/Core/Dxe/DxeMain.inf {
  668. <LibraryClasses>
  669. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  670. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  671. }
  672. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  673. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  674. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  675. <LibraryClasses>
  676. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  677. }
  678. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  679. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  680. <LibraryClasses>
  681. !if $(SECURE_BOOT_ENABLE) == TRUE
  682. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  683. !endif
  684. !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
  685. }
  686. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  687. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  688. UefiCpuPkg/CpuDxe/CpuDxe.inf
  689. !ifdef $(CSM_ENABLE)
  690. OvmfPkg/8259InterruptControllerDxe/8259.inf
  691. OvmfPkg/8254TimerDxe/8254Timer.inf
  692. !else
  693. OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
  694. !endif
  695. OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
  696. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  697. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  698. <LibraryClasses>
  699. PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  700. PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
  701. NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
  702. }
  703. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  704. <LibraryClasses>
  705. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  706. }
  707. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  708. MdeModulePkg/Universal/Metronome/Metronome.inf
  709. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
  710. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  711. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
  712. <LibraryClasses>
  713. XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
  714. !ifdef $(CSM_ENABLE)
  715. NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
  716. NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
  717. !endif
  718. }
  719. MdeModulePkg/Logo/LogoDxe.inf
  720. MdeModulePkg/Application/UiApp/UiApp.inf {
  721. <LibraryClasses>
  722. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  723. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  724. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  725. !ifdef $(CSM_ENABLE)
  726. NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
  727. NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
  728. !endif
  729. }
  730. OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
  731. <LibraryClasses>
  732. NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
  733. }
  734. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  735. OvmfPkg/Virtio10Dxe/Virtio10.inf
  736. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  737. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  738. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  739. !if $(PVSCSI_ENABLE) == TRUE
  740. OvmfPkg/PvScsiDxe/PvScsiDxe.inf
  741. !endif
  742. !if $(MPT_SCSI_ENABLE) == TRUE
  743. OvmfPkg/MptScsiDxe/MptScsiDxe.inf
  744. !endif
  745. !if $(LSI_SCSI_ENABLE) == TRUE
  746. OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
  747. !endif
  748. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  749. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  750. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  751. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  752. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  753. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  754. <LibraryClasses>
  755. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  756. }
  757. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  758. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  759. <LibraryClasses>
  760. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  761. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  762. }
  763. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  764. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  765. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  766. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  767. FatPkg/EnhancedFatDxe/Fat.inf
  768. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  769. OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
  770. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  771. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  772. OvmfPkg/SataControllerDxe/SataControllerDxe.inf
  773. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  774. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  775. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  776. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  777. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  778. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  779. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  780. !ifndef $(CSM_ENABLE)
  781. OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
  782. !endif
  783. OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
  784. OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
  785. #
  786. # ISA Support
  787. #
  788. OvmfPkg/SioBusDxe/SioBusDxe.inf
  789. MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
  790. MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
  791. #
  792. # SMBIOS Support
  793. #
  794. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
  795. <LibraryClasses>
  796. NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
  797. }
  798. OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  799. #
  800. # ACPI Support
  801. #
  802. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  803. OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
  804. MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
  805. MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
  806. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  807. #
  808. # Network Support
  809. #
  810. !include NetworkPkg/NetworkComponents.dsc.inc
  811. !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
  812. OvmfPkg/VirtioNetDxe/VirtioNet.inf
  813. #
  814. # Usb Support
  815. #
  816. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  817. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  818. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  819. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  820. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  821. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  822. !ifdef $(CSM_ENABLE)
  823. OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
  824. <LibraryClasses>
  825. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  826. }
  827. OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
  828. OvmfPkg/Csm/Csm16/Csm16.inf
  829. !endif
  830. !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
  831. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
  832. <PcdsFixedAtBuild>
  833. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  834. }
  835. ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
  836. <PcdsFixedAtBuild>
  837. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  838. }
  839. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  840. <PcdsFixedAtBuild>
  841. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  842. }
  843. !endif
  844. !if $(BUILD_SHELL) == TRUE
  845. ShellPkg/Application/Shell/Shell.inf {
  846. <LibraryClasses>
  847. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  848. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  849. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  850. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  851. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  852. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  853. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  854. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  855. !if $(NETWORK_IP6_ENABLE) == TRUE
  856. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  857. !endif
  858. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  859. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  860. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  861. <PcdsFixedAtBuild>
  862. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  863. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  864. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  865. }
  866. !endif
  867. !if $(SECURE_BOOT_ENABLE) == TRUE
  868. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  869. OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
  870. !endif
  871. OvmfPkg/PlatformDxe/Platform.inf
  872. OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
  873. <LibraryClasses>
  874. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  875. }
  876. OvmfPkg/IoMmuDxe/IoMmuDxe.inf
  877. !if $(SMM_REQUIRE) == TRUE
  878. OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
  879. OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
  880. OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
  881. #
  882. # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
  883. #
  884. MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
  885. #
  886. # SMM_CORE
  887. #
  888. MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
  889. #
  890. # Privileged drivers (DXE_SMM_DRIVER modules)
  891. #
  892. OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
  893. UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
  894. MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
  895. <LibraryClasses>
  896. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
  897. }
  898. UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
  899. <LibraryClasses>
  900. SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
  901. SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
  902. }
  903. #
  904. # Variable driver stack (SMM)
  905. #
  906. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
  907. <LibraryClasses>
  908. CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
  909. }
  910. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
  911. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
  912. <LibraryClasses>
  913. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  914. NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
  915. }
  916. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
  917. !else
  918. #
  919. # Variable driver stack (non-SMM)
  920. #
  921. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  922. OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
  923. <LibraryClasses>
  924. PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
  925. }
  926. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  927. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  928. <LibraryClasses>
  929. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  930. }
  931. !endif
  932. #
  933. # TPM support
  934. #
  935. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc