MicrovmX64.dsc 41 KB

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