[Buildroot] [PATCH 2/2] package/xvisor: add riscv support

Fabrice Fontaine fontaine.fabrice at gmail.com
Tue Jan 25 19:06:50 UTC 2022


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




More information about the buildroot mailing list