Skip to contentSkip to conversation

kvmtool: new package

PATCH New gustavo.zacarias at free-electrons.com 2 participants 2 messages Jun 24, 2015 – Jul 4, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 kvmtool: new package

From: Gustavo Zacarias <[email protected]>

---
 package/Config.in          |  1 +
 package/kvmtool/Config.in  | 31 +++++++++++++++++++++++++++
 package/kvmtool/kvmtool.mk | 53 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 85 insertions(+)
 create mode 100644 package/kvmtool/Config.in
 create mode 100644 package/kvmtool/kvmtool.mk
package/Config.in +1 -0
index fac632f..6522618 100644
@@ -1403,6 +1403,7 @@ endif
 	source "package/irqbalance/Config.in"
 	source "package/keyutils/Config.in"
 	source "package/kmod/Config.in"
+	source "package/kvmtool/Config.in"
 	source "package/lxc/Config.in"
 	source "package/monit/Config.in"
 	source "package/ncdu/Config.in"
package/kvmtool/Config.in new file +31 -0
new file mode 100644
index 0000000..f047c75
@@ -0,0 +1,31 @@
+config BR2_PACKAGE_KVMTOOL
+	bool "kvmtool"
+	depends on BR2_USE_MMU # guest simple init fork()
+	# No MADV_HUGEPAGE define in uClibc(-ng)
+	depends on (BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
+	# 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
+	# 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
+	help
+	  kvmtool is a lightweight tool for hosting KVM guests.
+	  As a pure virtualization tool it only supports guests using
+	  the same architecture, though it supports running 32-bit guests
+	  on those 64-bit architectures that allow this.
+
+	  https://git.kernel.org/cgit/linux/kernel/git/will/kvmtool.git/tree/README
+
+comment "kvmtool needs a (e)glibc or musl toolchain"
+	depends on BR2_USE_MMU
+	depends on BR2_i386 || BR2_mips || BR2_x86_64
+	depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
+
+comment "kvmtool needs a (e)glibc or musl toolchain w/ dynamic library"
+	depends on BR2_USE_MMU
+	depends on BR2_aarch64 || BR2_arm || BR2_armeb
+	depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL) || \
+		BR2_STATIC_LIBS
package/kvmtool/kvmtool.mk new file +53 -0

53 lines not on this page · raw message

Signature · 1 line
2.1.4
#1 lore raw

PATCH v3 1/1 kvmtool: new package

Dear gustavo.zacarias at free-electrons.com,

Quoted 11 lines · gustavo.zacarias at free-electrons.com

From: Gustavo Zacarias <[email protected]>

---
 package/Config.in          |  1 +
 package/kvmtool/Config.in  | 31 +++++++++++++++++++++++++++
 package/kvmtool/kvmtool.mk | 53 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 85 insertions(+)
 create mode 100644 package/kvmtool/Config.in
 create mode 100644 package/kvmtool/kvmtool.mk

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com