U540.dsc 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. ## @file
  2. # RISC-V EFI on SiFive Freedom U540 HiFive Unleashed RISC-V platform
  3. #
  4. # Copyright (c) 2019-2021, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
  5. #
  6. # SPDX-License-Identifier: BSD-2-Clause-Patent
  7. #
  8. ##
  9. ################################################################################
  10. #
  11. # Defines Section - statements that will be processed to create a Makefile.
  12. #
  13. ################################################################################
  14. [Defines]
  15. PLATFORM_NAME = FreedomU540HiFiveUnleashed
  16. PLATFORM_GUID = 8317E90F-428B-403F-9057-112B0C19008E
  17. PLATFORM_VERSION = 0.1
  18. DSC_SPECIFICATION = 0x0001001c
  19. OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME)
  20. SUPPORTED_ARCHITECTURES = RISCV64
  21. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  22. SKUID_IDENTIFIER = DEFAULT
  23. FLASH_DEFINITION = Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.fdf
  24. #
  25. # Enable below options may cause build error or may not work on
  26. # the initial version of RISC-V package
  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 DEBUG_ON_SERIAL_PORT = TRUE
  32. #
  33. # Network definition
  34. #
  35. DEFINE NETWORK_SNP_ENABLE = FALSE
  36. DEFINE NETWORK_IP6_ENABLE = FALSE
  37. DEFINE NETWORK_TLS_ENABLE = FALSE
  38. DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
  39. DEFINE NETWORK_ISCSI_ENABLE = FALSE
  40. [BuildOptions]
  41. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  42. !ifdef $(SOURCE_DEBUG_ENABLE)
  43. GCC:*_*_RISCV64_GENFW_FLAGS = --keepexceptiontable
  44. !endif
  45. ################################################################################
  46. #
  47. # SKU Identification section - list of all SKU IDs supported by this Platform.
  48. #
  49. ################################################################################
  50. [SkuIds]
  51. 0|DEFAULT
  52. ################################################################################
  53. #
  54. # Library Class section - list of all Library Classes needed by this Platform.
  55. #
  56. ################################################################################
  57. !include MdePkg/MdeLibs.dsc.inc
  58. [LibraryClasses]
  59. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  60. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  61. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  62. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  63. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  64. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  65. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  66. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  67. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  68. CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
  69. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  70. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  71. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  72. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  73. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  74. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  75. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  76. PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
  77. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  78. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  79. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  80. SerialPortLib|Platform/SiFive/U5SeriesPkg/Library/SerialIoLib/SerialIoLib.inf
  81. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  82. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  83. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  84. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  85. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  86. DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
  87. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  88. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  89. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  90. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  91. SortLib|MdeModulePkg/Library/BaseSortLib/BaseSortLib.inf
  92. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  93. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  94. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  95. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  96. # RISC-V Platform Library
  97. TimeBaseLib|EmbeddedPkg//Library/TimeBaseLib/TimeBaseLib.inf
  98. RealTimeClockLib|EmbeddedPkg//Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.inf
  99. # RISC-V Core Library
  100. RiscVOpensbiLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf
  101. !ifdef $(SOURCE_DEBUG_ENABLE)
  102. PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
  103. DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
  104. !else
  105. PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  106. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  107. !endif
  108. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  109. !if $(SECURE_BOOT_ENABLE) == TRUE
  110. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  111. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  112. TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
  113. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  114. SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
  115. SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
  116. !else
  117. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  118. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  119. !endif
  120. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  121. !if $(HTTP_BOOT_ENABLE) == TRUE
  122. HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
  123. !endif
  124. # ACPI not supported yet.
  125. #S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
  126. SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
  127. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  128. [LibraryClasses.common]
  129. !if $(SECURE_BOOT_ENABLE) == TRUE
  130. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  131. !endif
  132. RiscVCpuLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVCpuLib/RiscVCpuLib.inf
  133. RiscVEdk2SbiLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVEdk2SbiLib/RiscVEdk2SbiLib.inf
  134. RiscVPlatformTimerLib|Platform/SiFive/U5SeriesPkg/Library/RiscVPlatformTimerLib/RiscVPlatformTimerLib.inf
  135. CpuExceptionHandlerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVExceptionLib/CpuExceptionHandlerDxeLib.inf
  136. # Flattened Device Tree (FDT) access library
  137. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  138. [LibraryClasses.common.SEC]
  139. !ifdef $(DEBUG_ON_SERIAL_PORT)
  140. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  141. !else
  142. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  143. !endif
  144. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  145. ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  146. RiscVSpecialPlatformLib|Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/Library/RiscVSpecialPlatformLib/RiscVSpecialPlatformLib.inf
  147. !ifdef $(SOURCE_DEBUG_ENABLE)
  148. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  149. !endif
  150. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  151. #
  152. # OpenSBi Platform Library
  153. #
  154. RiscVOpensbiPlatformLib|Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/OpensbiPlatformLib.inf
  155. [LibraryClasses.common.PEI_CORE]
  156. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  157. PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf
  158. RiscVFirmwareContextLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.inf
  159. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  160. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  161. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  162. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  163. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  164. !ifdef $(DEBUG_ON_SERIAL_PORT)
  165. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  166. !else
  167. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  168. !endif
  169. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  170. # RISC-V platform PEI core entry point.
  171. PeiCoreEntryPoint|Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  172. PlatformSecPpiLib|Platform/SiFive/U5SeriesPkg/Library/PlatformSecPpiLib/PlatformSecPpiLib.inf
  173. [LibraryClasses.common.PEIM]
  174. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  175. PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf
  176. RiscVFirmwareContextLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.inf
  177. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  178. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  179. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  180. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  181. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  182. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  183. !ifdef $(DEBUG_ON_SERIAL_PORT)
  184. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  185. !else
  186. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  187. !endif
  188. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  189. PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  190. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  191. !ifdef $(SOURCE_DEBUG_ENABLE)
  192. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  193. !endif
  194. FirmwareContextProcessorSpecificLib|Platform/RISC-V/PlatformPkg/Library/FirmwareContextProcessorSpecificLib/FirmwareContextProcessorSpecificLib.inf
  195. #
  196. # RISC-V core libraries
  197. #
  198. SiliconSiFiveU54CoreInfoLib|Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf
  199. RiscVCoreplexInfoLib|Platform/SiFive/U5SeriesPkg/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf
  200. [LibraryClasses.common.DXE_CORE]
  201. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  202. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  203. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  204. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  205. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  206. !ifdef $(DEBUG_ON_SERIAL_PORT)
  207. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  208. !else
  209. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  210. !endif
  211. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  212. !ifdef $(SOURCE_DEBUG_ENABLE)
  213. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  214. !endif
  215. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  216. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  217. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  218. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  219. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  220. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  221. ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
  222. ResetSystemLib|Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib.inf
  223. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  224. !ifdef $(DEBUG_ON_SERIAL_PORT)
  225. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  226. !else
  227. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  228. !endif
  229. !if $(SECURE_BOOT_ENABLE) == TRUE
  230. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  231. !endif
  232. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  233. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  234. [LibraryClasses.common.UEFI_DRIVER]
  235. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  236. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  237. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  238. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  239. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  240. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  241. !ifdef $(DEBUG_ON_SERIAL_PORT)
  242. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  243. !else
  244. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  245. !endif
  246. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  247. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  248. [LibraryClasses.common.DXE_DRIVER]
  249. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  250. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  251. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  252. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  253. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  254. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  255. !ifdef $(DEBUG_ON_SERIAL_PORT)
  256. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  257. !else
  258. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  259. !endif
  260. !ifdef $(SOURCE_DEBUG_ENABLE)
  261. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  262. !endif
  263. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  264. PlatformBootManagerLib|Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  265. PlatformMemoryTestLib|Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestLibNull/PlatformMemoryTestLibNull.inf
  266. PlatformUpdateProgressLib|Platform/RISC-V/PlatformPkg/Library/PlatformUpdateProgressLibNull/PlatformUpdateProgressLibNull.inf
  267. [LibraryClasses.common.UEFI_APPLICATION]
  268. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  269. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  270. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  271. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  272. !ifdef $(DEBUG_ON_SERIAL_PORT)
  273. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  274. !else
  275. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  276. !endif
  277. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  278. ################################################################################
  279. #
  280. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  281. #
  282. ################################################################################
  283. [PcdsFeatureFlag]
  284. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  285. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  286. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  287. [PcdsFixedAtBuild]
  288. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
  289. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
  290. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  291. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  292. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  293. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  294. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
  295. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  296. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  297. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  298. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  299. !ifdef $(SOURCE_DEBUG_ENABLE)
  300. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  301. !else
  302. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  303. !endif
  304. !ifdef $(SOURCE_DEBUG_ENABLE)
  305. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  306. !endif
  307. !if $(SECURE_BOOT_ENABLE) == TRUE
  308. # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
  309. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
  310. gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
  311. gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
  312. !endif
  313. #
  314. # F2 for UI APP
  315. #
  316. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  317. ################################################################################
  318. #
  319. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  320. #
  321. ################################################################################
  322. [PcdsDynamicDefault]
  323. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  324. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  325. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  326. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  327. gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
  328. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
  329. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
  330. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  331. # Set video resolution for text setup.
  332. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  333. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  334. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  335. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  336. ################################################################################
  337. #
  338. # Components Section - list of all EDK II Modules needed by this Platform.
  339. #
  340. ################################################################################
  341. [Components]
  342. #
  343. # SEC Phase modules
  344. #
  345. Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.inf
  346. #
  347. # PEI Phase modules
  348. #
  349. MdeModulePkg/Core/Pei/PeiMain.inf
  350. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  351. <LibraryClasses>
  352. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  353. }
  354. MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
  355. MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
  356. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
  357. <LibraryClasses>
  358. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  359. }
  360. Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/PlatformPei.inf {
  361. <LibraryClasses>
  362. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  363. }
  364. Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.inf
  365. #
  366. # DXE Phase modules
  367. #
  368. MdeModulePkg/Core/Dxe/DxeMain.inf {
  369. <LibraryClasses>
  370. NULL|MdeModulePkg//Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  371. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  372. }
  373. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  374. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  375. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  376. <LibraryClasses>
  377. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  378. }
  379. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  380. !if $(SECURE_BOOT_ENABLE) == TRUE
  381. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  382. <LibraryClasses>
  383. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  384. }
  385. !else
  386. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  387. !endif
  388. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  389. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  390. <LibraryClasses>
  391. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  392. }
  393. MdeModulePkg/Universal/Metronome/Metronome.inf
  394. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  395. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf {
  396. <LibraryClasses>
  397. ResetSystemLib|MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.inf
  398. }
  399. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
  400. #
  401. # RISC-V Platform module
  402. #
  403. Platform/SiFive/U5SeriesPkg/Universal/Dxe/TimerDxe/TimerDxe.inf
  404. Platform/SiFive/U5SeriesPkg/Universal/Dxe/RamFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  405. #
  406. # RISC-V Core module
  407. #
  408. Silicon/RISC-V/ProcessorPkg/Universal/CpuDxe/CpuDxe.inf
  409. Silicon/RISC-V/ProcessorPkg/Universal/SmbiosDxe/RiscVSmbiosDxe.inf
  410. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  411. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  412. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  413. <LibraryClasses>
  414. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  415. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  416. }
  417. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  418. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  419. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  420. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  421. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  422. # No graphic console supported yet.
  423. # MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  424. # <LibraryClasses>
  425. # PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  426. # }
  427. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  428. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  429. <LibraryClasses>
  430. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  431. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  432. }
  433. MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
  434. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  435. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  436. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  437. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  438. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  439. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  440. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  441. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  442. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  443. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  444. Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/DeviceTree/U540DeviceTree.inf
  445. #
  446. # SMBIOS Support
  447. #
  448. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
  449. #
  450. # Network Support
  451. #
  452. !include NetworkPkg/Network.dsc.inc
  453. #
  454. # Usb Support
  455. #
  456. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  457. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  458. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  459. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  460. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  461. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  462. Silicon/RISC-V/ProcessorPkg/Universal/FdtDxe/FdtDxe.inf
  463. #
  464. # FAT filesystem + GPT/MBR partitioning + UDF filesystem
  465. #
  466. FatPkg/EnhancedFatDxe/Fat.inf
  467. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  468. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  469. <PcdsFixedAtBuild>
  470. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  471. }
  472. ShellPkg/Application/Shell/Shell.inf {
  473. <LibraryClasses>
  474. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  475. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  476. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  477. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  478. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  479. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  480. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  481. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  482. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  483. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  484. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  485. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  486. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  487. <PcdsFixedAtBuild>
  488. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  489. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  490. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  491. }
  492. !if $(SECURE_BOOT_ENABLE) == TRUE
  493. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  494. !endif
  495. MdeModulePkg/Application/UiApp/UiApp.inf