* [Qemu-devel] [PATCH] Fix broken --kerneldir
@ 2010-07-01 7:35 Prerna Saxena
0 siblings, 0 replies; only message in thread
From: Prerna Saxena @ 2010-07-01 7:35 UTC (permalink / raw)
To: qemu-devel; +Cc: Anthony Liguori
Set up host kernel include paths specified by --kerneldir
When host kernel headers are placed in non-standard paths, the
KVM_CFLAGS are presently invoked only for a few .c files (kvm*.c,vhost*.c)
and not for other files like machine.c, cpus.c ..etc which also depend on
linux/kvm.h
Signed-off-by: Prerna Saxena <prerna@linux.vnet.ibm.com>
---
Makefile.target | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Makefile.target b/Makefile.target
index d58b201..b433112 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -29,12 +29,15 @@ QEMU_PROG=qemu-system-$(TARGET_ARCH2)$(EXESUF)
endif
endif
+# Set up host kernel include paths specified by --kerneldir
+ifdef CONFIG_KVM
+QEMU_CFLAGS+=$(KVM_CFLAGS)
+endif
+
PROGS=$(QEMU_PROG)
LIBS+=-lm
-kvm.o kvm-all.o vhost.o vhost_net.o: QEMU_CFLAGS+=$(KVM_CFLAGS)
-
config-target.h: config-target.h-timestamp
config-target.h-timestamp: config-target.mak
--
1.6.2.5
--
Prerna Saxena
Linux Technology Centre,
IBM Systems and Technology Lab,
Bangalore, India
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-01 7:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-01 7:35 [Qemu-devel] [PATCH] Fix broken --kerneldir Prerna Saxena
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).