AmdSevX64.dsc 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769
  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/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/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. [LibraryClasses.common.SEC]
  189. TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
  190. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
  191. !ifdef $(DEBUG_ON_SERIAL_PORT)
  192. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  193. !else
  194. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  195. !endif
  196. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  197. ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  198. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  199. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  200. !endif
  201. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  202. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  203. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  204. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  205. !if $(TOOL_CHAIN_TAG) == "XCODE5"
  206. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
  207. !else
  208. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
  209. !endif
  210. CcExitLib|OvmfPkg/Library/CcExitLib/SecCcExitLib.inf
  211. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
  212. [LibraryClasses.common.PEI_CORE]
  213. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  214. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  215. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  216. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  217. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  218. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  219. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  220. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  221. !ifdef $(DEBUG_ON_SERIAL_PORT)
  222. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  223. !else
  224. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  225. !endif
  226. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  227. [LibraryClasses.common.PEIM]
  228. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  229. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  230. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  231. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  232. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  233. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  234. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  235. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  236. !ifdef $(DEBUG_ON_SERIAL_PORT)
  237. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  238. !else
  239. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  240. !endif
  241. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  242. ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  243. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  244. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  245. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  246. !endif
  247. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
  248. MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
  249. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
  250. QemuLoadImageLib|OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.inf
  251. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  252. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
  253. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
  254. PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
  255. [LibraryClasses.common.DXE_CORE]
  256. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  257. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  258. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  259. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  260. !ifdef $(DEBUG_ON_SERIAL_PORT)
  261. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  262. !else
  263. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  264. !endif
  265. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  266. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  267. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  268. !endif
  269. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  270. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  271. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  272. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  273. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  274. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  275. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  276. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  277. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  278. ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
  279. !ifdef $(DEBUG_ON_SERIAL_PORT)
  280. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  281. !else
  282. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  283. !endif
  284. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  285. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  286. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  287. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
  288. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  289. [LibraryClasses.common.UEFI_DRIVER]
  290. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  291. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  292. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  293. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  294. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  295. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  296. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  297. !ifdef $(DEBUG_ON_SERIAL_PORT)
  298. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  299. !else
  300. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  301. !endif
  302. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  303. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  304. [LibraryClasses.common.DXE_DRIVER]
  305. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  306. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  307. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  308. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  309. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  310. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  311. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  312. !ifdef $(DEBUG_ON_SERIAL_PORT)
  313. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  314. !else
  315. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  316. !endif
  317. PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLibGrub/PlatformBootManagerLibGrub.inf
  318. PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
  319. QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
  320. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  321. LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
  322. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  323. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  324. !endif
  325. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  326. MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
  327. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
  328. QemuLoadImageLib|OvmfPkg/Library/GenericQemuLoadImageLib/GenericQemuLoadImageLib.inf
  329. [LibraryClasses.common.UEFI_APPLICATION]
  330. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  331. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  332. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  333. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  334. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  335. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  336. !ifdef $(DEBUG_ON_SERIAL_PORT)
  337. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  338. !else
  339. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  340. !endif
  341. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  342. ################################################################################
  343. #
  344. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  345. #
  346. ################################################################################
  347. [PcdsFeatureFlag]
  348. gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
  349. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  350. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
  351. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  352. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  353. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  354. [PcdsFixedAtBuild]
  355. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  356. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  357. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  358. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
  359. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  360. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  361. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  362. # match PcdFlashNvStorageVariableSize purely for convenience
  363. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  364. !endif
  365. !if $(FD_SIZE_IN_KB) == 4096
  366. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
  367. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
  368. # match PcdFlashNvStorageVariableSize purely for convenience
  369. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
  370. !endif
  371. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  372. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
  373. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
  374. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  375. # DEBUG_INIT 0x00000001 // Initialization
  376. # DEBUG_WARN 0x00000002 // Warnings
  377. # DEBUG_LOAD 0x00000004 // Load events
  378. # DEBUG_FS 0x00000008 // EFI File system
  379. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  380. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  381. # DEBUG_INFO 0x00000040 // Informational debug messages
  382. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  383. # DEBUG_VARIABLE 0x00000100 // Variable
  384. # DEBUG_BM 0x00000400 // Boot Manager
  385. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  386. # DEBUG_NET 0x00004000 // SNP Driver
  387. # DEBUG_UNDI 0x00010000 // UNDI Driver
  388. # DEBUG_LOADFILE 0x00020000 // LoadFile
  389. # DEBUG_EVENT 0x00080000 // Event messages
  390. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  391. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  392. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  393. # // significantly impact boot performance
  394. # DEBUG_ERROR 0x80000000 // Error
  395. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  396. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  397. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  398. !else
  399. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  400. !endif
  401. # This PCD is used to set the base address of the PCI express hierarchy. It
  402. # is only consulted when OVMF runs on Q35. In that case it is programmed into
  403. # the PCIEXBAR register.
  404. #
  405. # On Q35 machine types that QEMU intends to support in the long term, QEMU
  406. # never lets the RAM below 4 GB exceed 2816 MB.
  407. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
  408. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  409. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  410. !endif
  411. #
  412. # The NumberOfPages values below are ad-hoc. They are updated sporadically at
  413. # best (please refer to git-blame for past updates). The values capture a set
  414. # of BIN hints that made sense at a particular time, for some (now likely
  415. # unknown) workloads / boot paths.
  416. #
  417. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
  418. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
  419. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
  420. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
  421. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
  422. # IRQs 5, 9, 10, 11 are level-triggered
  423. gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
  424. # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
  425. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  426. gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand|TRUE
  427. ################################################################################
  428. #
  429. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  430. #
  431. ################################################################################
  432. [PcdsDynamicDefault]
  433. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  434. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  435. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
  436. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
  437. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  438. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  439. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
  440. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
  441. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
  442. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
  443. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
  444. gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
  445. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
  446. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
  447. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
  448. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
  449. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
  450. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
  451. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
  452. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  453. # Set video resolution for text setup.
  454. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  455. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  456. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  457. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  458. gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
  459. # Noexec settings for DXE.
  460. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
  461. # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
  462. gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
  463. gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
  464. # Set memory encryption mask
  465. gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
  466. # Set Tdx shared bit mask
  467. gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
  468. # Set SEV-ES defaults
  469. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
  470. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
  471. gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
  472. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
  473. # Set ConfidentialComputing defaults
  474. gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
  475. !include OvmfPkg/OvmfTpmPcds.dsc.inc
  476. gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
  477. [PcdsDynamicHii]
  478. !include OvmfPkg/OvmfTpmPcdsHii.dsc.inc
  479. ################################################################################
  480. #
  481. # Components Section - list of all EDK II Modules needed by this Platform.
  482. #
  483. ################################################################################
  484. [Components]
  485. OvmfPkg/ResetVector/ResetVector.inf
  486. #
  487. # SEC Phase modules
  488. #
  489. OvmfPkg/Sec/SecMain.inf {
  490. <LibraryClasses>
  491. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  492. }
  493. #
  494. # PEI Phase modules
  495. #
  496. MdeModulePkg/Core/Pei/PeiMain.inf
  497. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  498. <LibraryClasses>
  499. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  500. }
  501. MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
  502. <LibraryClasses>
  503. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  504. }
  505. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
  506. <LibraryClasses>
  507. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  508. }
  509. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
  510. OvmfPkg/PlatformPei/PlatformPei.inf
  511. UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf
  512. UefiCpuPkg/CpuMpPei/CpuMpPei.inf
  513. OvmfPkg/AmdSev/SecretPei/SecretPei.inf
  514. !include OvmfPkg/OvmfTpmComponentsPei.dsc.inc
  515. #
  516. # DXE Phase modules
  517. #
  518. MdeModulePkg/Core/Dxe/DxeMain.inf {
  519. <LibraryClasses>
  520. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  521. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  522. }
  523. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  524. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  525. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  526. <LibraryClasses>
  527. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  528. }
  529. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  530. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  531. <LibraryClasses>
  532. !include OvmfPkg/OvmfTpmSecurityStub.dsc.inc
  533. }
  534. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  535. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  536. UefiCpuPkg/CpuDxe/CpuDxe.inf
  537. OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
  538. OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
  539. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  540. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  541. <LibraryClasses>
  542. PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  543. PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
  544. NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
  545. }
  546. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  547. <LibraryClasses>
  548. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  549. }
  550. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  551. MdeModulePkg/Universal/Metronome/Metronome.inf
  552. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
  553. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  554. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  555. MdeModulePkg/Logo/LogoDxe.inf
  556. MdeModulePkg/Application/UiApp/UiApp.inf {
  557. <LibraryClasses>
  558. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  559. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  560. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  561. }
  562. OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
  563. <LibraryClasses>
  564. NULL|OvmfPkg/AmdSev/BlobVerifierLibSevHashes/BlobVerifierLibSevHashes.inf
  565. }
  566. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  567. OvmfPkg/Virtio10Dxe/Virtio10.inf
  568. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  569. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  570. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  571. !if $(PVSCSI_ENABLE) == TRUE
  572. OvmfPkg/PvScsiDxe/PvScsiDxe.inf
  573. !endif
  574. !if $(MPT_SCSI_ENABLE) == TRUE
  575. OvmfPkg/MptScsiDxe/MptScsiDxe.inf
  576. !endif
  577. !if $(LSI_SCSI_ENABLE) == TRUE
  578. OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
  579. !endif
  580. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  581. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  582. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  583. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  584. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  585. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  586. <LibraryClasses>
  587. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  588. }
  589. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  590. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  591. <LibraryClasses>
  592. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  593. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  594. }
  595. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  596. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  597. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  598. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  599. FatPkg/EnhancedFatDxe/Fat.inf
  600. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  601. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  602. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  603. OvmfPkg/SataControllerDxe/SataControllerDxe.inf
  604. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  605. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  606. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  607. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  608. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  609. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  610. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  611. OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
  612. OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
  613. OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
  614. #
  615. # ISA Support
  616. #
  617. OvmfPkg/SioBusDxe/SioBusDxe.inf
  618. MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
  619. MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
  620. #
  621. # SMBIOS Support
  622. #
  623. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
  624. <LibraryClasses>
  625. NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
  626. }
  627. OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  628. #
  629. # ACPI Support
  630. #
  631. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  632. OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
  633. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  634. #
  635. # Usb Support
  636. #
  637. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  638. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  639. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  640. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  641. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  642. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  643. !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
  644. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  645. <PcdsFixedAtBuild>
  646. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  647. }
  648. !endif
  649. OvmfPkg/AmdSev/SecretDxe/SecretDxe.inf
  650. OvmfPkg/AmdSev/Grub/Grub.inf
  651. !if $(BUILD_SHELL) == TRUE
  652. ShellPkg/Application/Shell/Shell.inf {
  653. <LibraryClasses>
  654. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  655. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  656. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  657. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  658. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  659. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  660. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  661. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  662. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  663. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  664. <PcdsFixedAtBuild>
  665. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  666. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  667. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  668. }
  669. !endif
  670. OvmfPkg/PlatformDxe/Platform.inf
  671. OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
  672. <LibraryClasses>
  673. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  674. }
  675. OvmfPkg/IoMmuDxe/IoMmuDxe.inf
  676. #
  677. # Variable driver stack (non-SMM)
  678. #
  679. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  680. OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
  681. <LibraryClasses>
  682. PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
  683. }
  684. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  685. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  686. <LibraryClasses>
  687. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  688. }
  689. #
  690. # TPM support
  691. #
  692. !include OvmfPkg/OvmfTpmComponentsDxe.dsc.inc