Skip to contentSkip to conversation

Update kvmtool and add support for riscv

PATCH In review Clément Léger 2 participants 4 messages Mar 27, 2024 – May 13, 2024

lore
Share & tools
lore
#0 lore raw

cover Update kvmtool and add support for riscv

Bump kvmtool to a recent version (current one dates back to 2017) and enable riscv support.

Clément Léger (2):
package/kvmtool: bump package version to 4d2c017f41 package/kvmtool: enable build for riscv

 package/kvmtool/Config.in    | 7 ++++---
 package/kvmtool/kvmtool.hash | 2 +-
 package/kvmtool/kvmtool.mk   | 2 +-
 3 files changed, 6 insertions(+), 5 deletions(-)
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 1/2 package/kvmtool: bump package version to 4d2c017f41

The current version dates back to 2017 and is lacking riscv support. Bump the version to a more recent one (4d2c017f41) which supports riscv and contains a large number of updates as well a CVE fixes. Since kvmtool does not seems to have releases, just bump to the current git HEAD.

---
 package/kvmtool/kvmtool.hash | 2 +-
 package/kvmtool/kvmtool.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/kvmtool/kvmtool.hash +1 -1
index 8747ae1d21..fa97bb9ca5 100644
@@ -1,3 +1,3 @@
 # Locally computed
-sha256  e2eb2cd8b31d24484e3095923cfe8c36d4b92741b76965cafaed6be3835369c6  kvmtool-f77d646ba01d04be5aad9449ac00719c043fe36e-br1.tar.gz
+sha256  458cdefb3f869d8167a976d67125d772b4cba3790d3898bd7ee858cdea839113  kvmtool-4d2c017f41533b0e51e00f689050c26190a15318-br1.tar.gz
 sha256  0d5bf346df9e635a29dcdddf832dc5b002ca6cdc1c5c9c6c567d2a61bb0c5c15  COPYING
package/kvmtool/kvmtool.mk +1 -1
index 2bcd556f9b..7fec6643f8 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-KVMTOOL_VERSION = f77d646ba01d04be5aad9449ac00719c043fe36e
+KVMTOOL_VERSION = 4d2c017f41533b0e51e00f689050c26190a15318
 KVMTOOL_SITE = https://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git
 KVMTOOL_SITE_METHOD = git
 KVMTOOL_DEPENDENCIES = \
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

PATCH 2/2 package/kvmtool: enable build for riscv

In reply to Clément Léger

kvmtool now supports riscv, enable it and select BR2_PACKAGE_DTC which is needed to build it.

---
 package/kvmtool/Config.in | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
package/kvmtool/Config.in +4 -3
index bf19a25376..35225e0150 100644
@@ -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
Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Clément Léger

Hello Clément,

Quoted 6 lines · On Wed, 27 Mar 2024 16:06:11 +0100 Clément Léger <[email protected]> wrote:

Bump kvmtool to a recent version (current one dates back to 2017) and enable riscv support.

Clément Léger (2):
package/kvmtool: bump package version to 4d2c017f41 package/kvmtool: enable build for riscv

Thanks, series applied, after tweaking the first patch due to recent changes in the download infrastructure for git-fetched packages.

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot