CloudHvX64.dsc 42 KB

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