kvmtool: add kvmtool module

Signed-off-by: Trammell hudson <hudson@trmm.net>
This commit is contained in:
Trammell hudson 2019-10-29 18:12:22 +01:00
parent 2980eb0522
commit f89c8973bf
No known key found for this signature in database
GPG Key ID: 0F948052DDECBE68
2 changed files with 37 additions and 0 deletions

View File

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

36
modules/kvmtool Normal file
View File

@ -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 :=