CloudHvX64.dsc 42 KB

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