JH7110.dsc 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  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. # Flattened Device Tree (FDT) access library
  141. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  142. [LibraryClasses.common.SEC]
  143. !ifdef $(DEBUG_ON_SERIAL_PORT)
  144. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  145. !else
  146. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  147. !endif
  148. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  149. ExtractGuidedSectionLib|MdePkg/Library/BaseExtractGuidedSectionLib/BaseExtractGuidedSectionLib.inf
  150. Edk2OpensbiPlatformWrapperLib|Platform/RISC-V/PlatformPkg/Library/Edk2OpensbiPlatformWrapperLib/Edk2OpensbiPlatformWrapperLib.inf
  151. RiscVSpecialPlatformLib|Platform/StarFive/JH7110SeriesPkg/JH7110Board/Library/RiscVSpecialPlatformLib/RiscVSpecialPlatformLib.inf
  152. !ifdef $(SOURCE_DEBUG_ENABLE)
  153. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  154. !endif
  155. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  156. #
  157. # OpenSBi Platform Library
  158. #
  159. RiscVOpensbiPlatformLib|Platform/RISC-V/PlatformPkg/Library/OpensbiPlatformLib/OpensbiPlatformLib.inf
  160. [LibraryClasses.common.PEI_CORE]
  161. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  162. PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf
  163. RiscVFirmwareContextLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.inf
  164. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  165. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  166. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  167. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  168. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  169. !ifdef $(DEBUG_ON_SERIAL_PORT)
  170. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  171. !else
  172. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  173. !endif
  174. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  175. # RISC-V platform PEI core entry point.
  176. PeiCoreEntryPoint|Platform/RISC-V/PlatformPkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  177. PlatformSecPpiLib|Platform/StarFive/JH7110SeriesPkg/Library/PlatformSecPpiLib/PlatformSecPpiLib.inf
  178. [LibraryClasses.common.PEIM]
  179. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  180. PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf
  181. RiscVFirmwareContextLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwareContextSscratchLib/RiscVFirmwareContextSscratchLib.inf
  182. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  183. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  184. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  185. ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
  186. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  187. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  188. !ifdef $(DEBUG_ON_SERIAL_PORT)
  189. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  190. !else
  191. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  192. !endif
  193. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  194. PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  195. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  196. !ifdef $(SOURCE_DEBUG_ENABLE)
  197. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
  198. !endif
  199. FirmwareContextProcessorSpecificLib|Platform/RISC-V/PlatformPkg/Library/FirmwareContextProcessorSpecificLib/FirmwareContextProcessorSpecificLib.inf
  200. #
  201. # RISC-V core libraries
  202. #
  203. SiliconSiFiveU54CoreInfoLib|Silicon/SiFive/U54/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf
  204. RiscVCoreplexInfoLib|Platform/StarFive/JH7110SeriesPkg/Library/PeiCoreInfoHobLib/PeiCoreInfoHobLib.inf
  205. [LibraryClasses.common.DXE_CORE]
  206. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  207. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  208. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  209. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  210. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  211. !ifdef $(DEBUG_ON_SERIAL_PORT)
  212. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  213. !else
  214. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  215. !endif
  216. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  217. !ifdef $(SOURCE_DEBUG_ENABLE)
  218. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  219. !endif
  220. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  221. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  222. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  223. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  224. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  225. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  226. ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
  227. ResetSystemLib|Platform/RISC-V/PlatformPkg/Library/ResetSystemLib/ResetSystemLib.inf
  228. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  229. !ifdef $(DEBUG_ON_SERIAL_PORT)
  230. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  231. !else
  232. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  233. !endif
  234. !if $(SECURE_BOOT_ENABLE) == TRUE
  235. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  236. !endif
  237. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  238. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  239. [LibraryClasses.common.UEFI_DRIVER]
  240. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  241. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  242. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  243. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  244. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  245. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  246. !ifdef $(DEBUG_ON_SERIAL_PORT)
  247. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  248. !else
  249. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  250. !endif
  251. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  252. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  253. [LibraryClasses.common.DXE_DRIVER]
  254. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  255. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  256. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  257. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  258. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  259. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  260. !ifdef $(DEBUG_ON_SERIAL_PORT)
  261. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  262. !else
  263. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  264. !endif
  265. !ifdef $(SOURCE_DEBUG_ENABLE)
  266. DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
  267. !endif
  268. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  269. PlatformBootManagerLib|Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  270. PlatformMemoryTestLib|Platform/RISC-V/PlatformPkg/Library/PlatformMemoryTestLibNull/PlatformMemoryTestLibNull.inf
  271. PlatformUpdateProgressLib|Platform/RISC-V/PlatformPkg/Library/PlatformUpdateProgressLibNull/PlatformUpdateProgressLibNull.inf
  272. [LibraryClasses.common.UEFI_APPLICATION]
  273. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  274. TimerLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVTimerLib/BaseRiscVTimerLib.inf
  275. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  276. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  277. !ifdef $(DEBUG_ON_SERIAL_PORT)
  278. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  279. !else
  280. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  281. !endif
  282. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  283. ################################################################################
  284. #
  285. # Pcd Section - list of all EDK II PCD Entries defined by this Platform.
  286. #
  287. ################################################################################
  288. [PcdsFeatureFlag]
  289. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSupportUefiDecompress|FALSE
  290. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  291. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  292. [PcdsFixedAtBuild]
  293. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
  294. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
  295. gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize|1
  296. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  297. gEfiMdePkgTokenSpaceGuid.PcdMaximumGuidedExtractHandler|0x10
  298. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  299. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
  300. gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0xe000
  301. gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
  302. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  303. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  304. !ifdef $(SOURCE_DEBUG_ENABLE)
  305. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
  306. !else
  307. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
  308. !endif
  309. !ifdef $(SOURCE_DEBUG_ENABLE)
  310. gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
  311. !endif
  312. !if $(SECURE_BOOT_ENABLE) == TRUE
  313. # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
  314. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
  315. gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
  316. gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
  317. !endif
  318. #
  319. # F2 for UI APP
  320. #
  321. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  322. #
  323. # DW MMC/SD card controller
  324. #
  325. gDesignWareTokenSpaceGuid.PcdDwEmmcDxeBaseAddress|0x16020000
  326. gDesignWareTokenSpaceGuid.PcdDwEmmcDxeClockFrequencyInHz|198000000
  327. gDesignWareTokenSpaceGuid.PcdDwEmmcDxeMaxClockFreqInHz|198000000
  328. gDesignWareTokenSpaceGuid.PcdDwPermitObsoleteDrivers|TRUE
  329. gDesignWareTokenSpaceGuid.PcdDwEmmcDxeFifoDepth|32
  330. ################################################################################
  331. #
  332. # Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
  333. #
  334. ################################################################################
  335. [PcdsDynamicDefault]
  336. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
  337. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  338. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  339. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  340. gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|FALSE
  341. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|800
  342. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|600
  343. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|0
  344. # Set video resolution for text setup.
  345. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  346. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  347. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
  348. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  349. ################################################################################
  350. #
  351. # Components Section - list of all EDK II Modules needed by this Platform.
  352. #
  353. ################################################################################
  354. [Components]
  355. #
  356. # SEC Phase modules
  357. #
  358. Platform/RISC-V/PlatformPkg/Universal/Sec/SecMain.inf
  359. #
  360. # PEI Phase modules
  361. #
  362. MdeModulePkg/Core/Pei/PeiMain.inf
  363. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  364. <LibraryClasses>
  365. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  366. }
  367. #MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
  368. #MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
  369. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
  370. <LibraryClasses>
  371. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  372. }
  373. Platform/RISC-V/PlatformPkg/Universal/Pei/PlatformPei/PlatformPei.inf {
  374. <LibraryClasses>
  375. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  376. }
  377. Platform/RISC-V/PlatformPkg/Universal/FdtPeim/FdtPeim.inf
  378. #
  379. # DXE Phase modules
  380. #
  381. MdeModulePkg/Core/Dxe/DxeMain.inf {
  382. <LibraryClasses>
  383. NULL|MdeModulePkg//Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  384. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  385. }
  386. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  387. MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  388. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  389. <LibraryClasses>
  390. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  391. }
  392. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  393. !if $(SECURE_BOOT_ENABLE) == TRUE
  394. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  395. <LibraryClasses>
  396. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  397. }
  398. !else
  399. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  400. !endif
  401. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  402. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf {
  403. <LibraryClasses>
  404. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  405. }
  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. #
  472. # Usb Support
  473. #
  474. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  475. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  476. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  477. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  478. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  479. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  480. Silicon/RISC-V/ProcessorPkg/Universal/FdtDxe/FdtDxe.inf
  481. #
  482. # FAT filesystem + GPT/MBR partitioning + UDF filesystem
  483. #
  484. FatPkg/EnhancedFatDxe/Fat.inf
  485. MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
  486. OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf {
  487. <PcdsFixedAtBuild>
  488. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  489. <LibraryClasses>
  490. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  491. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  492. }
  493. ShellPkg/Application/Shell/Shell.inf {
  494. <LibraryClasses>
  495. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  496. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  497. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  498. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  499. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  500. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  501. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  502. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  503. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  504. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  505. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  506. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  507. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  508. <PcdsFixedAtBuild>
  509. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  510. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  511. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  512. }
  513. !if $(SECURE_BOOT_ENABLE) == TRUE
  514. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  515. !endif
  516. MdeModulePkg/Application/UiApp/UiApp.inf