AmdSevX64.dsc 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771
  1. ## @file
  2. # EFI/Framework Open Virtual Machine Firmware (OVMF) platform for SEV secure
  3. # virtual machine remote attestation and secret injection
  4. #
  5. # Copyright (c) 2020 James Bottomley, IBM Corporation.
  6. # Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
  7. # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
  8. #
  9. # SPDX-License-Identifier: BSD-2-Clause-Patent
  10. #
  11. ##
  12. ################################################################################
  13. #
  14. # Defines Section - statements that will be processed to create a Makefile.
  15. #
  16. ################################################################################
  17. [Defines]
  18. PLATFORM_NAME = Ovmf
  19. PLATFORM_GUID = 07ff380c-4760-4823-8f59-ec2cb06fbc16
  20. PLATFORM_VERSION = 0.1
  21. DSC_SPECIFICATION = 0x00010005
  22. OUTPUT_DIRECTORY = Build/AmdSev
  23. SUPPORTED_ARCHITECTURES = X64
  24. BUILD_TARGETS = NOOPT|DEBUG|RELEASE
  25. SKUID_IDENTIFIER = DEFAULT
  26. FLASH_DEFINITION = OvmfPkg/AmdSev/AmdSevX64.fdf
  27. PREBUILD = sh OvmfPkg/AmdSev/Grub/grub.sh
  28. #
  29. # Defines for default states. These can be changed on the command line.
  30. # -D FLAG=VALUE
  31. #
  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 = FALSE
  38. #
  39. # Device drivers
  40. #
  41. DEFINE PVSCSI_ENABLE = FALSE
  42. DEFINE MPT_SCSI_ENABLE = FALSE
  43. DEFINE LSI_SCSI_ENABLE = FALSE
  44. #
  45. # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
  46. # one of the supported values, in place of any of the convenience macros, is
  47. # permitted.
  48. #
  49. !ifdef $(FD_SIZE_1MB)
  50. DEFINE FD_SIZE_IN_KB = 1024
  51. !else
  52. !ifdef $(FD_SIZE_2MB)
  53. DEFINE FD_SIZE_IN_KB = 2048
  54. !else
  55. !ifdef $(FD_SIZE_4MB)
  56. DEFINE FD_SIZE_IN_KB = 4096
  57. !else
  58. DEFINE FD_SIZE_IN_KB = 4096
  59. !endif
  60. !endif
  61. !endif
  62. [BuildOptions]
  63. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  64. INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
  65. MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
  66. !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
  67. GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
  68. !endif
  69. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  70. MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
  71. GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
  72. INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
  73. !endif
  74. RELEASE_*_*_GENFW_FLAGS = --zero
  75. #
  76. # Disable deprecated APIs.
  77. #
  78. MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
  79. INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
  80. GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
  81. [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
  82. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
  83. XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
  84. XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
  85. CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
  86. ################################################################################
  87. #
  88. # SKU Identification section - list of all SKU IDs supported by this Platform.
  89. #
  90. ################################################################################
  91. [SkuIds]
  92. 0|DEFAULT
  93. ################################################################################
  94. #
  95. # Library Class section - list of all Library Classes needed by this Platform.
  96. #
  97. ################################################################################
  98. !include MdePkg/MdeLibs.dsc.inc
  99. [LibraryClasses]
  100. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  101. TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
  102. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
  103. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  104. BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
  105. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  106. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  107. BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
  108. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  109. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  110. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  111. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  112. CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
  113. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  114. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  115. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  116. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  117. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  118. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  119. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  120. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  121. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  122. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  123. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  124. PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
  125. PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  126. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  127. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  128. PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
  129. PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
  130. PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
  131. CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
  132. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
  133. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  134. SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
  135. MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
  136. MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
  137. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  138. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  139. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  140. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  141. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  142. DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
  143. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  144. UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
  145. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  146. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  147. SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
  148. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
  149. QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
  150. VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
  151. LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
  152. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
  153. LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
  154. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  155. FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
  156. BlobVerifierLib|OvmfPkg/AmdSev/BlobVerifierLibSevHashes/BlobVerifierLibSevHashes.inf
  157. MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf
  158. PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
  159. DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
  160. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  161. PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
  162. DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
  163. !else
  164. PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  165. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  166. !endif
  167. LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
  168. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  169. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  170. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
  171. RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
  172. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  173. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  174. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  175. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  176. VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
  177. !if $(BUILD_SHELL) == TRUE
  178. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  179. ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
  180. !endif
  181. SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
  182. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  183. !include OvmfPkg/Include/Dsc/OvmfTpmLibs.dsc.inc
  184. [LibraryClasses.common]
  185. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  186. CcExitLib|OvmfPkg/Library/CcExitLib/CcExitLib.inf
  187. TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
  188. TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLibNull.inf
  189. [LibraryClasses.common.SEC]
  190. TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
  191. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
  192. !ifdef $(DEBUG_ON_SERIAL_PORT)
  193. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  194. !else
  195. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  196. !endif
  197. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  198. ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  199. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  200. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  201. !endif
  202. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  203. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  204. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  205. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  206. !if $(TOOL_CHAIN_TAG) == "XCODE5"
  207. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
  208. !else
  209. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
  210. !endif
  211. CcExitLib|OvmfPkg/Library/CcExitLib/SecCcExitLib.inf
  212. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
  213. [LibraryClasses.common.PEI_CORE]
  214. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  215. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  216. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  217. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  218. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  219. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  220. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  221. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  222. !ifdef $(DEBUG_ON_SERIAL_PORT)
  223. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  224. !else
  225. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  226. !endif
  227. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  228. [LibraryClasses.common.PEIM]
  229. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  230. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  231. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  232. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  233. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  234. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  235. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  236. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  237. !ifdef $(DEBUG_ON_SERIAL_PORT)
  238. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  239. !else
  240. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  241. !endif
  242. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  243. ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  244. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  245. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  246. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  247. !endif
  248. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
  249. MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
  250. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
  251. QemuLoadImageLib|OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.inf
  252. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  253. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
  254. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
  255. PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
  256. [LibraryClasses.common.DXE_CORE]
  257. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  258. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  259. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  260. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  261. !ifdef $(DEBUG_ON_SERIAL_PORT)
  262. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  263. !else
  264. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  265. !endif
  266. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  267. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  268. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  269. !endif
  270. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  271. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  272. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  273. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  274. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  275. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  276. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  277. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  278. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  279. ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
  280. !ifdef $(DEBUG_ON_SERIAL_PORT)
  281. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  282. !else
  283. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  284. !endif
  285. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  286. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  287. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  288. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
  289. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  290. [LibraryClasses.common.UEFI_DRIVER]
  291. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  292. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  293. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  294. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  295. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  296. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  297. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  298. !ifdef $(DEBUG_ON_SERIAL_PORT)
  299. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  300. !else
  301. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  302. !endif
  303. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  304. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  305. [LibraryClasses.common.DXE_DRIVER]
  306. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  307. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  308. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  309. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  310. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  311. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  312. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  313. !ifdef $(DEBUG_ON_SERIAL_PORT)
  314. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  315. !else
  316. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  317. !endif
  318. PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLibGrub/PlatformBootManagerLibGrub.inf
  319. PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
  320. QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
  321. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  322. LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
  323. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  324. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  325. !endif
  326. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  327. MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
  328. NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf
  329. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
  330. QemuLoadImageLib|OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.inf
  331. [LibraryClasses.common.UEFI_APPLICATION]
  332. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  333. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  334. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  335. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  336. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  337. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  338. !ifdef $(DEBUG_ON_SERIAL_PORT)
  339. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  340. !else
  341. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  342. !endif
  343. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  344. ################################################################################
  345. #
  346. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  347. #
  348. ################################################################################
  349. [PcdsFeatureFlag]
  350. gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
  351. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  352. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
  353. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  354. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  355. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  356. [PcdsFixedAtBuild]
  357. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  358. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  359. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  360. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
  361. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  362. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  363. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  364. # match PcdFlashNvStorageVariableSize purely for convenience
  365. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  366. !endif
  367. !if $(FD_SIZE_IN_KB) == 4096
  368. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
  369. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
  370. # match PcdFlashNvStorageVariableSize purely for convenience
  371. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
  372. !endif
  373. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  374. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
  375. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
  376. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  377. # DEBUG_INIT 0x00000001 // Initialization
  378. # DEBUG_WARN 0x00000002 // Warnings
  379. # DEBUG_LOAD 0x00000004 // Load events
  380. # DEBUG_FS 0x00000008 // EFI File system
  381. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  382. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  383. # DEBUG_INFO 0x00000040 // Informational debug messages
  384. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  385. # DEBUG_VARIABLE 0x00000100 // Variable
  386. # DEBUG_BM 0x00000400 // Boot Manager
  387. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  388. # DEBUG_NET 0x00004000 // SNP Driver
  389. # DEBUG_UNDI 0x00010000 // UNDI Driver
  390. # DEBUG_LOADFILE 0x00020000 // LoadFile
  391. # DEBUG_EVENT 0x00080000 // Event messages
  392. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  393. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  394. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  395. # // significantly impact boot performance
  396. # DEBUG_ERROR 0x80000000 // Error
  397. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  398. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  399. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  400. !else
  401. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  402. !endif
  403. # This PCD is used to set the base address of the PCI express hierarchy. It
  404. # is only consulted when OVMF runs on Q35. In that case it is programmed into
  405. # the PCIEXBAR register.
  406. #
  407. # On Q35 machine types that QEMU intends to support in the long term, QEMU
  408. # never lets the RAM below 4 GB exceed 2816 MB.
  409. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
  410. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  411. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  412. !endif
  413. #
  414. # The NumberOfPages values below are ad-hoc. They are updated sporadically at
  415. # best (please refer to git-blame for past updates). The values capture a set
  416. # of BIN hints that made sense at a particular time, for some (now likely
  417. # unknown) workloads / boot paths.
  418. #
  419. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
  420. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
  421. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
  422. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
  423. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
  424. # IRQs 5, 9, 10, 11 are level-triggered
  425. gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
  426. # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
  427. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  428. gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand|TRUE
  429. ################################################################################
  430. #
  431. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  432. #
  433. ################################################################################
  434. [PcdsDynamicDefault]
  435. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  436. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  437. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
  438. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
  439. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  440. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  441. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
  442. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
  443. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
  444. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
  445. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
  446. gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
  447. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
  448. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
  449. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
  450. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
  451. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
  452. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
  453. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
  454. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  455. # Set video resolution for text setup.
  456. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  457. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  458. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  459. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  460. gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
  461. # Noexec settings for DXE.
  462. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
  463. # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
  464. gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
  465. gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
  466. # Set memory encryption mask
  467. gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
  468. # Set Tdx shared bit mask
  469. gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
  470. # Set SEV-ES defaults
  471. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
  472. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
  473. gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
  474. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
  475. # Set ConfidentialComputing defaults
  476. gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
  477. !include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
  478. gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
  479. [PcdsDynamicHii]
  480. !include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
  481. ################################################################################
  482. #
  483. # Components Section - list of all EDK II Modules needed by this Platform.
  484. #
  485. ################################################################################
  486. [Components]
  487. OvmfPkg/ResetVector/ResetVector.inf
  488. #
  489. # SEC Phase modules
  490. #
  491. OvmfPkg/Sec/SecMain.inf {
  492. <LibraryClasses>
  493. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  494. }
  495. #
  496. # PEI Phase modules
  497. #
  498. MdeModulePkg/Core/Pei/PeiMain.inf
  499. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  500. <LibraryClasses>
  501. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  502. }
  503. MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
  504. <LibraryClasses>
  505. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  506. }
  507. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
  508. <LibraryClasses>
  509. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  510. }
  511. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
  512. OvmfPkg/PlatformPei/PlatformPei.inf
  513. UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
  514. UefiCpuPkg/CpuMpPei/CpuMpPei.inf
  515. OvmfPkg/AmdSev/SecretPei/SecretPei.inf
  516. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
  517. #
  518. # DXE Phase modules
  519. #
  520. MdeModulePkg/Core/Dxe/DxeMain.inf {
  521. <LibraryClasses>
  522. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  523. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  524. }
  525. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  526. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  527. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  528. <LibraryClasses>
  529. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  530. }
  531. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  532. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  533. <LibraryClasses>
  534. !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
  535. }
  536. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  537. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  538. UefiCpuPkg/CpuDxe/CpuDxe.inf
  539. OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
  540. OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
  541. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  542. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  543. <LibraryClasses>
  544. PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  545. PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
  546. NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
  547. }
  548. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  549. <LibraryClasses>
  550. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  551. }
  552. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  553. MdeModulePkg/Universal/Metronome/Metronome.inf
  554. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
  555. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  556. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  557. MdeModulePkg/Logo/LogoDxe.inf
  558. MdeModulePkg/Application/UiApp/UiApp.inf {
  559. <LibraryClasses>
  560. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  561. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  562. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  563. }
  564. OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
  565. <LibraryClasses>
  566. NULL|OvmfPkg/AmdSev/BlobVerifierLibSevHashes/BlobVerifierLibSevHashes.inf
  567. }
  568. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  569. OvmfPkg/Virtio10Dxe/Virtio10.inf
  570. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  571. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  572. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  573. !if $(PVSCSI_ENABLE) == TRUE
  574. OvmfPkg/PvScsiDxe/PvScsiDxe.inf
  575. !endif
  576. !if $(MPT_SCSI_ENABLE) == TRUE
  577. OvmfPkg/MptScsiDxe/MptScsiDxe.inf
  578. !endif
  579. !if $(LSI_SCSI_ENABLE) == TRUE
  580. OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
  581. !endif
  582. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  583. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  584. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  585. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  586. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  587. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  588. <LibraryClasses>
  589. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  590. }
  591. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  592. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  593. <LibraryClasses>
  594. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  595. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  596. }
  597. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  598. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  599. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  600. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  601. FatPkg/EnhancedFatDxe/Fat.inf
  602. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  603. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  604. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  605. OvmfPkg/SataControllerDxe/SataControllerDxe.inf
  606. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  607. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  608. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  609. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  610. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  611. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  612. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  613. OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
  614. OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
  615. OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
  616. #
  617. # ISA Support
  618. #
  619. OvmfPkg/SioBusDxe/SioBusDxe.inf
  620. MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
  621. MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
  622. #
  623. # SMBIOS Support
  624. #
  625. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
  626. <LibraryClasses>
  627. NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
  628. }
  629. OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  630. #
  631. # ACPI Support
  632. #
  633. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  634. OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
  635. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  636. #
  637. # Usb Support
  638. #
  639. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  640. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  641. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  642. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  643. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  644. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  645. !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
  646. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  647. <PcdsFixedAtBuild>
  648. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  649. }
  650. !endif
  651. OvmfPkg/AmdSev/SecretDxe/SecretDxe.inf
  652. OvmfPkg/AmdSev/Grub/Grub.inf
  653. !if $(BUILD_SHELL) == TRUE
  654. ShellPkg/Application/Shell/Shell.inf {
  655. <LibraryClasses>
  656. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  657. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  658. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  659. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  660. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  661. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  662. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  663. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  664. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  665. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  666. <PcdsFixedAtBuild>
  667. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  668. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  669. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  670. }
  671. !endif
  672. OvmfPkg/PlatformDxe/Platform.inf
  673. OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
  674. <LibraryClasses>
  675. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  676. }
  677. OvmfPkg/IoMmuDxe/IoMmuDxe.inf
  678. #
  679. # Variable driver stack (non-SMM)
  680. #
  681. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  682. OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
  683. <LibraryClasses>
  684. PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
  685. }
  686. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  687. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  688. <LibraryClasses>
  689. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  690. }
  691. #
  692. # TPM support
  693. #
  694. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc