JH7110.dsc 30 KB

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