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
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.

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
	help
	  Build OpenSBI with the Linux kernel as a Payload.

endif