Commit c39e33380f5c3486eed06bb6a7fbc6221365555c
1 parent
748e4993
Only build qemu-img with softmmu targets.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3207 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
6 additions
and
1 deletions
Makefile
@@ -13,7 +13,6 @@ BASE_LDFLAGS += $(OS_LDFLAGS) $(ARCH_LDFLAGS) | @@ -13,7 +13,6 @@ BASE_LDFLAGS += $(OS_LDFLAGS) $(ARCH_LDFLAGS) | ||
13 | 13 | ||
14 | CPPFLAGS += -I. -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE | 14 | CPPFLAGS += -I. -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE |
15 | LIBS= | 15 | LIBS= |
16 | -TOOLS=qemu-img$(EXESUF) | ||
17 | ifdef CONFIG_STATIC | 16 | ifdef CONFIG_STATIC |
18 | BASE_LDFLAGS += -static | 17 | BASE_LDFLAGS += -static |
19 | endif | 18 | endif |
configure
@@ -910,6 +910,12 @@ fi | @@ -910,6 +910,12 @@ fi | ||
910 | 910 | ||
911 | echo "#define CONFIG_UNAME_RELEASE \"$uname_release\"" >> $config_h | 911 | echo "#define CONFIG_UNAME_RELEASE \"$uname_release\"" >> $config_h |
912 | 912 | ||
913 | +tools= | ||
914 | +if test `expr "$target_list" : ".*softmmu.*"` != 0 ; then | ||
915 | + tools="qemu-img\$(EXESUF) $tools" | ||
916 | +fi | ||
917 | +echo "TOOLS=$tools" >> $config_mak | ||
918 | + | ||
913 | test -f ${config_h}~ && cmp -s $config_h ${config_h}~ && mv ${config_h}~ $config_h | 919 | test -f ${config_h}~ && cmp -s $config_h ${config_h}~ && mv ${config_h}~ $config_h |
914 | 920 | ||
915 | for target in $target_list; do | 921 | for target in $target_list; do |