CloudHvX64.dsc 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950
  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/Include/Dsc/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/Include/Dsc/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. TdxMailboxLib|OvmfPkg/Library/TdxMailboxLib/TdxMailboxLibNull.inf
  230. [LibraryClasses.common.SEC]
  231. TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
  232. !ifdef $(DEBUG_ON_SERIAL_PORT)
  233. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  234. !else
  235. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformRomDebugLibIoPort.inf
  236. !endif
  237. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  238. ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  239. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  240. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  241. !endif
  242. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  243. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  244. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  245. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  246. !if $(TOOL_CHAIN_TAG) == "XCODE5"
  247. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf
  248. !else
  249. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf
  250. !endif
  251. CcExitLib|OvmfPkg/Library/CcExitLib/SecCcExitLib.inf
  252. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
  253. [LibraryClasses.common.PEI_CORE]
  254. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  255. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  256. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  257. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  258. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  259. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  260. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  261. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  262. !ifdef $(DEBUG_ON_SERIAL_PORT)
  263. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  264. !else
  265. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  266. !endif
  267. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  268. [LibraryClasses.common.PEIM]
  269. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  270. PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
  271. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  272. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  273. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  274. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  275. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  276. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  277. !ifdef $(DEBUG_ON_SERIAL_PORT)
  278. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  279. !else
  280. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  281. !endif
  282. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  283. ResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  284. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  285. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  286. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  287. !endif
  288. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/PeiCpuExceptionHandlerLib.inf
  289. MpInitLib|UefiCpuPkg/Library/MpInitLib/PeiMpInitLib.inf
  290. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/PeiQemuFwCfgS3LibFwCfg.inf
  291. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  292. QemuFwCfgLib|OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLibNull.inf
  293. MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
  294. PlatformInitLib|OvmfPkg/Library/PlatformInitLib/PlatformInitLib.inf
  295. [LibraryClasses.common.DXE_CORE]
  296. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  297. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  298. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  299. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  300. !ifdef $(DEBUG_ON_SERIAL_PORT)
  301. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  302. !else
  303. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  304. !endif
  305. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  306. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  307. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  308. !endif
  309. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  310. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  311. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  312. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  313. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  314. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  315. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  316. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  317. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  318. ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
  319. !ifdef $(DEBUG_ON_SERIAL_PORT)
  320. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  321. !else
  322. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  323. !endif
  324. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  325. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  326. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  327. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  328. !if $(SMM_REQUIRE) == TRUE
  329. MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
  330. !endif
  331. [LibraryClasses.common.UEFI_DRIVER]
  332. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  333. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  334. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  335. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  336. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  337. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  338. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  339. !ifdef $(DEBUG_ON_SERIAL_PORT)
  340. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  341. !else
  342. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  343. !endif
  344. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  345. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  346. [LibraryClasses.common.DXE_DRIVER]
  347. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  348. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  349. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  350. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  351. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  352. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  353. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  354. !ifdef $(DEBUG_ON_SERIAL_PORT)
  355. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  356. !else
  357. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  358. !endif
  359. PlatformBootManagerLib|OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  360. PlatformBmPrintScLib|OvmfPkg/Library/PlatformBmPrintScLib/PlatformBmPrintScLib.inf
  361. QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
  362. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
  363. !if $(SMM_REQUIRE) == TRUE
  364. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxDxeLib.inf
  365. !else
  366. LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxDxeLib.inf
  367. !endif
  368. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  369. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  370. !endif
  371. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  372. MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
  373. NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf
  374. QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
  375. QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
  376. [LibraryClasses.common.UEFI_APPLICATION]
  377. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  378. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  379. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  380. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  381. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  382. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  383. !ifdef $(DEBUG_ON_SERIAL_PORT)
  384. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  385. !else
  386. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  387. !endif
  388. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  389. [LibraryClasses.common.DXE_SMM_DRIVER]
  390. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  391. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  392. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  393. MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
  394. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  395. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  396. SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
  397. MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
  398. SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
  399. !ifdef $(DEBUG_ON_SERIAL_PORT)
  400. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  401. !else
  402. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  403. !endif
  404. CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
  405. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  406. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgentLib.inf
  407. !endif
  408. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
  409. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  410. SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
  411. [LibraryClasses.common.SMM_CORE]
  412. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  413. TimerLib|OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf
  414. ResetSystemLib|OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
  415. SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
  416. MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
  417. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  418. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  419. SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
  420. SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
  421. !ifdef $(DEBUG_ON_SERIAL_PORT)
  422. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  423. !else
  424. DebugLib|OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf
  425. !endif
  426. PciLib|OvmfPkg/Library/DxePciLibI440FxQ35/DxePciLibI440FxQ35.inf
  427. ################################################################################
  428. #
  429. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  430. #
  431. ################################################################################
  432. [PcdsFeatureFlag]
  433. gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
  434. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  435. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|FALSE
  436. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  437. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  438. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  439. !if $(SMM_REQUIRE) == TRUE
  440. gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|TRUE
  441. gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport|TRUE
  442. gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
  443. !endif
  444. [PcdsFixedAtBuild]
  445. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  446. !if $(SMM_REQUIRE) == FALSE
  447. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  448. !endif
  449. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  450. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|0
  451. !if ($(FD_SIZE_IN_KB) == 1024) || ($(FD_SIZE_IN_KB) == 2048)
  452. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  453. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  454. !if $(NETWORK_TLS_ENABLE) == FALSE
  455. # match PcdFlashNvStorageVariableSize purely for convenience
  456. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  457. !endif
  458. !endif
  459. !if $(FD_SIZE_IN_KB) == 4096
  460. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8400
  461. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8400
  462. !if $(NETWORK_TLS_ENABLE) == FALSE
  463. # match PcdFlashNvStorageVariableSize purely for convenience
  464. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x40000
  465. !endif
  466. !endif
  467. !if $(NETWORK_TLS_ENABLE) == TRUE
  468. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x80000
  469. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVolatileVariableSize|0x40000
  470. !endif
  471. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  472. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
  473. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|TRUE
  474. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  475. # DEBUG_INIT 0x00000001 // Initialization
  476. # DEBUG_WARN 0x00000002 // Warnings
  477. # DEBUG_LOAD 0x00000004 // Load events
  478. # DEBUG_FS 0x00000008 // EFI File system
  479. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  480. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  481. # DEBUG_INFO 0x00000040 // Informational debug messages
  482. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  483. # DEBUG_VARIABLE 0x00000100 // Variable
  484. # DEBUG_BM 0x00000400 // Boot Manager
  485. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  486. # DEBUG_NET 0x00004000 // SNP Driver
  487. # DEBUG_UNDI 0x00010000 // UNDI Driver
  488. # DEBUG_LOADFILE 0x00020000 // LoadFile
  489. # DEBUG_EVENT 0x00080000 // Event messages
  490. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  491. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  492. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  493. # // significantly impact boot performance
  494. # DEBUG_ERROR 0x80000000 // Error
  495. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  496. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  497. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  498. !else
  499. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  500. !endif
  501. !if $(SOURCE_DEBUG_ENABLE) == TRUE
  502. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  503. !endif
  504. #
  505. # The NumberOfPages values below are ad-hoc. They are updated sporadically at
  506. # best (please refer to git-blame for past updates). The values capture a set
  507. # of BIN hints that made sense at a particular time, for some (now likely
  508. # unknown) workloads / boot paths.
  509. #
  510. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0x80
  511. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0x10
  512. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0x80
  513. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|0x100
  514. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|0x100
  515. #
  516. # Network Pcds
  517. #
  518. !include NetworkPkg/NetworkPcds.dsc.inc
  519. gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
  520. !if $(SMM_REQUIRE) == TRUE
  521. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
  522. !endif
  523. # Point to the MdeModulePkg/Application/UiApp/UiApp.inf
  524. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  525. ################################################################################
  526. #
  527. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  528. #
  529. ################################################################################
  530. [PcdsDynamicDefault]
  531. # only set when
  532. # ($(SMM_REQUIRE) == FALSE)
  533. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  534. !if $(SMM_REQUIRE) == FALSE
  535. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  536. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
  537. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
  538. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  539. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  540. !endif
  541. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
  542. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
  543. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
  544. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0
  545. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0
  546. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0
  547. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0
  548. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x800000000
  549. gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
  550. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  551. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  552. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  553. gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE
  554. # Noexec settings for DXE.
  555. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|FALSE
  556. # UefiCpuPkg PCDs related to initial AP bringup and general AP management.
  557. gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|64
  558. gUefiCpuPkgTokenSpaceGuid.PcdCpuBootLogicalProcessorNumber|0
  559. # Set memory encryption mask
  560. gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask|0x0
  561. # Set Tdx shared bit mask
  562. gEfiMdeModulePkgTokenSpaceGuid.PcdTdxSharedBitMask|0x0
  563. # Set SEV-ES defaults
  564. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
  565. gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbSize|0
  566. gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
  567. !if $(SMM_REQUIRE) == TRUE
  568. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
  569. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
  570. !endif
  571. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x00
  572. !include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
  573. # IPv4 and IPv6 PXE Boot support.
  574. gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
  575. gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
  576. # Set ConfidentialComputing defaults
  577. gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0
  578. [PcdsDynamicHii]
  579. !include OvmfPkg/Include/Dsc/OvmfTpmPcdsHii.dsc.inc
  580. ################################################################################
  581. #
  582. # Components Section - list of all EDK II Modules needed by this Platform.
  583. #
  584. ################################################################################
  585. [Components]
  586. OvmfPkg/XenResetVector/XenResetVector.inf
  587. #
  588. # SEC Phase modules
  589. #
  590. OvmfPkg/Sec/SecMain.inf {
  591. <LibraryClasses>
  592. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  593. }
  594. #
  595. # PEI Phase modules
  596. #
  597. MdeModulePkg/Core/Pei/PeiMain.inf
  598. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  599. <LibraryClasses>
  600. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  601. }
  602. MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf {
  603. <LibraryClasses>
  604. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  605. }
  606. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf {
  607. <LibraryClasses>
  608. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  609. }
  610. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
  611. OvmfPkg/PlatformPei/PlatformPei.inf
  612. UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
  613. <LibraryClasses>
  614. !if $(SMM_REQUIRE) == TRUE
  615. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
  616. !endif
  617. }
  618. !if $(SMM_REQUIRE) == TRUE
  619. MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
  620. MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
  621. OvmfPkg/SmmAccess/SmmAccessPei.inf
  622. !endif
  623. UefiCpuPkg/CpuMpPei/CpuMpPei.inf
  624. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
  625. #
  626. # DXE Phase modules
  627. #
  628. MdeModulePkg/Core/Dxe/DxeMain.inf {
  629. <LibraryClasses>
  630. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  631. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  632. }
  633. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  634. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  635. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  636. <LibraryClasses>
  637. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  638. }
  639. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  640. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  641. <LibraryClasses>
  642. !if $(SECURE_BOOT_ENABLE) == TRUE
  643. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  644. !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
  645. !endif
  646. }
  647. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  648. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  649. UefiCpuPkg/CpuDxe/CpuDxe.inf
  650. OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
  651. OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
  652. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  653. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  654. <LibraryClasses>
  655. PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  656. PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
  657. NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
  658. }
  659. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  660. <LibraryClasses>
  661. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  662. }
  663. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  664. MdeModulePkg/Universal/Metronome/Metronome.inf
  665. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
  666. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  667. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
  668. <LibraryClasses>
  669. XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
  670. }
  671. MdeModulePkg/Logo/LogoDxe.inf
  672. MdeModulePkg/Application/UiApp/UiApp.inf {
  673. <LibraryClasses>
  674. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  675. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  676. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  677. }
  678. OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
  679. <LibraryClasses>
  680. NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
  681. }
  682. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  683. OvmfPkg/Virtio10Dxe/Virtio10.inf
  684. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  685. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  686. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  687. !if $(PVSCSI_ENABLE) == TRUE
  688. OvmfPkg/PvScsiDxe/PvScsiDxe.inf
  689. !endif
  690. !if $(MPT_SCSI_ENABLE) == TRUE
  691. OvmfPkg/MptScsiDxe/MptScsiDxe.inf
  692. !endif
  693. !if $(LSI_SCSI_ENABLE) == TRUE
  694. OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
  695. !endif
  696. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  697. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  698. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  699. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  700. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  701. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  702. <LibraryClasses>
  703. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  704. }
  705. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  706. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  707. <LibraryClasses>
  708. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  709. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  710. }
  711. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  712. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  713. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  714. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  715. FatPkg/EnhancedFatDxe/Fat.inf
  716. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  717. OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
  718. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  719. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  720. OvmfPkg/SataControllerDxe/SataControllerDxe.inf
  721. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  722. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  723. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  724. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  725. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  726. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  727. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  728. #
  729. # Serial Support
  730. #
  731. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  732. #
  733. # SMBIOS Support
  734. #
  735. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
  736. <LibraryClasses>
  737. NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
  738. }
  739. OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  740. #
  741. # ACPI Support
  742. #
  743. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  744. OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
  745. MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
  746. MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
  747. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  748. #
  749. # Network Support
  750. #
  751. !include NetworkPkg/NetworkComponents.dsc.inc
  752. !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
  753. OvmfPkg/VirtioNetDxe/VirtioNet.inf
  754. !if $(TOOL_CHAIN_TAG) != "XCODE5"
  755. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
  756. <PcdsFixedAtBuild>
  757. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  758. }
  759. ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
  760. <PcdsFixedAtBuild>
  761. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  762. }
  763. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  764. <PcdsFixedAtBuild>
  765. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  766. }
  767. !endif
  768. ShellPkg/Application/Shell/Shell.inf {
  769. <LibraryClasses>
  770. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  771. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  772. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  773. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  774. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  775. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  776. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  777. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  778. !if $(NETWORK_IP6_ENABLE) == TRUE
  779. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  780. !endif
  781. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  782. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  783. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  784. <PcdsFixedAtBuild>
  785. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  786. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  787. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  788. }
  789. !if $(SECURE_BOOT_ENABLE) == TRUE
  790. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  791. OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
  792. !endif
  793. OvmfPkg/PlatformDxe/Platform.inf
  794. OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
  795. <LibraryClasses>
  796. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  797. }
  798. OvmfPkg/IoMmuDxe/IoMmuDxe.inf
  799. !if $(SMM_REQUIRE) == TRUE
  800. OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
  801. OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
  802. OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
  803. #
  804. # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
  805. #
  806. MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
  807. #
  808. # SMM_CORE
  809. #
  810. MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
  811. #
  812. # Privileged drivers (DXE_SMM_DRIVER modules)
  813. #
  814. OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
  815. UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
  816. MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
  817. <LibraryClasses>
  818. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
  819. }
  820. UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
  821. <LibraryClasses>
  822. SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
  823. SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
  824. }
  825. #
  826. # Variable driver stack (SMM)
  827. #
  828. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
  829. <LibraryClasses>
  830. CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
  831. }
  832. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
  833. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
  834. <LibraryClasses>
  835. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  836. NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
  837. }
  838. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
  839. !else
  840. #
  841. # Variable driver stack (non-SMM)
  842. #
  843. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  844. OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
  845. <LibraryClasses>
  846. PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
  847. }
  848. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  849. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  850. <LibraryClasses>
  851. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  852. }
  853. !endif
  854. #
  855. # TPM support
  856. #
  857. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc