Skip to contentSkip to conversation

kvm tools: pick kernel from linux source tree root

PATCH New Konstantin Khlebnikov 1 participant 1 message Dec 21, 2011 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm tools: pick kernel from linux source tree root

Pick arch/$ARCH/boot/bzImage and vmlinux if we are in linux source tree root directory.

---
 tools/kvm/builtin-run.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
tools/kvm/builtin-run.c +2 -0
index 094c0fa2..50f1de9 100644
@@ -609,11 +609,13 @@ static const char *host_kernels[] = {
 
 static const char *default_kernels[] = {
 	"./bzImage",
+	"arch/" BUILD_ARCH "/boot/bzImage",
 	"../../arch/" BUILD_ARCH "/boot/bzImage",
 	NULL
 };
 
 static const char *default_vmlinux[] = {
+	"vmlinux",
 	"../../../vmlinux",
 	"../../vmlinux",
 	NULL