CloudHvX64.dsc 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953
  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. <LibraryClasses>
  613. NULL|OvmfPkg/IntelTdx/TdxHelperLib/TdxHelperLibNull.inf
  614. }
  615. UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
  616. <LibraryClasses>
  617. !if $(SMM_REQUIRE) == TRUE
  618. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
  619. !endif
  620. }
  621. !if $(SMM_REQUIRE) == TRUE
  622. MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
  623. MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
  624. OvmfPkg/SmmAccess/SmmAccessPei.inf
  625. !endif
  626. UefiCpuPkg/CpuMpPei/CpuMpPei.inf
  627. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
  628. #
  629. # DXE Phase modules
  630. #
  631. MdeModulePkg/Core/Dxe/DxeMain.inf {
  632. <LibraryClasses>
  633. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  634. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  635. }
  636. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  637. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  638. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  639. <LibraryClasses>
  640. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  641. }
  642. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  643. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  644. <LibraryClasses>
  645. !if $(SECURE_BOOT_ENABLE) == TRUE
  646. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  647. !endif
  648. !include OvmfPkg/Include/Dsc/OvmfTpmSecurityStub.dsc.inc
  649. }
  650. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  651. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  652. UefiCpuPkg/CpuDxe/CpuDxe.inf
  653. OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
  654. OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.inf
  655. OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
  656. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  657. <LibraryClasses>
  658. PciHostBridgeLib|OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  659. PciHostBridgeUtilityLib|OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf
  660. NULL|OvmfPkg/Library/PlatformHasIoMmuLib/PlatformHasIoMmuLib.inf
  661. }
  662. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  663. <LibraryClasses>
  664. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  665. }
  666. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  667. MdeModulePkg/Universal/Metronome/Metronome.inf
  668. PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
  669. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  670. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf {
  671. <LibraryClasses>
  672. XenPlatformLib|OvmfPkg/Library/XenPlatformLib/XenPlatformLib.inf
  673. }
  674. MdeModulePkg/Logo/LogoDxe.inf
  675. MdeModulePkg/Application/UiApp/UiApp.inf {
  676. <LibraryClasses>
  677. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  678. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  679. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  680. }
  681. OvmfPkg/QemuKernelLoaderFsDxe/QemuKernelLoaderFsDxe.inf {
  682. <LibraryClasses>
  683. NULL|OvmfPkg/Library/BlobVerifierLibNull/BlobVerifierLibNull.inf
  684. }
  685. OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
  686. OvmfPkg/Virtio10Dxe/Virtio10.inf
  687. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  688. OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
  689. OvmfPkg/VirtioRngDxe/VirtioRng.inf
  690. !if $(PVSCSI_ENABLE) == TRUE
  691. OvmfPkg/PvScsiDxe/PvScsiDxe.inf
  692. !endif
  693. !if $(MPT_SCSI_ENABLE) == TRUE
  694. OvmfPkg/MptScsiDxe/MptScsiDxe.inf
  695. !endif
  696. !if $(LSI_SCSI_ENABLE) == TRUE
  697. OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
  698. !endif
  699. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  700. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  701. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  702. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  703. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  704. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  705. <LibraryClasses>
  706. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  707. }
  708. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  709. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  710. <LibraryClasses>
  711. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  712. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  713. }
  714. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  715. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  716. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  717. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  718. FatPkg/EnhancedFatDxe/Fat.inf
  719. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  720. OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
  721. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  722. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  723. OvmfPkg/SataControllerDxe/SataControllerDxe.inf
  724. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  725. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  726. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  727. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  728. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  729. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  730. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  731. #
  732. # Serial Support
  733. #
  734. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  735. #
  736. # SMBIOS Support
  737. #
  738. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf {
  739. <LibraryClasses>
  740. NULL|OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.inf
  741. }
  742. OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  743. #
  744. # ACPI Support
  745. #
  746. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  747. OvmfPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
  748. MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf
  749. MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe/BootScriptExecutorDxe.inf
  750. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  751. #
  752. # Network Support
  753. #
  754. !include NetworkPkg/NetworkComponents.dsc.inc
  755. !include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
  756. OvmfPkg/VirtioNetDxe/VirtioNet.inf
  757. !if $(TOOL_CHAIN_TAG) != "XCODE5"
  758. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
  759. <PcdsFixedAtBuild>
  760. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  761. }
  762. ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
  763. <PcdsFixedAtBuild>
  764. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  765. }
  766. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  767. <PcdsFixedAtBuild>
  768. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  769. }
  770. !endif
  771. ShellPkg/Application/Shell/Shell.inf {
  772. <LibraryClasses>
  773. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  774. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  775. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  776. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  777. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  778. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  779. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  780. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  781. !if $(NETWORK_IP6_ENABLE) == TRUE
  782. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  783. !endif
  784. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  785. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  786. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  787. <PcdsFixedAtBuild>
  788. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  789. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  790. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  791. }
  792. !if $(SECURE_BOOT_ENABLE) == TRUE
  793. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  794. OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
  795. !endif
  796. OvmfPkg/PlatformDxe/Platform.inf
  797. OvmfPkg/AmdSevDxe/AmdSevDxe.inf {
  798. <LibraryClasses>
  799. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  800. }
  801. OvmfPkg/IoMmuDxe/IoMmuDxe.inf
  802. !if $(SMM_REQUIRE) == TRUE
  803. OvmfPkg/SmmAccess/SmmAccess2Dxe.inf
  804. OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf
  805. OvmfPkg/CpuS3DataDxe/CpuS3DataDxe.inf
  806. #
  807. # SMM Initial Program Load (a DXE_RUNTIME_DRIVER)
  808. #
  809. MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
  810. #
  811. # SMM_CORE
  812. #
  813. MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
  814. #
  815. # Privileged drivers (DXE_SMM_DRIVER modules)
  816. #
  817. OvmfPkg/CpuHotplugSmm/CpuHotplugSmm.inf
  818. UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
  819. MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf {
  820. <LibraryClasses>
  821. LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
  822. }
  823. UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
  824. <LibraryClasses>
  825. SmmCpuPlatformHookLib|OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.inf
  826. SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
  827. }
  828. #
  829. # Variable driver stack (SMM)
  830. #
  831. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
  832. <LibraryClasses>
  833. CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
  834. }
  835. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
  836. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
  837. <LibraryClasses>
  838. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  839. NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
  840. }
  841. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
  842. !else
  843. #
  844. # Variable driver stack (non-SMM)
  845. #
  846. OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  847. OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf {
  848. <LibraryClasses>
  849. PlatformFvbLib|OvmfPkg/Library/EmuVariableFvbLib/EmuVariableFvbLib.inf
  850. }
  851. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  852. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  853. <LibraryClasses>
  854. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  855. }
  856. !endif
  857. #
  858. # TPM support
  859. #
  860. !include OvmfPkg/Include/Dsc/OvmfTpmComponentsDxe.dsc.inc