OvmfPkgX64.dsc 48 KB

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