]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
plat/kvm: Include target hypervisor in image name
authorMarco Schlumpp <marco@unikraft.io>
Mon, 17 Apr 2023 09:19:33 +0000 (11:19 +0200)
committerUnikraft <monkey@unikraft.io>
Mon, 8 May 2023 19:49:16 +0000 (19:49 +0000)
This makes it more clear on what hypervisor the image works on.

Signed-off-by: Marco Schlumpp <marco@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu.moga@protonmail.com>
Approved-by: Marc Rittinghaus <marc.rittinghaus@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #760

plat/kvm/Linker.uk

index 347c9f7b970e6b6e005928ab4639f1980a5e291e..abbe1606a59373f9fdafc3d53d2b8c0ad8396104 100644 (file)
@@ -15,7 +15,15 @@ KVM_BINFO_FLAGS := -a $(CONFIG_UK_ARCH)
 ##
 ## Link image
 ##
-KVM_IMAGE := $(BUILD_DIR)/$(CONFIG_UK_NAME)_kvm-$(CONFIG_UK_ARCH)
+ifeq ($(CONFIG_KVM_VMM_QEMU),y)
+KVM_VMM := qemu
+else ifeq ($(CONFIG_KVM_VMM_FIRECRACKER),y)
+KVM_VMM := fc
+else
+KVM_VMM := kvm
+endif
+
+KVM_IMAGE := $(BUILD_DIR)/$(CONFIG_UK_NAME)_$(KVM_VMM)-$(CONFIG_UK_ARCH)
 KVM_DEBUG_IMAGE := $(KVM_IMAGE).dbg
 
 KVM_LD_SCRIPT_FLAGS := $(addprefix -Wl$(comma)-dT$(comma),\