OvmfPkgIa32X64.dsc 45 KB

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