[Buildroot] [PATCH 2/2] package/xvisor: add riscv support
Alistair Francis
alistair23 at gmail.com
Wed Jan 26 22:49:39 UTC 2022
On Wed, Jan 26, 2022 at 5:09 AM Fabrice Fontaine
<fontaine.fabrice at gmail.com> wrote:
>
> riscv is supported since version 0.3.0 and
> https://github.com/xvisor/xvisor/commit/d6feda4e80eefd372294b081111ce709d08ee4c0
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Reviewed-by: Alistair Francis <alistair.francis at wdc.com>
Alistair
> ---
> package/xvisor/Config.in | 4 +++-
> package/xvisor/xvisor.mk | 2 ++
> 2 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/package/xvisor/Config.in b/package/xvisor/Config.in
> index 55c43e6959..4e7a3e1b53 100644
> --- a/package/xvisor/Config.in
> +++ b/package/xvisor/Config.in
> @@ -2,7 +2,7 @@ config BR2_PACKAGE_XVISOR_ARCH_SUPPORTS
> bool
> default y
> depends on BR2_USE_MMU
> - depends on BR2_aarch64 || BR2_x86_64
> + depends on BR2_aarch64 || BR2_riscv || BR2_x86_64
>
> menuconfig BR2_PACKAGE_XVISOR
> bool "xvisor"
> @@ -32,6 +32,8 @@ endchoice
> config BR2_PACKAGE_XVISOR_DEFCONFIG
> string "Defconfig name"
> default "generic-v8" if BR2_aarch64
> + default "generic-32b" if BR2_RISCV_32
> + default "generic-64b" if BR2_RISCV_64
> default "x86_64_generic" if BR2_x86_64
> depends on BR2_PACKAGE_XVISOR_USE_DEFCONFIG
> help
> diff --git a/package/xvisor/xvisor.mk b/package/xvisor/xvisor.mk
> index 4ceb5ed7cb..1a7b49e689 100644
> --- a/package/xvisor/xvisor.mk
> +++ b/package/xvisor/xvisor.mk
> @@ -32,6 +32,8 @@ ifeq ($(BR2_x86_64),y)
> XVISOR_ARCH = x86
> else ifeq ($(BR2_aarch64),y)
> XVISOR_ARCH = arm
> +else ifeq ($(BR2_riscv),y)
> +XVISOR_ARCH = riscv
> endif
>
> ifeq ($(BR2_PACKAGE_XVISOR)$(BR_BUILDING),yy)
> --
> 2.34.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
More information about the buildroot
mailing list