IntelTdxX64.dsc 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  1. ## @file
  2. # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
  3. #
  4. # Copyright (c) 2006 - 2021, 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/IntelTdx
  22. SUPPORTED_ARCHITECTURES = X64
  23. BUILD_TARGETS = NOOPT|DEBUG|RELEASE
  24. SKUID_IDENTIFIER = DEFAULT
  25. FLASH_DEFINITION = OvmfPkg/IntelTdx/IntelTdxX64.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. #
  32. # Device drivers
  33. #
  34. DEFINE PVSCSI_ENABLE = FALSE
  35. DEFINE MPT_SCSI_ENABLE = FALSE
  36. DEFINE LSI_SCSI_ENABLE = FALSE
  37. #
  38. # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
  39. # one of the supported values, in place of any of the convenience macros, is
  40. # permitted.
  41. #
  42. !ifdef $(FD_SIZE_1MB)
  43. DEFINE FD_SIZE_IN_KB = 1024
  44. !else
  45. !ifdef $(FD_SIZE_2MB)
  46. DEFINE FD_SIZE_IN_KB = 2048
  47. !else
  48. !ifdef $(FD_SIZE_4MB)
  49. DEFINE FD_SIZE_IN_KB = 4096
  50. !else
  51. DEFINE FD_SIZE_IN_KB = 4096
  52. !endif
  53. !endif
  54. !endif
  55. #
  56. # Define the FILE_GUID of CpuDxe for unique-processor version.
  57. #
  58. DEFINE UP_CPU_DXE_GUID = 6490f1c5-ebcc-4665-8892-0075b9bb49b7
  59. [BuildOptions]
  60. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  61. INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
  62. MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
  63. !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
  64. GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
  65. !endif
  66. RELEASE_*_*_GENFW_FLAGS = --zero
  67. #
  68. # Disable deprecated APIs.
  69. #
  70. MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
  71. INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
  72. GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
  73. #
  74. # Add TDX_PEI_LESS_BOOT
  75. #
  76. MSFT:*_*_*_CC_FLAGS = /D TDX_PEI_LESS_BOOT
  77. INTEL:*_*_*_CC_FLAGS = /D TDX_PEI_LESS_BOOT
  78. GCC:*_*_*_CC_FLAGS = -D TDX_PEI_LESS_BOOT
  79. #
  80. # SECURE_BOOT_FEATURE_ENABLED
  81. #
  82. !if $(SECURE_BOOT_ENABLE) == TRUE
  83. MSFT:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
  84. INTEL:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
  85. GCC:*_*_*_CC_FLAGS = -D SECURE_BOOT_FEATURE_ENABLED
  86. !endif
  87. [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
  88. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
  89. XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
  90. XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
  91. CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
  92. ################################################################################
  93. #
  94. # SKU Identification section - list of all SKU IDs supported by this Platform.
  95. #
  96. ################################################################################
  97. [SkuIds]
  98. 0|DEFAULT
  99. ################################################################################
  100. #
  101. # Library Class section - list of all Library Classes needed by this Platform.
  102. #
  103. ################################################################################
  104. !include MdePkg/MdeLibs.dsc.inc
  105. [LibraryClasses]
  106. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  107. TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
  108. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
  109. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  110. BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
  111. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  112. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  113. TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
  114. BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
  115. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  116. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  117. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  118. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  119. CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
  120. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  121. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  122. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  123. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  124. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  125. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  126. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  127. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  128. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  129. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  130. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  131. PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
  132. PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  133. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  134. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  135. PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
  136. PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
  137. PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
  138. CcProbeLib|OvmfPkg/Library/CcProbeLib/DxeCcProbeLib.inf
  139. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
  140. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  141. SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
  142. MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
  143. MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
  144. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  145. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  146. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  147. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  148. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  149. DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
  150. NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
  151. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  152. UefiCpuLib|UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf
  153. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  154. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  155. SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
  156. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
  157. QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
  158. VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
  159. LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
  160. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
  161. MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf
  162. PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
  163. DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
  164. LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
  165. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  166. FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
  167. PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  168. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  169. LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
  170. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  171. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  172. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
  173. RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
  174. !if $(SECURE_BOOT_ENABLE) == TRUE
  175. PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
  176. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  177. SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
  178. PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
  179. SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
  180. !else
  181. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  182. !endif
  183. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  184. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  185. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  186. VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
  187. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  188. ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
  189. S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
  190. SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
  191. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  192. Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
  193. TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
  194. [LibraryClasses.common]
  195. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  196. CcExitLib|OvmfPkg/Library/CcExitLib/CcExitLib.inf
  197. TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
  198. TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf
  199. PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
  200. [LibraryClasses.common.SEC]
  201. TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
  202. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
  203. !ifdef $(DEBUG_ON_SERIAL_PORT)
  204. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  205. !else
  206. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  207. !endif
  208. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  209. ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  210. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  211. MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
  212. !if $(TOOL_CHAIN_TAG) == "XCODE5"
  213. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
  214. !else
  215. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
  216. !endif
  217. CcExitLib|OvmfPkg/Library/CcExitLib/SecCcExitLib.inf
  218. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
  219. PrePiHobListPointerLib|OvmfPkg/IntelTdx/PrePiHobListPointerLibTdx/PrePiHobListPointerLibTdx.inf
  220. HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
  221. PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
  222. PeilessStartupLib|OvmfPkg/Library/PeilessStartupLib/PeilessStartupLib.inf
  223. CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
  224. [LibraryClasses.common.DXE_CORE]
  225. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  226. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  227. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  228. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  229. !ifdef $(DEBUG_ON_SERIAL_PORT)
  230. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  231. !else
  232. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  233. !endif
  234. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  235. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  236. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  237. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  238. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  239. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  240. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  241. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  242. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  243. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  244. ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
  245. !ifdef $(DEBUG_ON_SERIAL_PORT)
  246. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  247. !else
  248. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  249. !endif
  250. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  251. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  252. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  253. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
  254. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  255. [LibraryClasses.common.UEFI_DRIVER]
  256. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  257. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  258. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  259. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  260. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  261. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  262. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  263. !ifdef $(DEBUG_ON_SERIAL_PORT)
  264. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  265. !else
  266. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  267. !endif
  268. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  269. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  270. [LibraryClasses.common.DXE_DRIVER]
  271. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  272. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  273. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  274. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  275. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  276. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  277. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  278. !ifdef $(DEBUG_ON_SERIAL_PORT)
  279. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  280. !else
  281. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  282. !endif
  283. PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  284. PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
  285. QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
  286. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  287. LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
  288. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  289. MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
  290. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
  291. QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
  292. [LibraryClasses.common.UEFI_APPLICATION]
  293. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  294. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  295. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  296. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  297. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  298. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  299. !ifdef $(DEBUG_ON_SERIAL_PORT)
  300. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  301. !else
  302. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  303. !endif
  304. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  305. [LibraryClasses.common.DXE_SMM_DRIVER]
  306. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  307. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  308. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  309. MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
  310. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  311. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  312. SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
  313. MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
  314. SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
  315. !ifdef $(DEBUG_ON_SERIAL_PORT)
  316. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  317. !else
  318. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  319. !endif
  320. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
  321. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
  322. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  323. [LibraryClasses.common.SMM_CORE]
  324. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  325. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  326. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  327. SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
  328. MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
  329. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  330. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  331. SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
  332. SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
  333. !ifdef $(DEBUG_ON_SERIAL_PORT)
  334. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  335. !else
  336. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  337. !endif
  338. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  339. ################################################################################
  340. #
  341. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  342. #
  343. ################################################################################
  344. [PcdsFeatureFlag]
  345. gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
  346. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  347. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
  348. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  349. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  350. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  351. !ifdef $(CSM_ENABLE)
  352. gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
  353. !endif
  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. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  397. # This PCD is used to set the base address of the PCI express hierarchy. It
  398. # is only consulted when OVMF runs on Q35. In that case it is programmed into
  399. # the PCIEXBAR register.
  400. #
  401. # On Q35 machine types that QEMU intends to support in the long term, QEMU
  402. # never lets the RAM below 4 GB exceed 2816 MB.
  403. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
  404. #
  405. # The NumberOfPages values below are ad-hoc. They are updated sporadically at
  406. # best (please refer to git-blame for past updates). The values capture a set
  407. # of BIN hints that made sense at a particular time, for some (now likely
  408. # unknown) workloads / boot paths.
  409. #
  410. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
  411. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
  412. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
  413. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
  414. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
  415. #
  416. # TDX need 1G PageTable support
  417. gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
  418. gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
  419. # IRQs 5, 9, 10, 11 are level-triggered
  420. gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
  421. # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
  422. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  423. ################################################################################
  424. #
  425. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  426. #
  427. ################################################################################
  428. [PcdsDynamicDefault]
  429. # only set when
  430. # ($(SMM_REQUIRE) == FALSE)
  431. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  432. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  433. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
  434. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
  435. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  436. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  437. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
  438. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
  439. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
  440. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
  441. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
  442. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
  443. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
  444. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
  445. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
  446. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
  447. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  448. # Set video resolution for text setup.
  449. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  450. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  451. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  452. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  453. gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
  454. # Noexec settings for DXE.
  455. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
  456. # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
  457. gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
  458. gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
  459. # Set memory encryption mask
  460. gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
  461. # Set Tdx shared bit mask
  462. gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
  463. # Set SEV-ES defaults
  464. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
  465. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
  466. gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
  467. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
  468. # Set ConfidentialComputing defaults
  469. gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
  470. gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
  471. ################################################################################
  472. #
  473. # Components Section - list of all EDK II Modules needed by this Platform.
  474. #
  475. ################################################################################
  476. [Components]
  477. OvmfPkg/ResetVector/ResetVector.inf
  478. #
  479. # SEC Phase modules
  480. #
  481. OvmfPkg/IntelTdx/Sec/SecMain.inf {
  482. <LibraryClasses>
  483. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  484. TpmMeasurementLib|SecurityPkg/Library/SecTpmMeasurementLib/SecTpmMeasurementLibTdx.inf
  485. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SecCryptLib.inf
  486. HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
  487. NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
  488. }
  489. #
  490. # DXE Phase modules
  491. #
  492. MdeModulePkg/Core/Dxe/DxeMain.inf {
  493. <LibraryClasses>
  494. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  495. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  496. }
  497. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  498. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  499. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  500. <LibraryClasses>
  501. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  502. }
  503. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  504. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  505. <LibraryClasses>
  506. !if $(SECURE_BOOT_ENABLE) == TRUE
  507. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  508. !endif
  509. NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
  510. }
  511. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  512. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  513. UefiCpuPkg/CpuDxe/CpuDxe.inf {
  514. <LibraryClasses>
  515. #
  516. # Directly use DxeMpInitLib. It depends on DxeMpInitLibMpDepLib which
  517. # checks the Protocol of gEfiMpInitLibMpDepProtocolGuid.
  518. #
  519. MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
  520. NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf
  521. }
  522. UefiCpuPkg/CpuDxe/CpuDxe.inf {
  523. <Defines>
  524. FILE_GUID = $(UP_CPU_DXE_GUID)
  525. <LibraryClasses>
  526. #
  527. # Directly use MpInitLibUp. It depends on DxeMpInitLibUpDepLib which
  528. # checks the Protocol of gEfiMpInitLibUpDepProtocolGuid.
  529. #
  530. MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
  531. NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf
  532. }
  533. OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
  534. OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
  535. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  536. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  537. <LibraryClasses>
  538. PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  539. PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
  540. NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
  541. }
  542. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  543. <LibraryClasses>
  544. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  545. }
  546. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  547. MdeModulePkg/Universal/Metronome/Metronome.inf
  548. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
  549. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  550. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
  551. <LibraryClasses>
  552. XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
  553. }
  554. MdeModulePkg/Logo/LogoDxe.inf
  555. MdeModulePkg/Application/UiApp/UiApp.inf {
  556. <LibraryClasses>
  557. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  558. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  559. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  560. }
  561. OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
  562. <LibraryClasses>
  563. NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
  564. }
  565. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  566. OvmfPkg/Virtio10Dxe/Virtio10.inf
  567. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  568. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  569. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  570. !if $(PVSCSI_ENABLE) == TRUE
  571. OvmfPkg/PvScsiDxe/PvScsiDxe.inf
  572. !endif
  573. !if $(MPT_SCSI_ENABLE) == TRUE
  574. OvmfPkg/MptScsiDxe/MptScsiDxe.inf
  575. !endif
  576. !if $(LSI_SCSI_ENABLE) == TRUE
  577. OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
  578. !endif
  579. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  580. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  581. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  582. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  583. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  584. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  585. <LibraryClasses>
  586. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  587. }
  588. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  589. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  590. <LibraryClasses>
  591. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  592. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  593. }
  594. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  595. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  596. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  597. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  598. FatPkg/EnhancedFatDxe/Fat.inf
  599. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  600. OvmfPkg/VirtioFsDxe/VirtioFsDxe.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. !ifndef $(CSM_ENABLE)
  612. OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
  613. !endif
  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/S3SaveStateDxe/S3SaveStateDxe.inf
  636. MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
  637. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  638. #
  639. # Usb Support
  640. #
  641. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  642. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  643. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  644. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  645. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  646. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  647. !if $(TOOL_CHAIN_TAG) != "XCODE5"
  648. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  649. <PcdsFixedAtBuild>
  650. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  651. }
  652. !endif
  653. ShellPkg/Application/Shell/Shell.inf {
  654. <LibraryClasses>
  655. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  656. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  657. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  658. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  659. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  660. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  661. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  662. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  663. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  664. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  665. <PcdsFixedAtBuild>
  666. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  667. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  668. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  669. }
  670. !if $(SECURE_BOOT_ENABLE) == TRUE
  671. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  672. OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
  673. !endif
  674. OvmfPkg/PlatformDxe/Platform.inf
  675. OvmfPkg/IoMmuDxe/IoMmuDxe.inf
  676. OvmfPkg/TdxDxe/TdxDxe.inf
  677. #
  678. # Variable driver stack (non-SMM)
  679. #
  680. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  681. OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
  682. <LibraryClasses>
  683. PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
  684. }
  685. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  686. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  687. <LibraryClasses>
  688. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  689. }
  690. #
  691. # Cc Measurement Protocol for Td guest
  692. #
  693. OvmfPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.inf {
  694. <LibraryClasses>
  695. HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
  696. NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
  697. }