MicrovmX64.dsc 42 KB

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