Config.in 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. config BR2_TARGET_OPENSBI
  2. bool "opensbi"
  3. depends on BR2_riscv
  4. help
  5. OpenSBI aims to provide an open-source and extensible
  6. implementation of the RISC-V SBI specification for a platform
  7. specific firmware (M-mode) and a general purpose OS,
  8. hypervisor or bootloader (S-mode or HS-mode). OpenSBI
  9. implementation can be easily extended by RISC-V platform or
  10. System-on-Chip vendors to fit a particular hadware
  11. configuration.
  12. https://github.com/riscv/opensbi.git
  13. if BR2_TARGET_OPENSBI
  14. choice
  15. prompt "OpenSBI Version"
  16. help
  17. Select the specific OpenSBI version you want to use
  18. config BR2_TARGET_OPENSBI_LATEST_VERSION
  19. bool "0.9"
  20. config BR2_TARGET_OPENSBI_CUSTOM_VERSION
  21. bool "Custom version"
  22. help
  23. This option allows to use a specific official versions
  24. config BR2_TARGET_OPENSBI_CUSTOM_TARBALL
  25. bool "Custom tarball"
  26. config BR2_TARGET_OPENSBI_CUSTOM_GIT
  27. bool "Custom Git repository"
  28. endchoice
  29. config BR2_TARGET_OPENSBI_CUSTOM_VERSION_VALUE
  30. string "OpenSBI version"
  31. depends on BR2_TARGET_OPENSBI_CUSTOM_VERSION
  32. config BR2_TARGET_OPENSBI_CUSTOM_TARBALL_LOCATION
  33. string "URL of custom OpenSBI tarball"
  34. depends on BR2_TARGET_OPENSBI_CUSTOM_TARBALL
  35. if BR2_TARGET_OPENSBI_CUSTOM_GIT
  36. config BR2_TARGET_OPENSBI_CUSTOM_REPO_URL
  37. string "URL of custom repository"
  38. config BR2_TARGET_OPENSBI_CUSTOM_REPO_VERSION
  39. string "Custom repository version"
  40. help
  41. Revision to use in the typical format used by Git. E.G. a
  42. sha id, a tag, branch, ..
  43. endif
  44. config BR2_TARGET_OPENSBI_VERSION
  45. string
  46. default "0.9" if BR2_TARGET_OPENSBI_LATEST_VERSION
  47. default BR2_TARGET_OPENSBI_CUSTOM_VERSION_VALUE \
  48. if BR2_TARGET_OPENSBI_CUSTOM_VERSION
  49. default "custom" if BR2_TARGET_OPENSBI_CUSTOM_TARBALL
  50. default BR2_TARGET_OPENSBI_CUSTOM_REPO_VERSION \
  51. if BR2_TARGET_OPENSBI_CUSTOM_GIT
  52. config BR2_TARGET_OPENSBI_PLAT
  53. string "OpenSBI Platform"
  54. default ""
  55. help
  56. Specifies the OpenSBI platform to build. If no platform is
  57. specified only the OpenSBI platform independent static
  58. library libsbi.a is built. If a platform is specified then
  59. the platform specific static library libplatsbi.a and firmware
  60. examples are built.
  61. config BR2_TARGET_OPENSBI_INSTALL_DYNAMIC_IMG
  62. bool "Install fw_dynamic image"
  63. default y if BR2_TARGET_OPENSBI_PLAT != ""
  64. help
  65. This installs the fw_dynamic image.
  66. config BR2_TARGET_OPENSBI_INSTALL_JUMP_IMG
  67. bool "Install fw_jump image"
  68. default y if BR2_TARGET_OPENSBI_PLAT != ""
  69. help
  70. This installs the fw_jump image.
  71. config BR2_TARGET_OPENSBI_INSTALL_PAYLOAD_IMG
  72. bool "Install fw_payload image"
  73. help
  74. This option enables the installation of the fw_paylaod
  75. image.
  76. config BR2_TARGET_OPENSBI_LINUX_PAYLOAD
  77. bool "Include Linux as OpenSBI Payload"
  78. depends on BR2_TARGET_OPENSBI_PLAT != ""
  79. depends on BR2_LINUX_KERNEL
  80. depends on BR2_LINUX_KERNEL_IMAGE
  81. select BR2_TARGET_OPENSBI_INSTALL_PAYLOAD_IMG
  82. help
  83. Build OpenSBI with the Linux kernel as a Payload.
  84. config BR2_TARGET_OPENSBI_UBOOT_PAYLOAD
  85. bool "Include U-Boot as OpenSBI Payload"
  86. depends on BR2_TARGET_OPENSBI_PLAT != ""
  87. depends on BR2_TARGET_UBOOT
  88. select BR2_TARGET_OPENSBI_INSTALL_PAYLOAD_IMG
  89. help
  90. Build OpenSBI with the U-Boot as a Payload.
  91. config BR2_TARGET_OPENSBI_FW_FDT_PATH
  92. bool "Include U-Boot DTB in OpenSBI Payload"
  93. depends on BR2_TARGET_OPENSBI_UBOOT_PAYLOAD
  94. select BR2_TARGET_UBOOT_FORMAT_DTB
  95. help
  96. Build OpenSBI with FW_FDT_PATH set to
  97. $(BINARIES_DIR)/u-boot.dtb. Note that CONFIG_OF_SEPARATE
  98. must be set in the U-Boot configuration for this file to be
  99. produced.
  100. endif