From: Blue Swirl <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [7185] kqemu: only compile kqemu.o if actually needed
Date: Sat, 18 Apr 2009 19:25:44 +0000 [thread overview]
Message-ID: <E1LvGAa-0006oK-Px@cvs.savannah.gnu.org> (raw)
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
reply other threads:[~2009-04-18 19:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1LvGAa-0006oK-Px@cvs.savannah.gnu.org \
--to=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).