]> git.proxmox.com Git - qemu.git/commitdiff
We also need TARGET_<arechname> in Makefiles
authorJuan Quintela <quintela@redhat.com>
Mon, 3 Aug 2009 12:47:03 +0000 (14:47 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 10 Aug 2009 18:05:46 +0000 (13:05 -0500)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

configure
create_config

index 0ee2c470d7f5025b08be9bfaa6736687e9c0cb12..a504d5833023d0c9b3985f84680dbe9859d87061 100755 (executable)
--- a/configure
+++ b/configure
@@ -1982,6 +1982,8 @@ case "$target_arch2" in
   ;;
 esac
 echo "TARGET_ARCH=$TARGET_ARCH" >> $config_mak
+target_arch_name="`echo $TARGET_ARCH | tr '[:lower:]' '[:upper:]'`"
+echo "TARGET_$target_arch_name=y" >> $config_mak
 echo "TARGET_ARCH2=$target_arch2" >> $config_mak
 # TARGET_BASE_ARCH needs to be defined after TARGET_ARCH
 if [ "$TARGET_BASE_ARCH" = "" ]; then
index 9dcbc5f094f855118740139d852e566837056f52..5bc8fb6b41f61c7c855864f165a5c878376aa84a 100755 (executable)
@@ -55,9 +55,7 @@ case $line in
     ;;
  TARGET_ARCH=*) # configuration
     target_arch=${line#*=}
-    arch_name=`echo $target_arch | tr '[:lower:]' '[:upper:]'`
     echo "#define TARGET_ARCH \"$target_arch\""
-    echo "#define TARGET_$arch_name 1"
     ;;
  TARGET_BASE_ARCH=*) # configuration
     target_base_arch=${line#*=}