OvmfPkgX64.dsc 47 KB

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