OvmfPkgIa32X64.dsc 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039
  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. !if $(SECURE_BOOT_ENABLE) == TRUE
  456. gEfiMdeModulePkgTokenSpaceGuid.PcdRequireSelfSignedPk|TRUE
  457. !endif
  458. [PcdsFixedAtBuild]
  459. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  460. !if $(SMM_REQUIRE) == FALSE
  461. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  462. !endif
  463. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  464. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
  465. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  466. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  467. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  468. !if $(NETWORK_TLS_ENABLE) == FALSE
  469. # match PcdFlashNvStorageVariableSize purely for convenience
  470. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  471. !endif
  472. !endif
  473. !if $(FD_SIZE_IN_KB) == 4096
  474. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
  475. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
  476. !if $(NETWORK_TLS_ENABLE) == FALSE
  477. # match PcdFlashNvStorageVariableSize purely for convenience
  478. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
  479. !endif
  480. !endif
  481. !if $(NETWORK_TLS_ENABLE) == TRUE
  482. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
  483. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
  484. !endif
  485. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  486. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
  487. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
  488. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  489. # DEBUG_INIT 0x00000001 // Initialization
  490. # DEBUG_WARN 0x00000002 // Warnings
  491. # DEBUG_LOAD 0x00000004 // Load events
  492. # DEBUG_FS 0x00000008 // EFI File system
  493. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  494. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  495. # DEBUG_INFO 0x00000040 // Informational debug messages
  496. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  497. # DEBUG_VARIABLE 0x00000100 // Variable
  498. # DEBUG_BM 0x00000400 // Boot Manager
  499. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  500. # DEBUG_NET 0x00004000 // SNP Driver
  501. # DEBUG_UNDI 0x00010000 // UNDI Driver
  502. # DEBUG_LOADFILE 0x00020000 // LoadFile
  503. # DEBUG_EVENT 0x00080000 // Event messages
  504. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  505. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  506. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  507. # // significantly impact boot performance
  508. # DEBUG_ERROR 0x80000000 // Error
  509. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  510. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  511. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  512. !else
  513. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  514. !endif
  515. # This PCD is used to set the base address of the PCI express hierarchy. It
  516. # is only consulted when OVMF runs on Q35. In that case it is programmed into
  517. # the PCIEXBAR register.
  518. #
  519. # On Q35 machine types that QEMU intends to support in the long term, QEMU
  520. # never lets the RAM below 4 GB exceed 2816 MB.
  521. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
  522. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  523. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  524. !endif
  525. [PcdsFixedAtBuild.IA32]
  526. #
  527. # The NumberOfPages values below are ad-hoc. They are updated sporadically at
  528. # best (please refer to git-blame for past updates). The values capture a set
  529. # of BIN hints that made sense at a particular time, for some (now likely
  530. # unknown) workloads / boot paths.
  531. #
  532. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
  533. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x12
  534. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
  535. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
  536. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
  537. [PcdsFixedAtBuild.X64]
  538. #
  539. # Network Pcds
  540. #
  541. !include NetworkPkg/NetworkPcds.dsc.inc
  542. gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
  543. !if $(SMM_REQUIRE) == TRUE
  544. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
  545. !endif
  546. # IRQs 5, 9, 10, 11 are level-triggered
  547. gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
  548. # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
  549. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  550. ################################################################################
  551. #
  552. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  553. #
  554. ################################################################################
  555. [PcdsDynamicDefault]
  556. # only set when
  557. # ($(SMM_REQUIRE) == FALSE)
  558. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  559. !if $(SMM_REQUIRE) == FALSE
  560. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  561. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
  562. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
  563. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  564. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  565. !endif
  566. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
  567. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
  568. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
  569. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
  570. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
  571. gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
  572. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
  573. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
  574. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
  575. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
  576. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
  577. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
  578. !ifdef $(CSM_ENABLE)
  579. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
  580. !else
  581. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
  582. !endif
  583. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  584. # Set video resolution for text setup.
  585. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  586. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  587. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  588. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  589. gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
  590. # Noexec settings for DXE.
  591. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
  592. # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
  593. gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
  594. gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
  595. # Set memory encryption mask
  596. gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
  597. gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
  598. # Set SEV-ES defaults
  599. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
  600. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
  601. gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
  602. !if $(SMM_REQUIRE) == TRUE
  603. gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
  604. gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
  605. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
  606. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
  607. !endif
  608. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
  609. !include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
  610. # Set ConfidentialComputing defaults
  611. gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
  612. !if $(CSM_ENABLE) == FALSE
  613. gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
  614. !endif
  615. [PcdsDynamicDefault.X64]
  616. # IPv4 and IPv6 PXE Boot support.
  617. gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
  618. gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
  619. [PcdsDynamicHii]
  620. !include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
  621. ################################################################################
  622. #
  623. # Components Section - list of all EDK II Modules needed by this Platform.
  624. #
  625. ################################################################################
  626. [Components.IA32]
  627. OvmfPkg/ResetVector/ResetVector.inf
  628. #
  629. # SEC Phase modules
  630. #
  631. OvmfPkg/Sec/SecMain.inf {
  632. <LibraryClasses>
  633. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  634. }
  635. #
  636. # PEI Phase modules
  637. #
  638. MdeModulePkg/Core/Pei/PeiMain.inf
  639. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  640. <LibraryClasses>
  641. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  642. }
  643. MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
  644. <LibraryClasses>
  645. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  646. }
  647. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
  648. <LibraryClasses>
  649. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  650. }
  651. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
  652. OvmfPkg/PlatformPei/PlatformPei.inf
  653. UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
  654. <LibraryClasses>
  655. !if $(SMM_REQUIRE) == TRUE
  656. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
  657. !endif
  658. }
  659. !if $(SMM_REQUIRE) == TRUE
  660. MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
  661. MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
  662. OvmfPkg/SmmAccess/SmmAccessPei.inf
  663. !endif
  664. UefiCpuPkg/CpuMpPei/CpuMpPei.inf
  665. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
  666. [Components.X64]
  667. #
  668. # DXE Phase modules
  669. #
  670. MdeModulePkg/Core/Dxe/DxeMain.inf {
  671. <LibraryClasses>
  672. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  673. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  674. }
  675. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  676. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  677. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  678. <LibraryClasses>
  679. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  680. }
  681. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  682. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  683. <LibraryClasses>
  684. !if $(SECURE_BOOT_ENABLE) == TRUE
  685. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  686. !endif
  687. !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
  688. }
  689. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  690. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  691. UefiCpuPkg/CpuDxe/CpuDxe.inf
  692. !ifdef $(CSM_ENABLE)
  693. OvmfPkg/8259InterruptControllerDxe/8259.inf
  694. OvmfPkg/8254TimerDxe/8254Timer.inf
  695. !else
  696. OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
  697. !endif
  698. OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
  699. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  700. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  701. <LibraryClasses>
  702. PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  703. PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
  704. NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
  705. }
  706. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  707. <LibraryClasses>
  708. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  709. }
  710. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  711. MdeModulePkg/Universal/Metronome/Metronome.inf
  712. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
  713. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  714. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
  715. <LibraryClasses>
  716. XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
  717. !ifdef $(CSM_ENABLE)
  718. NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
  719. NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
  720. !endif
  721. }
  722. MdeModulePkg/Logo/LogoDxe.inf
  723. MdeModulePkg/Application/UiApp/UiApp.inf {
  724. <LibraryClasses>
  725. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  726. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  727. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  728. !ifdef $(CSM_ENABLE)
  729. NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
  730. NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
  731. !endif
  732. }
  733. OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
  734. <LibraryClasses>
  735. NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
  736. }
  737. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  738. OvmfPkg/Virtio10Dxe/Virtio10.inf
  739. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  740. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  741. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  742. !if $(PVSCSI_ENABLE) == TRUE
  743. OvmfPkg/PvScsiDxe/PvScsiDxe.inf
  744. !endif
  745. !if $(MPT_SCSI_ENABLE) == TRUE
  746. OvmfPkg/MptScsiDxe/MptScsiDxe.inf
  747. !endif
  748. !if $(LSI_SCSI_ENABLE) == TRUE
  749. OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
  750. !endif
  751. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  752. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  753. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  754. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  755. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  756. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  757. <LibraryClasses>
  758. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  759. }
  760. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  761. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  762. <LibraryClasses>
  763. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  764. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  765. }
  766. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  767. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  768. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  769. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  770. FatPkg/EnhancedFatDxe/Fat.inf
  771. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  772. OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
  773. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  774. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  775. OvmfPkg/SataControllerDxe/SataControllerDxe.inf
  776. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  777. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  778. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  779. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  780. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  781. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  782. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  783. !ifndef $(CSM_ENABLE)
  784. OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
  785. !endif
  786. OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
  787. OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
  788. #
  789. # ISA Support
  790. #
  791. OvmfPkg/SioBusDxe/SioBusDxe.inf
  792. MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
  793. MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
  794. #
  795. # SMBIOS Support
  796. #
  797. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
  798. <LibraryClasses>
  799. NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
  800. }
  801. OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  802. #
  803. # ACPI Support
  804. #
  805. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  806. OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
  807. MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
  808. MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
  809. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  810. #
  811. # Network Support
  812. #
  813. !include NetworkPkg/NetworkComponents.dsc.inc
  814. !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
  815. OvmfPkg/VirtioNetDxe/VirtioNet.inf
  816. #
  817. # Usb Support
  818. #
  819. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  820. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  821. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  822. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  823. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  824. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  825. !ifdef $(CSM_ENABLE)
  826. OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
  827. <LibraryClasses>
  828. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  829. }
  830. OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
  831. OvmfPkg/Csm/Csm16/Csm16.inf
  832. !endif
  833. !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
  834. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
  835. <PcdsFixedAtBuild>
  836. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  837. }
  838. ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
  839. <PcdsFixedAtBuild>
  840. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  841. }
  842. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  843. <PcdsFixedAtBuild>
  844. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  845. }
  846. !endif
  847. !if $(BUILD_SHELL) == TRUE
  848. ShellPkg/Application/Shell/Shell.inf {
  849. <LibraryClasses>
  850. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  851. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  852. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  853. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  854. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  855. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  856. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  857. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  858. !if $(NETWORK_IP6_ENABLE) == TRUE
  859. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  860. !endif
  861. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  862. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  863. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  864. <PcdsFixedAtBuild>
  865. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  866. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  867. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  868. }
  869. !endif
  870. !if $(SECURE_BOOT_ENABLE) == TRUE
  871. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  872. OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
  873. !endif
  874. OvmfPkg/PlatformDxe/Platform.inf
  875. OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
  876. <LibraryClasses>
  877. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  878. }
  879. OvmfPkg/IoMmuDxe/IoMmuDxe.inf
  880. !if $(SMM_REQUIRE) == TRUE
  881. OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
  882. OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
  883. OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
  884. #
  885. # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
  886. #
  887. MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
  888. #
  889. # SMM_CORE
  890. #
  891. MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
  892. #
  893. # Privileged drivers (DXE_SMM_DRIVER modules)
  894. #
  895. OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
  896. UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
  897. MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
  898. <LibraryClasses>
  899. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
  900. }
  901. UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
  902. <LibraryClasses>
  903. SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
  904. SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
  905. }
  906. #
  907. # Variable driver stack (SMM)
  908. #
  909. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
  910. <LibraryClasses>
  911. CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
  912. }
  913. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
  914. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
  915. <LibraryClasses>
  916. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  917. NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
  918. }
  919. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
  920. !else
  921. #
  922. # Variable driver stack (non-SMM)
  923. #
  924. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  925. OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
  926. <LibraryClasses>
  927. PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
  928. }
  929. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  930. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  931. <LibraryClasses>
  932. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  933. }
  934. !endif
  935. #
  936. # TPM support
  937. #
  938. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc