From f89c8973bf1a9148907b24365ece08ca847a4f89 Mon Sep 17 00:00:00 2001 From: Trammell hudson Date: Tue, 29 Oct 2019 18:12:22 +0100 Subject: [PATCH] kvmtool: add kvmtool module Signed-off-by: Trammell hudson --- Makefile | 1 + modules/kvmtool | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 modules/kvmtool diff --git a/Makefile b/Makefile index 21e38108..7b5d95ef 100644 --- a/Makefile +++ b/Makefile @@ -412,6 +412,7 @@ endef # Shouldn't this be specified in the module file? bin_modules-$(CONFIG_KEXEC) += kexec bin_modules-$(CONFIG_TPMTOTP) += tpmtotp +bin_modules-$(CONFIG_KVMTOOL) += kvmtool bin_modules-$(CONFIG_PCIUTILS) += pciutils bin_modules-$(CONFIG_FLASHROM) += flashrom bin_modules-$(CONFIG_CRYPTSETUP) += cryptsetup diff --git a/modules/kvmtool b/modules/kvmtool new file mode 100644 index 00000000..9f1c1a9d --- /dev/null +++ b/modules/kvmtool @@ -0,0 +1,36 @@ +# Linux KVM launcher +# This only makes sense if you also define CONFIG_LINUX_KVM. +# You probably also want CONFIG_LINUX_VIRTIO +modules-$(CONFIG_KVMTOOL) += kvmtool + +ifneq "$(CONFIG_LINUX_VIRTIO)" "y" +$(warn "$(BOARD): kvmtool included without CONFIG_LINUX_VIRTIO") +endif +ifneq "$(CONFIG_LINUX_KVM)" "y" +$(error "$(BOARD): kvmtool included without CONFIG_LINUX_KVM") +endif + +kvmtool_depends := mbedtls $(musl_dep) + +#kvmtool_version := git +#kvmtool_repo := https://github.com/osresearch/kvmtool + +kvmtool_version := 0e1882a +kvmtool_dir := kvmtool-$(kvmtool_version) +kvmtool_tar := kvmtool-$(kvmtool_version).tar.gz +kvmtool_url := https://github.com/kvmtool/kvmtool/archive/$(kvmtool_version).tar.gz +kvmtool_hash := bf58194ab5c4ff7abdad48150d54c52c0e8bee485084e3f09adb9eec023756b8 + +kvmtool_target := \ + $(CROSS_TOOLS) \ + ARCH_HAS_FRAMEBUFFER=n \ + V=1 + #CPPFLAGS="-I$(INSTALL)/include" \ + #LDFLAGS="-L$(INSTALL)/lib" \ + +kvmtool_output := \ + lkvm \ + +kvmtool_libraries := \ + +kvmtool_configure :=