IntelTdxX64.dsc 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781
  1. ## @file
  2. # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
  3. #
  4. # Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>
  5. # (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
  6. # Copyright (c) Microsoft Corporation.
  7. #
  8. # SPDX-License-Identifier: BSD-2-Clause-Patent
  9. #
  10. ##
  11. ################################################################################
  12. #
  13. # Defines Section - statements that will be processed to create a Makefile.
  14. #
  15. ################################################################################
  16. [Defines]
  17. PLATFORM_NAME = Ovmf
  18. PLATFORM_GUID = 5a9e7754-d81b-49ea-85ad-69eaa7b1539b
  19. PLATFORM_VERSION = 0.1
  20. DSC_SPECIFICATION = 0x00010005
  21. OUTPUT_DIRECTORY = Build/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. CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
  290. MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
  291. NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf
  292. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
  293. QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
  294. [LibraryClasses.common.UEFI_APPLICATION]
  295. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  296. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  297. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  298. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  299. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  300. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  301. !ifdef $(DEBUG_ON_SERIAL_PORT)
  302. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  303. !else
  304. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  305. !endif
  306. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  307. [LibraryClasses.common.DXE_SMM_DRIVER]
  308. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  309. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  310. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  311. MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
  312. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  313. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  314. SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
  315. MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
  316. SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
  317. !ifdef $(DEBUG_ON_SERIAL_PORT)
  318. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  319. !else
  320. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  321. !endif
  322. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
  323. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
  324. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  325. [LibraryClasses.common.SMM_CORE]
  326. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  327. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  328. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  329. SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
  330. MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
  331. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  332. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  333. SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
  334. SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
  335. !ifdef $(DEBUG_ON_SERIAL_PORT)
  336. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  337. !else
  338. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  339. !endif
  340. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  341. ################################################################################
  342. #
  343. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  344. #
  345. ################################################################################
  346. [PcdsFeatureFlag]
  347. gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
  348. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  349. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
  350. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  351. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  352. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  353. !ifdef $(CSM_ENABLE)
  354. gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
  355. !endif
  356. [PcdsFixedAtBuild]
  357. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  358. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  359. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  360. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
  361. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  362. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  363. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  364. # match PcdFlashNvStorageVariableSize purely for convenience
  365. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  366. !endif
  367. !if $(FD_SIZE_IN_KB) == 4096
  368. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
  369. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
  370. # match PcdFlashNvStorageVariableSize purely for convenience
  371. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
  372. !endif
  373. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  374. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
  375. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
  376. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  377. # DEBUG_INIT 0x00000001 // Initialization
  378. # DEBUG_WARN 0x00000002 // Warnings
  379. # DEBUG_LOAD 0x00000004 // Load events
  380. # DEBUG_FS 0x00000008 // EFI File system
  381. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  382. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  383. # DEBUG_INFO 0x00000040 // Informational debug messages
  384. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  385. # DEBUG_VARIABLE 0x00000100 // Variable
  386. # DEBUG_BM 0x00000400 // Boot Manager
  387. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  388. # DEBUG_NET 0x00004000 // SNP Driver
  389. # DEBUG_UNDI 0x00010000 // UNDI Driver
  390. # DEBUG_LOADFILE 0x00020000 // LoadFile
  391. # DEBUG_EVENT 0x00080000 // Event messages
  392. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  393. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  394. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  395. # // significantly impact boot performance
  396. # DEBUG_ERROR 0x80000000 // Error
  397. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  398. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  399. # This PCD is used to set the base address of the PCI express hierarchy. It
  400. # is only consulted when OVMF runs on Q35. In that case it is programmed into
  401. # the PCIEXBAR register.
  402. #
  403. # On Q35 machine types that QEMU intends to support in the long term, QEMU
  404. # never lets the RAM below 4 GB exceed 2816 MB.
  405. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
  406. #
  407. # The NumberOfPages values below are ad-hoc. They are updated sporadically at
  408. # best (please refer to git-blame for past updates). The values capture a set
  409. # of BIN hints that made sense at a particular time, for some (now likely
  410. # unknown) workloads / boot paths.
  411. #
  412. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
  413. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
  414. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
  415. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
  416. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
  417. #
  418. # TDX need 1G PageTable support
  419. gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
  420. gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
  421. # IRQs 5, 9, 10, 11 are level-triggered
  422. gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
  423. # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
  424. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  425. ################################################################################
  426. #
  427. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  428. #
  429. ################################################################################
  430. [PcdsDynamicDefault]
  431. # only set when
  432. # ($(SMM_REQUIRE) == FALSE)
  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|800
  440. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
  441. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
  442. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
  443. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
  444. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
  445. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
  446. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
  447. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
  448. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
  449. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  450. # Set video resolution for text setup.
  451. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  452. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  453. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  454. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  455. gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
  456. # Noexec settings for DXE.
  457. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
  458. # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
  459. gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
  460. gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
  461. # Set memory encryption mask
  462. gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
  463. # Set Tdx shared bit mask
  464. gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
  465. # Set SEV-ES defaults
  466. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
  467. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
  468. gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
  469. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
  470. # Set ConfidentialComputing defaults
  471. gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
  472. gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
  473. ################################################################################
  474. #
  475. # Components Section - list of all EDK II Modules needed by this Platform.
  476. #
  477. ################################################################################
  478. [Components]
  479. OvmfPkg/ResetVector/ResetVector.inf
  480. #
  481. # SEC Phase modules
  482. #
  483. OvmfPkg/IntelTdx/Sec/SecMain.inf {
  484. <LibraryClasses>
  485. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  486. TpmMeasurementLib|SecurityPkg/Library/SecTpmMeasurementLib/SecTpmMeasurementLibTdx.inf
  487. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SecCryptLib.inf
  488. HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
  489. NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
  490. }
  491. #
  492. # DXE Phase modules
  493. #
  494. MdeModulePkg/Core/Dxe/DxeMain.inf {
  495. <LibraryClasses>
  496. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  497. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  498. }
  499. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  500. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  501. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  502. <LibraryClasses>
  503. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  504. }
  505. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  506. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  507. <LibraryClasses>
  508. !if $(SECURE_BOOT_ENABLE) == TRUE
  509. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  510. !endif
  511. NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
  512. }
  513. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  514. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  515. UefiCpuPkg/CpuDxe/CpuDxe.inf {
  516. <LibraryClasses>
  517. CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
  518. #
  519. # Directly use DxeMpInitLib. It depends on DxeMpInitLibMpDepLib which
  520. # checks the Protocol of gEfiMpInitLibMpDepProtocolGuid.
  521. #
  522. MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
  523. NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf
  524. }
  525. UefiCpuPkg/CpuDxe/CpuDxe.inf {
  526. <Defines>
  527. FILE_GUID = $(UP_CPU_DXE_GUID)
  528. <LibraryClasses>
  529. #
  530. # Directly use MpInitLibUp. It depends on DxeMpInitLibUpDepLib which
  531. # checks the Protocol of gEfiMpInitLibUpDepProtocolGuid.
  532. #
  533. MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
  534. NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf
  535. }
  536. OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
  537. OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
  538. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  539. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  540. <LibraryClasses>
  541. PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  542. PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
  543. NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
  544. }
  545. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  546. <LibraryClasses>
  547. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  548. }
  549. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  550. MdeModulePkg/Universal/Metronome/Metronome.inf
  551. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
  552. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  553. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
  554. <LibraryClasses>
  555. XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
  556. }
  557. MdeModulePkg/Logo/LogoDxe.inf
  558. MdeModulePkg/Application/UiApp/UiApp.inf {
  559. <LibraryClasses>
  560. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  561. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  562. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  563. }
  564. OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
  565. <LibraryClasses>
  566. NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
  567. }
  568. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  569. OvmfPkg/Virtio10Dxe/Virtio10.inf
  570. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  571. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  572. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  573. !if $(PVSCSI_ENABLE) == TRUE
  574. OvmfPkg/PvScsiDxe/PvScsiDxe.inf
  575. !endif
  576. !if $(MPT_SCSI_ENABLE) == TRUE
  577. OvmfPkg/MptScsiDxe/MptScsiDxe.inf
  578. !endif
  579. !if $(LSI_SCSI_ENABLE) == TRUE
  580. OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
  581. !endif
  582. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  583. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  584. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  585. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  586. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  587. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  588. <LibraryClasses>
  589. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  590. }
  591. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  592. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  593. <LibraryClasses>
  594. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  595. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  596. }
  597. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  598. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  599. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  600. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  601. FatPkg/EnhancedFatDxe/Fat.inf
  602. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  603. OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
  604. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  605. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  606. OvmfPkg/SataControllerDxe/SataControllerDxe.inf
  607. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  608. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  609. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  610. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  611. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  612. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  613. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  614. !ifndef $(CSM_ENABLE)
  615. OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
  616. !endif
  617. OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
  618. OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
  619. #
  620. # ISA Support
  621. #
  622. OvmfPkg/SioBusDxe/SioBusDxe.inf
  623. MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
  624. MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
  625. #
  626. # SMBIOS Support
  627. #
  628. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
  629. <LibraryClasses>
  630. NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
  631. }
  632. OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  633. #
  634. # ACPI Support
  635. #
  636. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  637. OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
  638. MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
  639. MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
  640. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  641. #
  642. # Usb Support
  643. #
  644. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  645. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  646. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  647. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  648. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  649. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  650. !if $(TOOL_CHAIN_TAG) != "XCODE5"
  651. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  652. <PcdsFixedAtBuild>
  653. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  654. }
  655. !endif
  656. ShellPkg/Application/Shell/Shell.inf {
  657. <LibraryClasses>
  658. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  659. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  660. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  661. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  662. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  663. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  664. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  665. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  666. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  667. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  668. <PcdsFixedAtBuild>
  669. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  670. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  671. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  672. }
  673. !if $(SECURE_BOOT_ENABLE) == TRUE
  674. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  675. OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
  676. !endif
  677. OvmfPkg/PlatformDxe/Platform.inf
  678. OvmfPkg/IoMmuDxe/IoMmuDxe.inf
  679. OvmfPkg/TdxDxe/TdxDxe.inf
  680. #
  681. # Variable driver stack (non-SMM)
  682. #
  683. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  684. OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
  685. <LibraryClasses>
  686. PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
  687. }
  688. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  689. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  690. <LibraryClasses>
  691. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  692. }
  693. #
  694. # Cc Measurement Protocol for Td guest
  695. #
  696. SecurityPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.inf {
  697. <LibraryClasses>
  698. HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
  699. NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
  700. }