diff mbox series

[2/2] package/kvmtool: enable build for riscv

Message ID 20240327150616.39345-3-cleger@rivosinc.com
State New
Headers show
Series Update kvmtool and add support for riscv | expand

Commit Message

Clément Léger March 27, 2024, 3:06 p.m. UTC
kvmtool now supports riscv, enable it and select BR2_PACKAGE_DTC which
is needed to build it.

Signed-off-by: Clément Léger <cleger@rivosinc.com>
---
 package/kvmtool/Config.in | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/package/kvmtool/Config.in b/package/kvmtool/Config.in
index bf19a25376..35225e0150 100644
--- a/package/kvmtool/Config.in
+++ b/package/kvmtool/Config.in
@@ -6,11 +6,12 @@  config BR2_PACKAGE_KVMTOOL
 	# Only mips big-endian seems to be supported (build breaks)
 	# Should work on powerpc64 but the build breaks with missing types
 	depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 || \
-		BR2_mips || BR2_x86_64
+		BR2_mips || BR2_x86_64 || BR2_riscv
 	# libfdt is only required for DT architectures...
 	# ...but it's not able to build for static targets
-	depends on !(BR2_STATIC_LIBS && (BR2_aarch64 || BR2_arm || BR2_armeb))
-	select BR2_PACKAGE_DTC if BR2_aarch64 || BR2_arm || BR2_armeb
+	depends on !(BR2_STATIC_LIBS && (BR2_aarch64 || BR2_arm || \
+		BR2_armeb || BR2_riscv))
+	select BR2_PACKAGE_DTC if BR2_aarch64 || BR2_arm || BR2_armeb || BR2_riscv
 	help
 	  kvmtool is a lightweight tool for hosting KVM guests.
 	  As a pure virtualization tool it only supports guests using