OvmfPkgX64.dsc 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108
  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/Include/Dsc/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/Include/Dsc/OvmfTpmLibs.dsc.inc
  245. [LibraryClasses.common]
  246. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  247. CcExitLib|OvmfPkg/Library/CcExitLib/CcExitLib.inf
  248. TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
  249. TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLib.inf
  250. [LibraryClasses.common.SEC]
  251. TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
  252. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf
  253. !ifdef $(DEBUG_ON_SERIAL_PORT)
  254. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  255. !else
  256. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  257. !endif
  258. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  259. ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  260. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  261. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  262. !endif
  263. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  264. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  265. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  266. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  267. !if $(TOOL_CHAIN_TAG) == "XCODE5"
  268. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
  269. !else
  270. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
  271. !endif
  272. CcExitLib|OvmfPkg/Library/CcExitLib/SecCcExitLib.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/PlatformRomDebugLibIoPort.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/PlatformRomDebugLibIoPort.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. CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.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. [PcdsFixedAtBuild]
  474. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  475. !if $(SMM_REQUIRE) == FALSE
  476. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  477. !endif
  478. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  479. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
  480. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  481. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  482. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  483. !if $(NETWORK_TLS_ENABLE) == FALSE
  484. # match PcdFlashNvStorageVariableSize purely for convenience
  485. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  486. !endif
  487. !endif
  488. !if $(FD_SIZE_IN_KB) == 4096
  489. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
  490. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
  491. !if $(NETWORK_TLS_ENABLE) == FALSE
  492. # match PcdFlashNvStorageVariableSize purely for convenience
  493. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
  494. !endif
  495. !endif
  496. !if $(NETWORK_TLS_ENABLE) == TRUE
  497. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
  498. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
  499. !endif
  500. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  501. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
  502. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
  503. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  504. # DEBUG_INIT 0x00000001 // Initialization
  505. # DEBUG_WARN 0x00000002 // Warnings
  506. # DEBUG_LOAD 0x00000004 // Load events
  507. # DEBUG_FS 0x00000008 // EFI File system
  508. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  509. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  510. # DEBUG_INFO 0x00000040 // Informational debug messages
  511. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  512. # DEBUG_VARIABLE 0x00000100 // Variable
  513. # DEBUG_BM 0x00000400 // Boot Manager
  514. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  515. # DEBUG_NET 0x00004000 // SNP Driver
  516. # DEBUG_UNDI 0x00010000 // UNDI Driver
  517. # DEBUG_LOADFILE 0x00020000 // LoadFile
  518. # DEBUG_EVENT 0x00080000 // Event messages
  519. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  520. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  521. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  522. # // significantly impact boot performance
  523. # DEBUG_ERROR 0x80000000 // Error
  524. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  525. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  526. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  527. !else
  528. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  529. !endif
  530. # This PCD is used to set the base address of the PCI express hierarchy. It
  531. # is only consulted when OVMF runs on Q35. In that case it is programmed into
  532. # the PCIEXBAR register.
  533. #
  534. # On Q35 machine types that QEMU intends to support in the long term, QEMU
  535. # never lets the RAM below 4 GB exceed 2816 MB.
  536. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xB0000000
  537. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  538. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  539. !endif
  540. #
  541. # The NumberOfPages values below are ad-hoc. They are updated sporadically at
  542. # best (please refer to git-blame for past updates). The values capture a set
  543. # of BIN hints that made sense at a particular time, for some (now likely
  544. # unknown) workloads / boot paths.
  545. #
  546. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
  547. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x12
  548. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
  549. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
  550. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
  551. #
  552. # TDX need 1G PageTable support
  553. gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
  554. #
  555. # Network Pcds
  556. #
  557. !include NetworkPkg/NetworkPcds.dsc.inc
  558. gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
  559. !if $(SMM_REQUIRE) == TRUE
  560. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
  561. !endif
  562. # IRQs 5, 9, 10, 11 are level-triggered
  563. gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20
  564. # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
  565. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  566. ################################################################################
  567. #
  568. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  569. #
  570. ################################################################################
  571. [PcdsDynamicDefault]
  572. # only set when
  573. # ($(SMM_REQUIRE) == FALSE)
  574. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  575. !if $(SMM_REQUIRE) == FALSE
  576. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  577. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
  578. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
  579. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  580. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  581. !endif
  582. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
  583. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
  584. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
  585. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
  586. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
  587. gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
  588. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
  589. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
  590. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
  591. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
  592. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
  593. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
  594. !ifdef $(CSM_ENABLE)
  595. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0
  596. !else
  597. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
  598. !endif
  599. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  600. # Set video resolution for text setup.
  601. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  602. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  603. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  604. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  605. gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
  606. # Noexec settings for DXE.
  607. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
  608. # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
  609. gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
  610. gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
  611. # Set memory encryption mask
  612. gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
  613. # Set Tdx shared bit mask
  614. gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
  615. # Set SEV-ES defaults
  616. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
  617. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
  618. gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
  619. !if $(SMM_REQUIRE) == TRUE
  620. gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8
  621. gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE
  622. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
  623. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
  624. !endif
  625. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
  626. !include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
  627. # IPv4 and IPv6 PXE Boot support.
  628. gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
  629. gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
  630. # Set ConfidentialComputing defaults
  631. gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
  632. !if $(CSM_ENABLE) == FALSE
  633. gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
  634. !endif
  635. [PcdsDynamicHii]
  636. !include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
  637. ################################################################################
  638. #
  639. # Components Section - list of all EDK II Modules needed by this Platform.
  640. #
  641. ################################################################################
  642. [Components]
  643. OvmfPkg/ResetVector/ResetVector.inf
  644. #
  645. # SEC Phase modules
  646. #
  647. OvmfPkg/Sec/SecMain.inf {
  648. <LibraryClasses>
  649. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  650. NULL|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
  651. }
  652. #
  653. # PEI Phase modules
  654. #
  655. MdeModulePkg/Core/Pei/PeiMain.inf
  656. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  657. <LibraryClasses>
  658. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  659. }
  660. MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
  661. <LibraryClasses>
  662. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  663. }
  664. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
  665. <LibraryClasses>
  666. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  667. }
  668. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
  669. OvmfPkg/PlatformPei/PlatformPei.inf
  670. UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
  671. <LibraryClasses>
  672. !if $(SMM_REQUIRE) == TRUE
  673. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
  674. !endif
  675. }
  676. !if $(SMM_REQUIRE) == TRUE
  677. MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
  678. MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
  679. OvmfPkg/SmmAccess/SmmAccessPei.inf
  680. !endif
  681. UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
  682. <LibraryClasses>
  683. #
  684. # Directly use PeiMpInitLib. It depends on PeiMpInitLibMpDepLib which
  685. # checks the PPI of gEfiPeiMpInitLibMpDepPpiGuid.
  686. #
  687. MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
  688. NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibMpDepLib.inf
  689. }
  690. UefiCpuPkg/CpuMpPei/CpuMpPei.inf {
  691. <Defines>
  692. FILE_GUID = $(UP_CPU_PEI_GUID)
  693. <LibraryClasses>
  694. #
  695. # Directly use MpInitLibUp. It depends on PeiMpInitLibUpDepLib which
  696. # checks the PPI of gEfiPeiMpInitLibUpDepPpiGuid.
  697. #
  698. MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
  699. NULL|OvmfPkg/Library/MpInitLibDepLib/PeiMpInitLibUpDepLib.inf
  700. }
  701. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
  702. #
  703. # DXE Phase modules
  704. #
  705. MdeModulePkg/Core/Dxe/DxeMain.inf {
  706. <LibraryClasses>
  707. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  708. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  709. }
  710. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  711. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  712. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  713. <LibraryClasses>
  714. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  715. }
  716. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  717. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  718. <LibraryClasses>
  719. !if $(SECURE_BOOT_ENABLE) == TRUE
  720. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  721. !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
  722. !endif
  723. }
  724. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  725. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  726. UefiCpuPkg/CpuDxe/CpuDxe.inf {
  727. <LibraryClasses>
  728. CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
  729. #
  730. # Directly use DxeMpInitLib. It depends on DxeMpInitLibMpDepLib which
  731. # checks the Protocol of gEfiMpInitLibMpDepProtocolGuid.
  732. #
  733. MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
  734. NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibMpDepLib.inf
  735. }
  736. UefiCpuPkg/CpuDxe/CpuDxe.inf {
  737. <Defines>
  738. FILE_GUID = $(UP_CPU_DXE_GUID)
  739. <LibraryClasses>
  740. #
  741. # Directly use MpInitLibUp. It depends on DxeMpInitLibUpDepLib which
  742. # checks the Protocol of gEfiMpInitLibUpDepProtocolGuid.
  743. #
  744. MpInitLib|UefiCpuPkg/Library/MpInitLibUp/MpInitLibUp.inf
  745. NULL|OvmfPkg/Library/MpInitLibDepLib/DxeMpInitLibUpDepLib.inf
  746. }
  747. !ifdef $(CSM_ENABLE)
  748. OvmfPkg/8259InterruptControllerDxe/8259.inf
  749. OvmfPkg/8254TimerDxe/8254Timer.inf
  750. !else
  751. OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
  752. !endif
  753. OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
  754. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  755. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  756. <LibraryClasses>
  757. PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  758. PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
  759. NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
  760. }
  761. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  762. <LibraryClasses>
  763. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  764. }
  765. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  766. MdeModulePkg/Universal/Metronome/Metronome.inf
  767. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
  768. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  769. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
  770. <LibraryClasses>
  771. XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
  772. !ifdef $(CSM_ENABLE)
  773. NULL|OvmfPkg/Csm/CsmSupportLib/CsmSupportLib.inf
  774. NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
  775. !endif
  776. }
  777. MdeModulePkg/Logo/LogoDxe.inf
  778. MdeModulePkg/Application/UiApp/UiApp.inf {
  779. <LibraryClasses>
  780. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  781. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  782. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  783. !ifdef $(CSM_ENABLE)
  784. NULL|OvmfPkg/Csm/LegacyBootManagerLib/LegacyBootManagerLib.inf
  785. NULL|OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUiLib.inf
  786. !endif
  787. }
  788. OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
  789. <LibraryClasses>
  790. NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
  791. }
  792. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  793. OvmfPkg/Virtio10Dxe/Virtio10.inf
  794. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  795. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  796. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  797. !if $(PVSCSI_ENABLE) == TRUE
  798. OvmfPkg/PvScsiDxe/PvScsiDxe.inf
  799. !endif
  800. !if $(MPT_SCSI_ENABLE) == TRUE
  801. OvmfPkg/MptScsiDxe/MptScsiDxe.inf
  802. !endif
  803. !if $(LSI_SCSI_ENABLE) == TRUE
  804. OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
  805. !endif
  806. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  807. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  808. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  809. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  810. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  811. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  812. <LibraryClasses>
  813. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  814. }
  815. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  816. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  817. <LibraryClasses>
  818. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  819. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  820. }
  821. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  822. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  823. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  824. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  825. FatPkg/EnhancedFatDxe/Fat.inf
  826. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  827. OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
  828. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  829. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  830. OvmfPkg/SataControllerDxe/SataControllerDxe.inf
  831. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  832. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  833. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  834. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  835. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  836. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  837. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  838. !ifndef $(CSM_ENABLE)
  839. OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
  840. !endif
  841. OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf
  842. OvmfPkg/VirtioGpuDxe/VirtioGpu.inf
  843. #
  844. # ISA Support
  845. #
  846. OvmfPkg/SioBusDxe/SioBusDxe.inf
  847. MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
  848. MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
  849. #
  850. # SMBIOS Support
  851. #
  852. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
  853. <LibraryClasses>
  854. NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
  855. }
  856. OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  857. #
  858. # ACPI Support
  859. #
  860. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  861. OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
  862. MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
  863. MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
  864. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  865. #
  866. # Network Support
  867. #
  868. !include NetworkPkg/NetworkComponents.dsc.inc
  869. !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
  870. OvmfPkg/VirtioNetDxe/VirtioNet.inf
  871. #
  872. # Usb Support
  873. #
  874. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  875. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  876. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  877. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  878. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  879. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  880. !ifdef $(CSM_ENABLE)
  881. OvmfPkg/Csm/BiosThunk/VideoDxe/VideoDxe.inf {
  882. <LibraryClasses>
  883. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  884. }
  885. OvmfPkg/Csm/LegacyBiosDxe/LegacyBiosDxe.inf
  886. OvmfPkg/Csm/Csm16/Csm16.inf
  887. !endif
  888. !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
  889. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
  890. <PcdsFixedAtBuild>
  891. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  892. }
  893. ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
  894. <PcdsFixedAtBuild>
  895. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  896. }
  897. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  898. <PcdsFixedAtBuild>
  899. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  900. }
  901. !endif
  902. !if $(BUILD_SHELL) == TRUE
  903. ShellPkg/Application/Shell/Shell.inf {
  904. <LibraryClasses>
  905. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  906. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  907. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  908. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  909. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  910. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  911. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  912. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  913. !if $(NETWORK_IP6_ENABLE) == TRUE
  914. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  915. !endif
  916. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  917. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  918. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  919. <PcdsFixedAtBuild>
  920. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  921. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  922. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  923. }
  924. !endif
  925. !if $(SECURE_BOOT_ENABLE) == TRUE
  926. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  927. OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
  928. !endif
  929. OvmfPkg/PlatformDxe/Platform.inf
  930. OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
  931. <LibraryClasses>
  932. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  933. }
  934. OvmfPkg/IoMmuDxe/IoMmuDxe.inf
  935. OvmfPkg/TdxDxe/TdxDxe.inf
  936. !if $(SMM_REQUIRE) == TRUE
  937. OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
  938. OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
  939. OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
  940. #
  941. # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
  942. #
  943. MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
  944. #
  945. # SMM_CORE
  946. #
  947. MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
  948. #
  949. # Privileged drivers (DXE_SMM_DRIVER modules)
  950. #
  951. OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
  952. UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
  953. MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
  954. <LibraryClasses>
  955. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
  956. }
  957. UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
  958. <LibraryClasses>
  959. SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
  960. SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
  961. }
  962. #
  963. # Variable driver stack (SMM)
  964. #
  965. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
  966. <LibraryClasses>
  967. CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
  968. }
  969. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
  970. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
  971. <LibraryClasses>
  972. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  973. NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
  974. }
  975. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
  976. !else
  977. #
  978. # Variable driver stack (non-SMM)
  979. #
  980. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  981. OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
  982. <LibraryClasses>
  983. PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
  984. }
  985. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  986. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  987. <LibraryClasses>
  988. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  989. }
  990. !endif
  991. #
  992. # TPM support
  993. #
  994. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc