IntelTdxX64.dsc 36 KB

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