* [Qemu-devel] [7185] kqemu: only compile kqemu.o if actually needed
@ 2009-04-18 19:25 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2009-04-18 19:25 UTC (permalink / raw)
To: qemu-devel
Revision: 7185
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7185
Author: blueswir1
Date: 2009-04-18 19:25:43 +0000 (Sat, 18 Apr 2009)
Log Message:
-----------
kqemu: only compile kqemu.o if actually needed
kqemu.o is compiled even if kqemu support is disabled. This is useless
(kqemu.o should provide nothing that is actually used in that case) and
slightly confusing. So introduce CONFIG_KQEMU for optionally compiling
kqemu.o.
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Modified Paths:
--------------
trunk/Makefile.target
trunk/configure
Modified: trunk/Makefile.target
===================================================================
--- trunk/Makefile.target 2009-04-18 16:16:12 UTC (rev 7184)
+++ trunk/Makefile.target 2009-04-18 19:25:43 UTC (rev 7185)
@@ -131,8 +131,11 @@
#########################################################
# cpu emulator library
-LIBOBJS=exec.o kqemu.o translate-all.o cpu-exec.o\
+LIBOBJS=exec.o translate-all.o cpu-exec.o\
translate.o host-utils.o
+ifdef CONFIG_KQEMU
+LIBOBJS+= kqemu.o
+endif
# TCG code generator
LIBOBJS+= tcg/tcg.o tcg/tcg-runtime.o
CPPFLAGS+=-I$(SRC_PATH)/tcg -I$(SRC_PATH)/tcg/$(ARCH)
Modified: trunk/configure
===================================================================
--- trunk/configure 2009-04-18 16:16:12 UTC (rev 7184)
+++ trunk/configure 2009-04-18 19:25:43 UTC (rev 7185)
@@ -1769,6 +1769,7 @@
echo "#define TARGET_I386 1" >> $config_h
if test $kqemu = "yes" -a "$target_softmmu" = "yes"
then
+ echo "CONFIG_KQEMU=yes" >> $config_mak
echo "#define USE_KQEMU 1" >> $config_h
fi
if test "$kvm" = "yes" ; then
@@ -1784,6 +1785,7 @@
echo "#define TARGET_X86_64 1" >> $config_h
if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "x86_64"
then
+ echo "CONFIG_KQEMU=yes" >> $config_mak
echo "#define USE_KQEMU 1" >> $config_h
fi
if test "$kvm" = "yes" ; then
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-18 19:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-18 19:25 [Qemu-devel] [7185] kqemu: only compile kqemu.o if actually needed Blue Swirl
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).