OvmfPkgX64.dsc 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122
  1. ## @file
  2. # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
  3. #
  4. # Copyright (c) 2006 - 2023, 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/OvmfX64
  22. SUPPORTED_ARCHITECTURES = X64
  23. BUILD_TARGETS = NOOPT|DEBUG|RELEASE
  24. SKUID_IDENTIFIER = DEFAULT
  25. FLASH_DEFINITION = OvmfPkg/OvmfPkgX64.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. DEFINE SMM_REQUIRE = FALSE
  32. DEFINE SOURCE_DEBUG_ENABLE = FALSE
  33. DEFINE CC_MEASUREMENT_ENABLE = FALSE
  34. !include OvmfPkg/Include/Dsc/OvmfTpmDefines.dsc.inc
  35. #
  36. # Shell can be useful for debugging but should not be enabled for production
  37. #
  38. DEFINE BUILD_SHELL = TRUE
  39. #
  40. # Network definition
  41. #
  42. DEFINE NETWORK_TLS_ENABLE = FALSE
  43. DEFINE NETWORK_IP6_ENABLE = FALSE
  44. DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
  45. DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
  46. DEFINE NETWORK_ISCSI_ENABLE = TRUE
  47. !include NetworkPkg/NetworkDefines.dsc.inc
  48. #
  49. # Device drivers
  50. #
  51. DEFINE PVSCSI_ENABLE = FALSE
  52. DEFINE MPT_SCSI_ENABLE = FALSE
  53. DEFINE LSI_SCSI_ENABLE = FALSE
  54. #
  55. # Flash size selection. Setting FD_SIZE_IN_KB on the command line directly to
  56. # one of the supported values, in place of any of the convenience macros, is
  57. # permitted.
  58. #
  59. !ifdef $(FD_SIZE_1MB)
  60. DEFINE FD_SIZE_IN_KB = 1024
  61. !else
  62. !ifdef $(FD_SIZE_2MB)
  63. DEFINE FD_SIZE_IN_KB = 2048
  64. !else
  65. !ifdef $(FD_SIZE_4MB)
  66. DEFINE FD_SIZE_IN_KB = 4096
  67. !else
  68. DEFINE FD_SIZE_IN_KB = 4096
  69. !endif
  70. !endif
  71. !endif
  72. #
  73. # Define the FILE_GUID of CpuMpPei/CpuDxe for unique-processor version.
  74. #
  75. DEFINE UP_CPU_PEI_GUID = 280251c4-1d09-4035-9062-839acb5f18c1
  76. DEFINE UP_CPU_DXE_GUID = 6490f1c5-ebcc-4665-8892-0075b9bb49b7
  77. [BuildOptions]
  78. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  79. INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
  80. MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
  81. !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB"
  82. GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
  83. !endif
  84. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  85. MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
  86. GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
  87. INTEL:*_*_X64_GENFW_FLAGS = --keepexceptiontable
  88. !endif
  89. RELEASE_*_*_GENFW_FLAGS = --zero
  90. #
  91. # Disable deprecated APIs.
  92. #
  93. MSFT:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
  94. INTEL:*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
  95. GCC:*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
  96. #
  97. # Add TDX_GUEST_SUPPORTED
  98. #
  99. MSFT:*_*_*_CC_FLAGS = /D TDX_GUEST_SUPPORTED
  100. INTEL:*_*_*_CC_FLAGS = /D TDX_GUEST_SUPPORTED
  101. GCC:*_*_*_CC_FLAGS = -D TDX_GUEST_SUPPORTED
  102. #
  103. # SECURE_BOOT_FEATURE_ENABLED
  104. #
  105. !if $(SECURE_BOOT_ENABLE) == TRUE
  106. MSFT:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
  107. INTEL:*_*_*_CC_FLAGS = /D SECURE_BOOT_FEATURE_ENABLED
  108. GCC:*_*_*_CC_FLAGS = -D SECURE_BOOT_FEATURE_ENABLED
  109. !endif
  110. !include NetworkPkg/NetworkBuildOptions.dsc.inc
  111. [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
  112. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
  113. XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
  114. XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
  115. CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
  116. # Force PE/COFF sections to be aligned at 4KB boundaries to support page level
  117. # protection of DXE_SMM_DRIVER/SMM_CORE modules
  118. [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
  119. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
  120. XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
  121. XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
  122. CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
  123. ################################################################################
  124. #
  125. # SKU Identification section - list of all SKU IDs supported by this Platform.
  126. #
  127. ################################################################################
  128. [SkuIds]
  129. 0|DEFAULT
  130. ################################################################################
  131. #
  132. # Library Class section - list of all Library Classes needed by this Platform.
  133. #
  134. ################################################################################
  135. !include MdePkg/MdeLibs.dsc.inc
  136. [LibraryClasses]
  137. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  138. TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.inf
  139. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/BaseResetSystemLib.inf
  140. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  141. BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
  142. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  143. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  144. TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
  145. BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
  146. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  147. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  148. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  149. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  150. CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
  151. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  152. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  153. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  154. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  155. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  156. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  157. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  158. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  159. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  160. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  161. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  162. PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
  163. PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  164. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  165. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  166. PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
  167. PciCapPciSegmentLib|OvmfPkg/Library/BasePciCapPciSegmentLib/BasePciCapPciSegmentLib.inf
  168. PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
  169. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsicSev.inf
  170. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  171. SerialPortLib|PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
  172. MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
  173. MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
  174. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  175. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  176. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  177. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  178. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  179. DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
  180. NvVarsFileLib|OvmfPkg/Library/NvVarsFileLib/NvVarsFileLib.inf
  181. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  182. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  183. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  184. SerializeVariablesLib|OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.inf
  185. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxeLib.inf
  186. QemuFwCfgSimpleParserLib|OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParserLib.inf
  187. VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
  188. LoadLinuxLib|OvmfPkg/Library/LoadLinuxLib/LoadLinuxLib.inf
  189. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLib.inf
  190. MemEncryptTdxLib|OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf
  191. PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf
  192. DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf
  193. !if $(SMM_REQUIRE) == FALSE
  194. LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf
  195. CcProbeLib|OvmfPkg/Library/CcProbeLib/DxeCcProbeLib.inf
  196. !else
  197. CcProbeLib|MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf
  198. !endif
  199. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  200. FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
  201. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  202. PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
  203. DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
  204. !else
  205. PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  206. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  207. !endif
  208. LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
  209. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  210. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  211. !if $(NETWORK_TLS_ENABLE) == TRUE
  212. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  213. !else
  214. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
  215. !endif
  216. RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
  217. !if $(SECURE_BOOT_ENABLE) == TRUE
  218. PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
  219. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  220. SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
  221. PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
  222. SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
  223. !else
  224. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  225. !endif
  226. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  227. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  228. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  229. VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
  230. #
  231. # Network libraries
  232. #
  233. !include NetworkPkg/NetworkLibs.dsc.inc
  234. !if $(NETWORK_TLS_ENABLE) == TRUE
  235. TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
  236. !endif
  237. !if $(BUILD_SHELL) == TRUE
  238. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  239. !endif
  240. ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
  241. S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
  242. SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
  243. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  244. !include OvmfPkg/Include/Dsc/OvmfTpmLibs.dsc.inc
  245. [LibraryClasses.common]
  246. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  247. CcExitLib|OvmfPkg/Library/CcExitLib/CcExitLib.inf
  248. TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
  249. TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf
  250. [LibraryClasses.common.SEC]
  251. TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
  252. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
  253. !ifdef $(DEBUG_ON_SERIAL_PORT)
  254. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  255. !else
  256. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  257. !endif
  258. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  259. ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  260. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  261. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  262. !endif
  263. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  264. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  265. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  266. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  267. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
  268. CcExitLib|OvmfPkg/Library/CcExitLib/SecCcExitLib.inf
  269. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
  270. CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
  271. [LibraryClasses.common.PEI_CORE]
  272. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  273. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  274. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  275. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  276. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  277. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  278. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  279. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  280. !ifdef $(DEBUG_ON_SERIAL_PORT)
  281. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  282. !else
  283. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  284. !endif
  285. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  286. CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
  287. [LibraryClasses.common.PEIM]
  288. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  289. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  290. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  291. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  292. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  293. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  294. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  295. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  296. !ifdef $(DEBUG_ON_SERIAL_PORT)
  297. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  298. !else
  299. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  300. !endif
  301. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  302. ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  303. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  304. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  305. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  306. !endif
  307. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
  308. MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
  309. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
  310. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  311. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPeiLib.inf
  312. PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
  313. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
  314. CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
  315. [LibraryClasses.common.DXE_CORE]
  316. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  317. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  318. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  319. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  320. !ifdef $(DEBUG_ON_SERIAL_PORT)
  321. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  322. !else
  323. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  324. !endif
  325. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  326. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  327. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  328. !endif
  329. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  330. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  331. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  332. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  333. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  334. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  335. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  336. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  337. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  338. ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
  339. !ifdef $(DEBUG_ON_SERIAL_PORT)
  340. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  341. !else
  342. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  343. !endif
  344. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  345. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  346. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  347. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
  348. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  349. !if $(SMM_REQUIRE) == TRUE
  350. MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
  351. !endif
  352. [LibraryClasses.common.UEFI_DRIVER]
  353. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  354. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  355. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  356. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  357. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  358. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  359. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  360. !ifdef $(DEBUG_ON_SERIAL_PORT)
  361. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  362. !else
  363. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  364. !endif
  365. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  366. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  367. [LibraryClasses.common.DXE_DRIVER]
  368. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  369. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  370. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  371. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  372. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  373. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  374. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  375. !ifdef $(DEBUG_ON_SERIAL_PORT)
  376. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  377. !else
  378. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  379. !endif
  380. PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  381. PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
  382. QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
  383. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  384. !if $(SMM_REQUIRE) == TRUE
  385. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
  386. !else
  387. LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
  388. !endif
  389. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  390. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  391. !endif
  392. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  393. CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
  394. MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
  395. NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf
  396. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
  397. QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
  398. [LibraryClasses.common.UEFI_APPLICATION]
  399. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  400. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  401. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  402. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  403. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  404. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  405. !ifdef $(DEBUG_ON_SERIAL_PORT)
  406. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  407. !else
  408. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  409. !endif
  410. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  411. [LibraryClasses.common.DXE_SMM_DRIVER]
  412. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  413. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  414. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  415. MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
  416. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  417. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  418. SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
  419. MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
  420. SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
  421. !ifdef $(DEBUG_ON_SERIAL_PORT)
  422. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  423. !else
  424. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  425. !endif
  426. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
  427. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  428. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
  429. !endif
  430. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
  431. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  432. SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
  433. [LibraryClasses.common.SMM_CORE]
  434. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  435. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  436. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  437. SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
  438. MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
  439. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  440. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  441. SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
  442. SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
  443. !ifdef $(DEBUG_ON_SERIAL_PORT)
  444. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  445. !else
  446. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  447. !endif
  448. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  449. ################################################################################
  450. #
  451. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  452. #
  453. ################################################################################
  454. [PcdsFeatureFlag]
  455. gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
  456. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  457. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
  458. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  459. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  460. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  461. !ifdef $(CSM_ENABLE)
  462. gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE
  463. !endif
  464. !if $(SMM_REQUIRE) == TRUE
  465. gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
  466. gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
  467. gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
  468. !endif
  469. !if $(SECURE_BOOT_ENABLE) == TRUE
  470. gEfiMdeModulePkgTokenSpaceGuid.PcdRequireSelfSignedPk|TRUE
  471. !endif
  472. [PcdsFixedAtBuild]
  473. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  474. !if $(SMM_REQUIRE) == FALSE
  475. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  476. !endif
  477. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  478. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
  479. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  480. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  481. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  482. !if $(NETWORK_TLS_ENABLE) == FALSE
  483. # match PcdFlashNvStorageVariableSize purely for convenience
  484. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  485. !endif
  486. !endif
  487. !if $(FD_SIZE_IN_KB) == 4096
  488. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
  489. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
  490. !if $(NETWORK_TLS_ENABLE) == FALSE
  491. # match PcdFlashNvStorageVariableSize purely for convenience
  492. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
  493. !endif
  494. !endif
  495. !if $(NETWORK_TLS_ENABLE) == TRUE
  496. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
  497. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
  498. !endif
  499. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  500. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
  501. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
  502. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  503. # DEBUG_INIT 0x00000001 // Initialization
  504. # DEBUG_WARN 0x00000002 // Warnings
  505. # DEBUG_LOAD 0x00000004 // Load events
  506. # DEBUG_FS 0x00000008 // EFI File system
  507. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  508. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  509. # DEBUG_INFO 0x00000040 // Informational debug messages
  510. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  511. # DEBUG_VARIABLE 0x00000100 // Variable
  512. # DEBUG_BM 0x00000400 // Boot Manager
  513. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  514. # DEBUG_NET 0x00004000 // SNP Driver
  515. # DEBUG_UNDI 0x00010000 // UNDI Driver
  516. # DEBUG_LOADFILE 0x00020000 // LoadFile
  517. # DEBUG_EVENT 0x00080000 // Event messages
  518. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  519. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  520. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  521. # // significantly impact boot performance
  522. # DEBUG_ERROR 0x80000000 // Error
  523. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  524. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  525. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  526. !else
  527. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  528. !endif
  529. # This PCD is used to set the base address of the PCI express hierarchy. It
  530. # is only consulted when OVMF runs on Q35. In that case it is programmed into
  531. # the PCIEXBAR register.
  532. #
  533. # On Q35 machine types that QEMU intends to support in the long term, QEMU
  534. # never lets the RAM below 4 GB exceed 2816 MB.
  535. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xE0000000
  536. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  537. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  538. !endif
  539. #
  540. # The NumberOfPages values below are ad-hoc. They are updated sporadically at
  541. # best (please refer to git-blame for past updates). The values capture a set
  542. # of BIN hints that made sense at a particular time, for some (now likely
  543. # unknown) workloads / boot paths.
  544. #
  545. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
  546. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x12
  547. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
  548. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
  549. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
  550. #
  551. # TDX need 1G PageTable support
  552. gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
  553. #
  554. # Network Pcds
  555. #
  556. !include NetworkPkg/NetworkPcds.dsc.inc
  557. gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
  558. !if $(SMM_REQUIRE) == TRUE
  559. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
  560. !endif
  561. # IRQs 5, 9, 10, 11 are level-triggered
  562. gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
  563. # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
  564. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  565. ################################################################################
  566. #
  567. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  568. #
  569. ################################################################################
  570. [PcdsDynamicDefault]
  571. # only set when
  572. # ($(SMM_REQUIRE) == FALSE)
  573. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  574. !if $(SMM_REQUIRE) == FALSE
  575. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  576. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
  577. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
  578. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  579. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  580. !endif
  581. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
  582. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
  583. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
  584. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
  585. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
  586. gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
  587. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
  588. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
  589. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
  590. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
  591. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
  592. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
  593. !ifdef $(CSM_ENABLE)
  594. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
  595. !else
  596. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
  597. !endif
  598. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  599. # Set video resolution for text setup.
  600. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  601. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  602. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  603. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  604. gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
  605. # Noexec settings for DXE.
  606. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
  607. # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
  608. gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
  609. gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
  610. # Set memory encryption mask
  611. gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
  612. # Set Tdx shared bit mask
  613. gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
  614. # Set SEV-ES defaults
  615. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
  616. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
  617. gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
  618. !if $(SMM_REQUIRE) == TRUE
  619. gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
  620. gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
  621. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
  622. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
  623. !endif
  624. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
  625. !include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
  626. # IPv4 and IPv6 PXE Boot support.
  627. gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
  628. gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
  629. # Set ConfidentialComputing defaults
  630. gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
  631. !if $(CSM_ENABLE) == FALSE
  632. gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
  633. !endif
  634. [PcdsDynamicHii]
  635. !include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
  636. ################################################################################
  637. #
  638. # Components Section - list of all EDK II Modules needed by this Platform.
  639. #
  640. ################################################################################
  641. [Components]
  642. OvmfPkg/ResetVector/ResetVector.inf
  643. #
  644. # SEC Phase modules
  645. #
  646. OvmfPkg/Sec/SecMain.inf {
  647. <LibraryClasses>
  648. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  649. NULL|OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelperLib.inf
  650. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SecCryptLib.inf
  651. }
  652. #
  653. # PEI Phase modules
  654. #
  655. MdeModulePkg/Core/Pei/PeiMain.inf
  656. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  657. <LibraryClasses>
  658. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  659. }
  660. MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
  661. <LibraryClasses>
  662. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  663. }
  664. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
  665. <LibraryClasses>
  666. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  667. }
  668. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
  669. OvmfPkg/PlatformPei/PlatformPei.inf {
  670. <LibraryClasses>
  671. NULL|OvmfPkg/IntelTdx/TdxHelperLib/PeiTdxHelperLib.inf
  672. }
  673. UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
  674. <LibraryClasses>
  675. !if $(SMM_REQUIRE) == TRUE
  676. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
  677. !endif
  678. }
  679. !if $(SMM_REQUIRE) == TRUE
  680. MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
  681. MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
  682. OvmfPkg/SmmAccess/SmmAccessPei.inf
  683. !endif
  684. UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
  685. <LibraryClasses>
  686. #
  687. # Directly use PeiMpInitLib. It depends on PeiMpInitLibMpDepLib which
  688. # checks the PPI of gEfiPeiMpInitLibMpDepPpiGuid.
  689. #
  690. MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
  691. NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibMpDepLib.inf
  692. }
  693. UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
  694. <Defines>
  695. FILE_GUID = $(UP_CPU_PEI_GUID)
  696. <LibraryClasses>
  697. #
  698. # Directly use MpInitLibUp. It depends on PeiMpInitLibUpDepLib which
  699. # checks the PPI of gEfiPeiMpInitLibUpDepPpiGuid.
  700. #
  701. MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
  702. NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibUpDepLib.inf
  703. }
  704. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
  705. #
  706. # DXE Phase modules
  707. #
  708. MdeModulePkg/Core/Dxe/DxeMain.inf {
  709. <LibraryClasses>
  710. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  711. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  712. }
  713. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  714. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  715. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  716. <LibraryClasses>
  717. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  718. }
  719. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  720. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  721. <LibraryClasses>
  722. !if $(SECURE_BOOT_ENABLE) == TRUE
  723. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  724. !endif
  725. !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
  726. }
  727. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  728. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  729. UefiCpuPkg/CpuDxe/CpuDxe.inf {
  730. <LibraryClasses>
  731. #
  732. # Directly use DxeMpInitLib. It depends on DxeMpInitLibMpDepLib which
  733. # checks the Protocol of gEfiMpInitLibMpDepProtocolGuid.
  734. #
  735. CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
  736. MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
  737. NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf
  738. }
  739. UefiCpuPkg/CpuDxe/CpuDxe.inf {
  740. <Defines>
  741. FILE_GUID = $(UP_CPU_DXE_GUID)
  742. <LibraryClasses>
  743. #
  744. # Directly use MpInitLibUp. It depends on DxeMpInitLibUpDepLib which
  745. # checks the Protocol of gEfiMpInitLibUpDepProtocolGuid.
  746. #
  747. MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
  748. NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf
  749. }
  750. !ifdef $(CSM_ENABLE)
  751. OvmfPkg/8259InterruptControllerDxe/8259.inf
  752. OvmfPkg/8254TimerDxe/8254Timer.inf
  753. !else
  754. OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
  755. !endif
  756. OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
  757. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  758. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  759. <LibraryClasses>
  760. PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  761. PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
  762. NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
  763. }
  764. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  765. <LibraryClasses>
  766. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  767. }
  768. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  769. MdeModulePkg/Universal/Metronome/Metronome.inf
  770. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
  771. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  772. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
  773. <LibraryClasses>
  774. XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
  775. !ifdef $(CSM_ENABLE)
  776. NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
  777. NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
  778. !endif
  779. }
  780. MdeModulePkg/Logo/LogoDxe.inf
  781. MdeModulePkg/Application/UiApp/UiApp.inf {
  782. <LibraryClasses>
  783. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  784. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  785. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  786. !ifdef $(CSM_ENABLE)
  787. NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
  788. NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
  789. !endif
  790. }
  791. OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
  792. <LibraryClasses>
  793. NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
  794. }
  795. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  796. OvmfPkg/Virtio10Dxe/Virtio10.inf
  797. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  798. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  799. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  800. !if $(PVSCSI_ENABLE) == TRUE
  801. OvmfPkg/PvScsiDxe/PvScsiDxe.inf
  802. !endif
  803. !if $(MPT_SCSI_ENABLE) == TRUE
  804. OvmfPkg/MptScsiDxe/MptScsiDxe.inf
  805. !endif
  806. !if $(LSI_SCSI_ENABLE) == TRUE
  807. OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
  808. !endif
  809. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  810. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  811. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  812. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  813. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  814. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  815. <LibraryClasses>
  816. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  817. }
  818. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  819. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  820. <LibraryClasses>
  821. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  822. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  823. }
  824. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  825. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  826. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  827. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  828. FatPkg/EnhancedFatDxe/Fat.inf
  829. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  830. OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
  831. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  832. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  833. OvmfPkg/SataControllerDxe/SataControllerDxe.inf
  834. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  835. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  836. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  837. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  838. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  839. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  840. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  841. !ifndef $(CSM_ENABLE)
  842. OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
  843. !endif
  844. OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
  845. OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
  846. #
  847. # ISA Support
  848. #
  849. OvmfPkg/SioBusDxe/SioBusDxe.inf
  850. MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
  851. MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
  852. #
  853. # SMBIOS Support
  854. #
  855. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
  856. <LibraryClasses>
  857. NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
  858. }
  859. OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  860. #
  861. # ACPI Support
  862. #
  863. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  864. OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
  865. MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
  866. MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
  867. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  868. #
  869. # Network Support
  870. #
  871. !include NetworkPkg/NetworkComponents.dsc.inc
  872. !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
  873. OvmfPkg/VirtioNetDxe/VirtioNet.inf
  874. #
  875. # Usb Support
  876. #
  877. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  878. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  879. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  880. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  881. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  882. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  883. !ifdef $(CSM_ENABLE)
  884. OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
  885. <LibraryClasses>
  886. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  887. }
  888. OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
  889. OvmfPkg/Csm/Csm16/Csm16.inf
  890. !endif
  891. !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
  892. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
  893. <PcdsFixedAtBuild>
  894. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  895. }
  896. ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
  897. <PcdsFixedAtBuild>
  898. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  899. }
  900. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  901. <PcdsFixedAtBuild>
  902. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  903. }
  904. !endif
  905. !if $(BUILD_SHELL) == TRUE
  906. ShellPkg/Application/Shell/Shell.inf {
  907. <LibraryClasses>
  908. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  909. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  910. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  911. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  912. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  913. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  914. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  915. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  916. !if $(NETWORK_IP6_ENABLE) == TRUE
  917. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  918. !endif
  919. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  920. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  921. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  922. <PcdsFixedAtBuild>
  923. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  924. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  925. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  926. }
  927. !endif
  928. !if $(SECURE_BOOT_ENABLE) == TRUE
  929. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  930. OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
  931. !endif
  932. OvmfPkg/PlatformDxe/Platform.inf
  933. OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
  934. <LibraryClasses>
  935. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  936. }
  937. OvmfPkg/IoMmuDxe/IoMmuDxe.inf
  938. OvmfPkg/TdxDxe/TdxDxe.inf
  939. !if $(SMM_REQUIRE) == TRUE
  940. OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
  941. OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
  942. OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
  943. #
  944. # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
  945. #
  946. MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
  947. #
  948. # SMM_CORE
  949. #
  950. MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
  951. #
  952. # Privileged drivers (DXE_SMM_DRIVER modules)
  953. #
  954. OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
  955. UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
  956. MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
  957. <LibraryClasses>
  958. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
  959. }
  960. UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
  961. <LibraryClasses>
  962. SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
  963. SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
  964. }
  965. #
  966. # Variable driver stack (SMM)
  967. #
  968. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
  969. <LibraryClasses>
  970. CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
  971. }
  972. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
  973. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
  974. <LibraryClasses>
  975. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  976. NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
  977. }
  978. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
  979. !else
  980. #
  981. # Variable driver stack (non-SMM)
  982. #
  983. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  984. OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
  985. <LibraryClasses>
  986. PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
  987. }
  988. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  989. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  990. <LibraryClasses>
  991. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  992. }
  993. !endif
  994. #
  995. # Cc Measurement Protocol for Td guest
  996. #
  997. !if $(CC_MEASUREMENT_ENABLE) == TRUE
  998. SecurityPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.inf {
  999. <LibraryClasses>
  1000. HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
  1001. NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
  1002. }
  1003. !endif
  1004. #
  1005. # TPM support
  1006. #
  1007. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc