1config 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 13 https://github.com/riscv/opensbi.git 14 15if BR2_TARGET_OPENSBI 16choice 17 prompt "OpenSBI Version" 18 help 19 Select the specific OpenSBI version you want to use 20 21config BR2_TARGET_OPENSBI_LATEST_VERSION 22 bool "0.9" 23 24config BR2_TARGET_OPENSBI_CUSTOM_VERSION 25 bool "Custom version" 26 help 27 This option allows to use a specific official versions 28 29config BR2_TARGET_OPENSBI_CUSTOM_TARBALL 30 bool "Custom tarball" 31 32config BR2_TARGET_OPENSBI_CUSTOM_GIT 33 bool "Custom Git repository" 34 35endchoice 36 37config BR2_TARGET_OPENSBI_CUSTOM_VERSION_VALUE 38 string "OpenSBI version" 39 depends on BR2_TARGET_OPENSBI_CUSTOM_VERSION 40 41config BR2_TARGET_OPENSBI_CUSTOM_TARBALL_LOCATION 42 string "URL of custom OpenSBI tarball" 43 depends on BR2_TARGET_OPENSBI_CUSTOM_TARBALL 44 45if BR2_TARGET_OPENSBI_CUSTOM_GIT 46 47config BR2_TARGET_OPENSBI_CUSTOM_REPO_URL 48 string "URL of custom repository" 49 50config BR2_TARGET_OPENSBI_CUSTOM_REPO_VERSION 51 string "Custom repository version" 52 help 53 Revision to use in the typical format used by Git. E.G. a 54 sha id, a tag, branch, .. 55 56endif 57 58config BR2_TARGET_OPENSBI_VERSION 59 string 60 default "0.9" if BR2_TARGET_OPENSBI_LATEST_VERSION 61 default BR2_TARGET_OPENSBI_CUSTOM_VERSION_VALUE \ 62 if BR2_TARGET_OPENSBI_CUSTOM_VERSION 63 default "custom" if BR2_TARGET_OPENSBI_CUSTOM_TARBALL 64 default BR2_TARGET_OPENSBI_CUSTOM_REPO_VERSION \ 65 if BR2_TARGET_OPENSBI_CUSTOM_GIT 66 67config BR2_TARGET_OPENSBI_PLAT 68 string "OpenSBI Platform" 69 default "" 70 help 71 Specifies the OpenSBI platform to build. If no platform is 72 specified only the OpenSBI platform independent static 73 library libsbi.a is built. If a platform is specified then 74 the platform specific static library libplatsbi.a and firmware 75 examples are built. 76 77config BR2_TARGET_OPENSBI_INSTALL_DYNAMIC_IMG 78 bool "Install fw_dynamic image" 79 default y if BR2_TARGET_OPENSBI_PLAT != "" 80 help 81 This installs the fw_dynamic image. 82 83config BR2_TARGET_OPENSBI_INSTALL_JUMP_IMG 84 bool "Install fw_jump image" 85 default y if BR2_TARGET_OPENSBI_PLAT != "" 86 help 87 This installs the fw_jump image. 88 89config BR2_TARGET_OPENSBI_INSTALL_PAYLOAD_IMG 90 bool "Install fw_payload image" 91 help 92 This option enables the installation of the fw_paylaod 93 image. 94 95config BR2_TARGET_OPENSBI_LINUX_PAYLOAD 96 bool "Include Linux as OpenSBI Payload" 97 depends on BR2_TARGET_OPENSBI_PLAT != "" 98 depends on BR2_LINUX_KERNEL 99 depends on BR2_LINUX_KERNEL_IMAGE 100 select BR2_TARGET_OPENSBI_INSTALL_PAYLOAD_IMG 101 help 102 Build OpenSBI with the Linux kernel as a Payload. 103 104config BR2_TARGET_OPENSBI_UBOOT_PAYLOAD 105 bool "Include U-Boot as OpenSBI Payload" 106 depends on BR2_TARGET_OPENSBI_PLAT != "" 107 depends on BR2_TARGET_UBOOT 108 select BR2_TARGET_OPENSBI_INSTALL_PAYLOAD_IMG 109 help 110 Build OpenSBI with the U-Boot as a Payload. 111 112config BR2_TARGET_OPENSBI_FW_FDT_PATH 113 bool "Include U-Boot DTB in OpenSBI Payload" 114 depends on BR2_TARGET_OPENSBI_UBOOT_PAYLOAD 115 select BR2_TARGET_UBOOT_FORMAT_DTB 116 help 117 Build OpenSBI with FW_FDT_PATH set to 118 $(BINARIES_DIR)/u-boot.dtb. Note that CONFIG_OF_SEPARATE 119 must be set in the U-Boot configuration for this file to be 120 produced. 121 122endif 123