From 750aa61300ca6434426916e83cf0ce18f729b668 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Wed, 26 Jan 2022 23:51:59 +0100 Subject: [PATCH] package/xvisor: add riscv support riscv is supported since version 0.3.0 and https://github.com/xvisor/xvisor/commit/d6feda4e80eefd372294b081111ce709d08ee4c0 Signed-off-by: Fabrice Fontaine Reviewed-by: Alistair Francis Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/xvisor/Config.in | 3 +++ package/xvisor/xvisor.mk | 2 ++ 2 files changed, 5 insertions(+) diff --git a/package/xvisor/Config.in b/package/xvisor/Config.in index 71628e633e..1eb50c8abe 100644 --- a/package/xvisor/Config.in +++ b/package/xvisor/Config.in @@ -2,6 +2,7 @@ config BR2_PACKAGE_XVISOR_ARCH_SUPPORTS bool default y if BR2_aarch64 default y if BR2_cortex_a7 || BR2_cortex_a12 || BR2_cortex_a15 || BR2_cortex_a17 + default y if BR2_riscv default y if BR2_x86_64 depends on BR2_USE_MMU @@ -34,6 +35,8 @@ config BR2_PACKAGE_XVISOR_DEFCONFIG string "Defconfig name" default "generic-v7-ve" if BR2_ARM_CPU_ARMV7A 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 dc49258400..d7bb288ea8 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_arm)$(BR2_aarch64),y) XVISOR_ARCH = arm +else ifeq ($(BR2_riscv),y) +XVISOR_ARCH = riscv endif ifeq ($(BR2_PACKAGE_XVISOR)$(BR_BUILDING),yy)