2019-03-21 00:05:21 +01:00
|
|
|
config BR2_TARGET_OPENSBI
|
|
|
|
bool "opensbi"
|
|
|
|
depends on BR2_riscv
|
|
|
|
help
|
|
|
|
OpenSBI aims to provide an open-source and extensible
|
|
|
|
implementation of the RISC-V SBI specification for a platform
|
|
|
|
specific firmware (M-mode) and a general purpose OS,
|
|
|
|
hypervisor or bootloader (S-mode or HS-mode). OpenSBI
|
|
|
|
implementation can be easily extended by RISC-V platform or
|
|
|
|
System-on-Chip vendors to fit a particular hadware
|
|
|
|
configuration.
|
|
|
|
|
|
|
|
https://github.com/riscv/opensbi.git
|
|
|
|
|
|
|
|
if BR2_TARGET_OPENSBI
|
2021-04-29 09:46:32 +02:00
|
|
|
choice
|
|
|
|
prompt "OpenSBI Version"
|
|
|
|
help
|
|
|
|
Select the specific OpenSBI version you want to use
|
|
|
|
|
|
|
|
config BR2_TARGET_OPENSBI_LATEST_VERSION
|
2021-05-08 21:41:54 +02:00
|
|
|
bool "0.9"
|
2021-04-29 09:46:32 +02:00
|
|
|
|
|
|
|
config BR2_TARGET_OPENSBI_CUSTOM_VERSION
|
|
|
|
bool "Custom version"
|
|
|
|
help
|
|
|
|
This option allows to use a specific official versions
|
|
|
|
|
|
|
|
config BR2_TARGET_OPENSBI_CUSTOM_TARBALL
|
|
|
|
bool "Custom tarball"
|
|
|
|
|
|
|
|
config BR2_TARGET_OPENSBI_CUSTOM_GIT
|
|
|
|
bool "Custom Git repository"
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config BR2_TARGET_OPENSBI_CUSTOM_VERSION_VALUE
|
|
|
|
string "OpenSBI version"
|
|
|
|
depends on BR2_TARGET_OPENSBI_CUSTOM_VERSION
|
|
|
|
|
|
|
|
config BR2_TARGET_OPENSBI_CUSTOM_TARBALL_LOCATION
|
|
|
|
string "URL of custom OpenSBI tarball"
|
|
|
|
depends on BR2_TARGET_OPENSBI_CUSTOM_TARBALL
|
|
|
|
|
|
|
|
if BR2_TARGET_OPENSBI_CUSTOM_GIT
|
|
|
|
|
|
|
|
config BR2_TARGET_OPENSBI_CUSTOM_REPO_URL
|
|
|
|
string "URL of custom repository"
|
|
|
|
|
|
|
|
config BR2_TARGET_OPENSBI_CUSTOM_REPO_VERSION
|
|
|
|
string "Custom repository version"
|
|
|
|
help
|
|
|
|
Revision to use in the typical format used by Git. E.G. a
|
|
|
|
sha id, a tag, branch, ..
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
config BR2_TARGET_OPENSBI_VERSION
|
|
|
|
string
|
2021-05-08 21:41:54 +02:00
|
|
|
default "0.9" if BR2_TARGET_OPENSBI_LATEST_VERSION
|
2021-04-29 09:46:32 +02:00
|
|
|
default BR2_TARGET_OPENSBI_CUSTOM_VERSION_VALUE \
|
|
|
|
if BR2_TARGET_OPENSBI_CUSTOM_VERSION
|
|
|
|
default "custom" if BR2_TARGET_OPENSBI_CUSTOM_TARBALL
|
|
|
|
default BR2_TARGET_OPENSBI_CUSTOM_REPO_VERSION \
|
|
|
|
if BR2_TARGET_OPENSBI_CUSTOM_GIT
|
|
|
|
|
2019-03-21 00:05:21 +01:00
|
|
|
config BR2_TARGET_OPENSBI_PLAT
|
|
|
|
string "OpenSBI Platform"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Specifies the OpenSBI platform to build. If no platform is
|
|
|
|
specified only the OpenSBI platform independent static
|
|
|
|
library libsbi.a is built. If a platform is specified then
|
|
|
|
the platform specific static library libplatsbi.a and firmware
|
|
|
|
examples are built.
|
2019-07-22 22:44:46 +02:00
|
|
|
|
2021-05-04 22:51:33 +02:00
|
|
|
config BR2_TARGET_OPENSBI_INSTALL_DYNAMIC_IMG
|
|
|
|
bool "Install fw_dynamic image"
|
|
|
|
default y if BR2_TARGET_OPENSBI_PLAT != ""
|
|
|
|
help
|
|
|
|
This installs the fw_dynamic image.
|
|
|
|
|
|
|
|
config BR2_TARGET_OPENSBI_INSTALL_JUMP_IMG
|
|
|
|
bool "Install fw_jump image"
|
|
|
|
default y if BR2_TARGET_OPENSBI_PLAT != ""
|
|
|
|
help
|
|
|
|
This installs the fw_jump image.
|
|
|
|
|
|
|
|
config BR2_TARGET_OPENSBI_INSTALL_PAYLOAD_IMG
|
|
|
|
bool "Install fw_payload image"
|
|
|
|
help
|
|
|
|
This option enables the installation of the fw_paylaod
|
|
|
|
image.
|
|
|
|
|
2019-07-22 22:44:46 +02:00
|
|
|
config BR2_TARGET_OPENSBI_LINUX_PAYLOAD
|
|
|
|
bool "Include Linux as OpenSBI Payload"
|
|
|
|
depends on BR2_TARGET_OPENSBI_PLAT != ""
|
|
|
|
depends on BR2_LINUX_KERNEL
|
|
|
|
depends on BR2_LINUX_KERNEL_IMAGE
|
2021-05-04 22:51:33 +02:00
|
|
|
select BR2_TARGET_OPENSBI_INSTALL_PAYLOAD_IMG
|
2019-07-22 22:44:46 +02:00
|
|
|
help
|
|
|
|
Build OpenSBI with the Linux kernel as a Payload.
|
|
|
|
|
2021-04-29 09:46:33 +02:00
|
|
|
config BR2_TARGET_OPENSBI_UBOOT_PAYLOAD
|
|
|
|
bool "Include U-Boot as OpenSBI Payload"
|
|
|
|
depends on BR2_TARGET_OPENSBI_PLAT != ""
|
|
|
|
depends on BR2_TARGET_UBOOT
|
2021-05-04 22:51:33 +02:00
|
|
|
select BR2_TARGET_OPENSBI_INSTALL_PAYLOAD_IMG
|
2021-04-29 09:46:33 +02:00
|
|
|
help
|
|
|
|
Build OpenSBI with the U-Boot as a Payload.
|
|
|
|
|
2021-06-16 07:03:41 +02:00
|
|
|
config BR2_TARGET_OPENSBI_FW_FDT_PATH
|
|
|
|
bool "Include U-Boot DTB in OpenSBI Payload"
|
|
|
|
depends on BR2_TARGET_OPENSBI_UBOOT_PAYLOAD
|
|
|
|
select BR2_TARGET_UBOOT_FORMAT_DTB
|
|
|
|
help
|
|
|
|
Build OpenSBI with FW_FDT_PATH set to
|
|
|
|
$(BINARIES_DIR)/u-boot.dtb. Note that CONFIG_OF_SEPARATE
|
|
|
|
must be set in the U-Boot configuration for this file to be
|
|
|
|
produced.
|
|
|
|
|
2019-03-21 00:05:21 +01:00
|
|
|
endif
|