IntelTdxX64.dsc 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779
  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. NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf
  291. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
  292. QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
  293. [LibraryClasses.common.UEFI_APPLICATION]
  294. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  295. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  296. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  297. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  298. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  299. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  300. !ifdef $(DEBUG_ON_SERIAL_PORT)
  301. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  302. !else
  303. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  304. !endif
  305. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  306. [LibraryClasses.common.DXE_SMM_DRIVER]
  307. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  308. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  309. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  310. MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
  311. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  312. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  313. SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
  314. MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
  315. SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
  316. !ifdef $(DEBUG_ON_SERIAL_PORT)
  317. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  318. !else
  319. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  320. !endif
  321. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
  322. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
  323. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  324. [LibraryClasses.common.SMM_CORE]
  325. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  326. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  327. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  328. SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
  329. MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
  330. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  331. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  332. SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
  333. SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
  334. !ifdef $(DEBUG_ON_SERIAL_PORT)
  335. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  336. !else
  337. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  338. !endif
  339. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  340. ################################################################################
  341. #
  342. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  343. #
  344. ################################################################################
  345. [PcdsFeatureFlag]
  346. gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
  347. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  348. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
  349. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  350. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  351. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  352. !ifdef $(CSM_ENABLE)
  353. gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
  354. !endif
  355. [PcdsFixedAtBuild]
  356. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  357. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  358. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  359. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
  360. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  361. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  362. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  363. # match PcdFlashNvStorageVariableSize purely for convenience
  364. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  365. !endif
  366. !if $(FD_SIZE_IN_KB) == 4096
  367. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
  368. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
  369. # match PcdFlashNvStorageVariableSize purely for convenience
  370. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
  371. !endif
  372. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  373. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
  374. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
  375. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  376. # DEBUG_INIT 0x00000001 // Initialization
  377. # DEBUG_WARN 0x00000002 // Warnings
  378. # DEBUG_LOAD 0x00000004 // Load events
  379. # DEBUG_FS 0x00000008 // EFI File system
  380. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  381. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  382. # DEBUG_INFO 0x00000040 // Informational debug messages
  383. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  384. # DEBUG_VARIABLE 0x00000100 // Variable
  385. # DEBUG_BM 0x00000400 // Boot Manager
  386. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  387. # DEBUG_NET 0x00004000 // SNP Driver
  388. # DEBUG_UNDI 0x00010000 // UNDI Driver
  389. # DEBUG_LOADFILE 0x00020000 // LoadFile
  390. # DEBUG_EVENT 0x00080000 // Event messages
  391. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  392. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  393. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  394. # // significantly impact boot performance
  395. # DEBUG_ERROR 0x80000000 // Error
  396. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  397. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  398. # This PCD is used to set the base address of the PCI express hierarchy. It
  399. # is only consulted when OVMF runs on Q35. In that case it is programmed into
  400. # the PCIEXBAR register.
  401. #
  402. # On Q35 machine types that QEMU intends to support in the long term, QEMU
  403. # never lets the RAM below 4 GB exceed 2816 MB.
  404. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
  405. #
  406. # The NumberOfPages values below are ad-hoc. They are updated sporadically at
  407. # best (please refer to git-blame for past updates). The values capture a set
  408. # of BIN hints that made sense at a particular time, for some (now likely
  409. # unknown) workloads / boot paths.
  410. #
  411. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
  412. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
  413. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
  414. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
  415. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
  416. #
  417. # TDX need 1G PageTable support
  418. gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
  419. gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
  420. # IRQs 5, 9, 10, 11 are level-triggered
  421. gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
  422. # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
  423. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  424. ################################################################################
  425. #
  426. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  427. #
  428. ################################################################################
  429. [PcdsDynamicDefault]
  430. # only set when
  431. # ($(SMM_REQUIRE) == FALSE)
  432. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  433. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  434. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
  435. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
  436. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  437. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  438. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
  439. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
  440. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
  441. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
  442. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
  443. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
  444. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
  445. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
  446. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
  447. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
  448. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  449. # Set video resolution for text setup.
  450. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  451. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  452. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  453. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  454. gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
  455. # Noexec settings for DXE.
  456. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
  457. # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
  458. gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
  459. gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
  460. # Set memory encryption mask
  461. gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
  462. # Set Tdx shared bit mask
  463. gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
  464. # Set SEV-ES defaults
  465. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
  466. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
  467. gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
  468. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
  469. # Set ConfidentialComputing defaults
  470. gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
  471. gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
  472. ################################################################################
  473. #
  474. # Components Section - list of all EDK II Modules needed by this Platform.
  475. #
  476. ################################################################################
  477. [Components]
  478. OvmfPkg/ResetVector/ResetVector.inf
  479. #
  480. # SEC Phase modules
  481. #
  482. OvmfPkg/IntelTdx/Sec/SecMain.inf {
  483. <LibraryClasses>
  484. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  485. TpmMeasurementLib|SecurityPkg/Library/SecTpmMeasurementLib/SecTpmMeasurementLibTdx.inf
  486. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SecCryptLib.inf
  487. HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
  488. NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
  489. }
  490. #
  491. # DXE Phase modules
  492. #
  493. MdeModulePkg/Core/Dxe/DxeMain.inf {
  494. <LibraryClasses>
  495. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  496. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  497. }
  498. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  499. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  500. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  501. <LibraryClasses>
  502. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  503. }
  504. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  505. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  506. <LibraryClasses>
  507. !if $(SECURE_BOOT_ENABLE) == TRUE
  508. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  509. !endif
  510. NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
  511. }
  512. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  513. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  514. UefiCpuPkg/CpuDxe/CpuDxe.inf {
  515. <LibraryClasses>
  516. #
  517. # Directly use DxeMpInitLib. It depends on DxeMpInitLibMpDepLib which
  518. # checks the Protocol of gEfiMpInitLibMpDepProtocolGuid.
  519. #
  520. MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
  521. NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf
  522. }
  523. UefiCpuPkg/CpuDxe/CpuDxe.inf {
  524. <Defines>
  525. FILE_GUID = $(UP_CPU_DXE_GUID)
  526. <LibraryClasses>
  527. #
  528. # Directly use MpInitLibUp. It depends on DxeMpInitLibUpDepLib which
  529. # checks the Protocol of gEfiMpInitLibUpDepProtocolGuid.
  530. #
  531. MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
  532. NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf
  533. }
  534. OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
  535. OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
  536. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  537. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  538. <LibraryClasses>
  539. PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  540. PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
  541. NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
  542. }
  543. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  544. <LibraryClasses>
  545. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  546. }
  547. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  548. MdeModulePkg/Universal/Metronome/Metronome.inf
  549. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
  550. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  551. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
  552. <LibraryClasses>
  553. XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
  554. }
  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/Library/BlobVerifierLibNull/BlobVerifierLibNull.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. OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
  602. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  603. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  604. OvmfPkg/SataControllerDxe/SataControllerDxe.inf
  605. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  606. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  607. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  608. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  609. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  610. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  611. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  612. !ifndef $(CSM_ENABLE)
  613. OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
  614. !endif
  615. OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
  616. OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
  617. #
  618. # ISA Support
  619. #
  620. OvmfPkg/SioBusDxe/SioBusDxe.inf
  621. MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
  622. MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
  623. #
  624. # SMBIOS Support
  625. #
  626. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
  627. <LibraryClasses>
  628. NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
  629. }
  630. OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  631. #
  632. # ACPI Support
  633. #
  634. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  635. OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
  636. MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
  637. MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
  638. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  639. #
  640. # Usb Support
  641. #
  642. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  643. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  644. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  645. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  646. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  647. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  648. !if $(TOOL_CHAIN_TAG) != "XCODE5"
  649. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  650. <PcdsFixedAtBuild>
  651. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  652. }
  653. !endif
  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. !if $(SECURE_BOOT_ENABLE) == TRUE
  672. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  673. OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
  674. !endif
  675. OvmfPkg/PlatformDxe/Platform.inf
  676. OvmfPkg/IoMmuDxe/IoMmuDxe.inf
  677. OvmfPkg/TdxDxe/TdxDxe.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. # Cc Measurement Protocol for Td guest
  693. #
  694. SecurityPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.inf {
  695. <LibraryClasses>
  696. HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
  697. NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
  698. }