JH7110.dsc 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  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 = JH7110
  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/StarFive/JH7110SeriesPkg/JH7110Board/JH7110.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/StarFive/JH7110SeriesPkg/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. VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
  96. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  97. # RISC-V Platform Library
  98. TimeBaseLib|EmbeddedPkg//Library/TimeBaseLib/TimeBaseLib.inf
  99. RealTimeClockLib|EmbeddedPkg//Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.inf
  100. # RISC-V Core Library
  101. RiscVOpensbiLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/RiscVOpensbiLib.inf
  102. !ifdef $(SOURCE_DEBUG_ENABLE)
  103. PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
  104. DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
  105. !else
  106. PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  107. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  108. !endif
  109. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  110. !if $(SECURE_BOOT_ENABLE) == TRUE
  111. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  112. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  113. TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
  114. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  115. SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
  116. SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
  117. PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
  118. !else
  119. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  120. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  121. !endif
  122. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  123. !if $(HTTP_BOOT_ENABLE) == TRUE
  124. HttpLib|MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf
  125. !endif
  126. # ACPI not supported yet.
  127. #S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
  128. SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
  129. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  130. [LibraryClasses.common]
  131. !if $(SECURE_BOOT_ENABLE) == TRUE
  132. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  133. !endif
  134. RiscVCpuLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVCpuLib/RiscVCpuLib.inf
  135. RiscVEdk2SbiLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVEdk2SbiLib/RiscVEdk2SbiLib.inf
  136. RiscVPlatformTimerLib|Platform/StarFive/JH7110SeriesPkg/Library/RiscVPlatformTimerLib/RiscVPlatformTimerLib.inf
  137. #MachineModeTimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVReadMachineModeTimer/MachineModeTimerLib/MachineModeTimerLib.inf
  138. MachineModeTimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVReadMachineModeTimer/EmulatedMachineModeTimerLib/EmulatedMachineModeTimerLib.inf
  139. CpuExceptionHandlerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVExceptionLib/CpuExceptionHandlerDxeLib.inf
  140. #Pci dependencies
  141. PciHostBridgeLib|Silicon/StarFive/JH7110/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  142. PciSegmentLib|Silicon/StarFive/JH7110/Library/PciSegmentLib/PciSegmentLib.inf
  143. # Flattened Device Tree (FDT) access library
  144. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  145. [LibraryClasses.common.SEC]
  146. !ifdef $(DEBUG_ON_SERIAL_PORT)
  147. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  148. !else
  149. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  150. !endif
  151. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  152. ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  153. Edk2OpensbiPlatformWrapperLib|Platform/RISC-V/PlatformPkg/Library/Edk2OpensbiPlatformWrapperLib/Edk2OpensbiPlatformWrapperLib.inf
  154. RiscVSpecialPlatformLib|Platform/StarFive/JH7110SeriesPkg/JH7110Board/Library/RiscVSpecialPlatformLib/RiscVSpecialPlatformLib.inf
  155. !ifdef $(SOURCE_DEBUG_ENABLE)
  156. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  157. !endif
  158. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  159. #
  160. # OpenSBi Platform Library
  161. #
  162. RiscVOpensbiPlatformLib|Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/OpensbiPlatformLib.inf
  163. [LibraryClasses.common.PEI_CORE]
  164. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  165. PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf
  166. RiscVFirmwareContextLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.inf
  167. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  168. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  169. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  170. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  171. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  172. !ifdef $(DEBUG_ON_SERIAL_PORT)
  173. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  174. !else
  175. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  176. !endif
  177. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  178. # RISC-V platform PEI core entry point.
  179. PeiCoreEntryPoint|Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  180. PlatformSecPpiLib|Platform/StarFive/JH7110SeriesPkg/Library/PlatformSecPpiLib/PlatformSecPpiLib.inf
  181. [LibraryClasses.common.PEIM]
  182. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  183. PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf
  184. RiscVFirmwareContextLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.inf
  185. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  186. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  187. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  188. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  189. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  190. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  191. !ifdef $(DEBUG_ON_SERIAL_PORT)
  192. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  193. !else
  194. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  195. !endif
  196. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  197. PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  198. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  199. !ifdef $(SOURCE_DEBUG_ENABLE)
  200. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  201. !endif
  202. FirmwareContextProcessorSpecificLib|Platform/RISC-V/PlatformPkg/Library/FirmwareContextProcessorSpecificLib/FirmwareContextProcessorSpecificLib.inf
  203. #
  204. # RISC-V core libraries
  205. #
  206. SiliconSiFiveU54CoreInfoLib|Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf
  207. RiscVCoreplexInfoLib|Platform/StarFive/JH7110SeriesPkg/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf
  208. [LibraryClasses.common.DXE_CORE]
  209. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  210. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  211. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  212. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  213. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  214. !ifdef $(DEBUG_ON_SERIAL_PORT)
  215. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  216. !else
  217. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  218. !endif
  219. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  220. !ifdef $(SOURCE_DEBUG_ENABLE)
  221. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  222. !endif
  223. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  224. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  225. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  226. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  227. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  228. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  229. ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
  230. ResetSystemLib|Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib.inf
  231. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  232. !ifdef $(DEBUG_ON_SERIAL_PORT)
  233. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  234. !else
  235. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  236. !endif
  237. !if $(SECURE_BOOT_ENABLE) == TRUE
  238. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  239. !endif
  240. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  241. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  242. [LibraryClasses.common.UEFI_DRIVER]
  243. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  244. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  245. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  246. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  247. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  248. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  249. !ifdef $(DEBUG_ON_SERIAL_PORT)
  250. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  251. !else
  252. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  253. !endif
  254. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  255. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  256. [LibraryClasses.common.DXE_DRIVER]
  257. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  258. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  259. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  260. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  261. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  262. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  263. !ifdef $(DEBUG_ON_SERIAL_PORT)
  264. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  265. !else
  266. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  267. !endif
  268. !ifdef $(SOURCE_DEBUG_ENABLE)
  269. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  270. !endif
  271. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  272. PlatformBootManagerLib|Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  273. PlatformMemoryTestLib|Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestLibNull/PlatformMemoryTestLibNull.inf
  274. PlatformUpdateProgressLib|Platform/RISC-V/PlatformPkg/Library/PlatformUpdateProgressLibNull/PlatformUpdateProgressLibNull.inf
  275. [LibraryClasses.common.UEFI_APPLICATION]
  276. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  277. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  278. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  279. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  280. !ifdef $(DEBUG_ON_SERIAL_PORT)
  281. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  282. !else
  283. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  284. !endif
  285. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  286. ################################################################################
  287. #
  288. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  289. #
  290. ################################################################################
  291. [PcdsFeatureFlag]
  292. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  293. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  294. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  295. [PcdsFixedAtBuild]
  296. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
  297. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
  298. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  299. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  300. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  301. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  302. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
  303. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  304. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  305. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  306. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  307. !ifdef $(SOURCE_DEBUG_ENABLE)
  308. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  309. !else
  310. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  311. !endif
  312. !ifdef $(SOURCE_DEBUG_ENABLE)
  313. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  314. !endif
  315. !if $(SECURE_BOOT_ENABLE) == TRUE
  316. # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
  317. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
  318. gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
  319. gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
  320. !endif
  321. #
  322. # F2 for UI APP
  323. #
  324. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  325. #
  326. # DW MMC/SD card controller
  327. #
  328. gDesignWareTokenSpaceGuid.PcdDwEmmcDxeBaseAddress|0x16010000
  329. gDesignWareTokenSpaceGuid.PcdDwSdDxeBaseAddress|0x16020000
  330. gDesignWareTokenSpaceGuid.PcdDwEmmcDxeClockFrequencyInHz|198000000
  331. gDesignWareTokenSpaceGuid.PcdDwEmmcDxeMaxClockFreqInHz|198000000
  332. gDesignWareTokenSpaceGuid.PcdDwPermitObsoleteDrivers|TRUE
  333. gDesignWareTokenSpaceGuid.PcdDwEmmcDxeFifoDepth|32
  334. ################################################################################
  335. #
  336. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  337. #
  338. ################################################################################
  339. [PcdsDynamicDefault]
  340. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  341. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  342. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  343. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  344. gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
  345. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
  346. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
  347. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  348. # Set video resolution for text setup.
  349. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  350. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  351. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  352. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  353. ################################################################################
  354. #
  355. # Components Section - list of all EDK II Modules needed by this Platform.
  356. #
  357. ################################################################################
  358. [Components]
  359. #
  360. # SEC Phase modules
  361. #
  362. Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.inf
  363. #
  364. # PEI Phase modules
  365. #
  366. MdeModulePkg/Core/Pei/PeiMain.inf
  367. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  368. <LibraryClasses>
  369. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  370. }
  371. #MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
  372. #MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
  373. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
  374. <LibraryClasses>
  375. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  376. }
  377. Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/PlatformPei.inf {
  378. <LibraryClasses>
  379. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  380. }
  381. Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.inf
  382. #
  383. # DXE Phase modules
  384. #
  385. MdeModulePkg/Core/Dxe/DxeMain.inf {
  386. <LibraryClasses>
  387. NULL|MdeModulePkg//Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  388. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  389. }
  390. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  391. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  392. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  393. <LibraryClasses>
  394. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  395. }
  396. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  397. !if $(SECURE_BOOT_ENABLE) == TRUE
  398. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  399. <LibraryClasses>
  400. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  401. }
  402. !else
  403. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  404. !endif
  405. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  406. MdeModulePkg/Universal/Metronome/Metronome.inf
  407. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  408. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf {
  409. <LibraryClasses>
  410. ResetSystemLib|MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.inf
  411. }
  412. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
  413. #
  414. # RISC-V Platform module
  415. #
  416. Platform/StarFive/JH7110SeriesPkg/Universal/Dxe/TimerDxe/TimerDxe.inf
  417. Platform/StarFive/JH7110SeriesPkg/Universal/Dxe/RamFvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
  418. #
  419. # RISC-V Core module
  420. #
  421. Silicon/RISC-V/ProcessorPkg/Universal/CpuDxe/CpuDxe.inf
  422. Silicon/RISC-V/ProcessorPkg/Universal/SmbiosDxe/RiscVSmbiosDxe.inf
  423. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  424. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  425. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  426. <LibraryClasses>
  427. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  428. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  429. }
  430. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  431. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  432. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  433. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  434. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  435. # No graphic console supported yet.
  436. # MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf {
  437. # <LibraryClasses>
  438. # PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  439. # }
  440. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  441. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  442. <LibraryClasses>
  443. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  444. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  445. }
  446. MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
  447. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  448. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  449. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  450. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  451. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  452. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  453. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  454. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  455. MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
  456. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  457. Platform/StarFive/JH7110SeriesPkg/JH7110Board/DeviceTree/JH7110DeviceTree.inf
  458. #
  459. # SMBIOS Support
  460. #
  461. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
  462. #
  463. # Network Support
  464. #
  465. !include NetworkPkg/Network.dsc.inc
  466. #
  467. # sdio/mmc support
  468. #
  469. EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
  470. Silicon/Synopsys/DesignWare/Drivers/DwEmmcDxe/DwEmmcDxe.inf {
  471. <BuildOptions>
  472. GCC:*_*_*_CC_FLAGS = -DCONFIG_DWEMMC
  473. }
  474. Silicon/Synopsys/DesignWare/Drivers/DwEmmcDxe/DwSdmmcDxe.inf {
  475. <BuildOptions>
  476. GCC:*_*_*_CC_FLAGS = -DCONFIG_DWSDMMC
  477. }
  478. #
  479. # PCIe support
  480. #
  481. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  482. <LibraryClasses>
  483. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  484. }
  485. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
  486. #Silicon/StarFive/JH7110/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  487. #Silicon/StarFive/JH7110/Library/PciSegmentLib/PciSegmentLib.inf
  488. #
  489. # NVMe boot devices
  490. #
  491. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  492. #
  493. # Usb Support
  494. #
  495. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  496. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  497. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  498. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  499. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  500. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  501. Silicon/RISC-V/ProcessorPkg/Universal/FdtDxe/FdtDxe.inf
  502. #
  503. # FAT filesystem + GPT/MBR partitioning + UDF filesystem
  504. #
  505. FatPkg/EnhancedFatDxe/Fat.inf
  506. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  507. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  508. <PcdsFixedAtBuild>
  509. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  510. <LibraryClasses>
  511. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  512. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  513. }
  514. ShellPkg/Application/Shell/Shell.inf {
  515. <LibraryClasses>
  516. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  517. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  518. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  519. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  520. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  521. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  522. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  523. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  524. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  525. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  526. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  527. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  528. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  529. <PcdsFixedAtBuild>
  530. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  531. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  532. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  533. }
  534. !if $(SECURE_BOOT_ENABLE) == TRUE
  535. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  536. !endif
  537. MdeModulePkg/Application/UiApp/UiApp.inf