summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-22 16:49:14 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-09-22 16:49:14 +0000
commitc39e33380f5c3486eed06bb6a7fbc6221365555c (patch)
treed3116cdeaa024442922660a1d01d6156604be2cc
parent748e49932dfa9f293f60995ca67dd387e942ce05 (diff)
downloadhqemu-c39e33380f5c3486eed06bb6a7fbc6221365555c.zip
hqemu-c39e33380f5c3486eed06bb6a7fbc6221365555c.tar.gz
Only build qemu-img with softmmu targets.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3207 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--Makefile1
-rwxr-xr-xconfigure6
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a526715..c7af334 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,6 @@ BASE_LDFLAGS += $(OS_LDFLAGS) $(ARCH_LDFLAGS)
CPPFLAGS += -I. -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
LIBS=
-TOOLS=qemu-img$(EXESUF)
ifdef CONFIG_STATIC
BASE_LDFLAGS += -static
endif
diff --git a/configure b/configure
index 7b8ac31..6288ac0 100755
--- a/configure
+++ b/configure
@@ -910,6 +910,12 @@ fi
echo "#define CONFIG_UNAME_RELEASE \"$uname_release\"" >> $config_h
+tools=
+if test `expr "$target_list" : ".*softmmu.*"` != 0 ; then
+ tools="qemu-img\$(EXESUF) $tools"
+fi
+echo "TOOLS=$tools" >> $config_mak
+
test -f ${config_h}~ && cmp -s $config_h ${config_h}~ && mv ${config_h}~ $config_h
for target in $target_list; do
OpenPOWER on IntegriCloud