Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LvGAe-0003uv-KI for qemu-devel@nongnu.org; Sat, 18 Apr 2009 15:25:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LvGAd-0003ui-HR for qemu-devel@nongnu.org; Sat, 18 Apr 2009 15:25:47 -0400 Received: from [199.232.76.173] (port=58537 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LvGAd-0003uf-Bd for qemu-devel@nongnu.org; Sat, 18 Apr 2009 15:25:47 -0400 Received: from savannah.gnu.org ([199.232.41.3]:47888 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LvGAd-0003dH-3m for qemu-devel@nongnu.org; Sat, 18 Apr 2009 15:25:47 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LvGAb-0006ol-DX for qemu-devel@nongnu.org; Sat, 18 Apr 2009 19:25:45 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LvGAa-0006oK-Px for qemu-devel@nongnu.org; Sat, 18 Apr 2009 19:25:45 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Sat, 18 Apr 2009 19:25:44 +0000 Subject: [Qemu-devel] [7185] kqemu: only compile kqemu.o if actually needed Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 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